Skip to content

Commit a197dce

Browse files
committed
DO NOT MERGE
try to debug the aio_suspend test failure on OSX I suspect there may be a memory layout problem
1 parent 668384e commit a197dce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/aio.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,7 @@ pub fn aio_suspend(list: &[&AioCb], timeout: Option<TimeSpec>) -> Result<()> {
985985
Some(x) => x.as_ref() as *const libc::timespec
986986
};
987987
Errno::result(unsafe {
988+
dbg!((&list[0].aiocb) as *const _, *p.offset(0), (&list[1].aiocb) as *const _, *p.offset(1));
988989
libc::aio_suspend(p, list.len() as i32, timep)
989990
}).map(drop)
990991
}

0 commit comments

Comments
 (0)