This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
aio routines close file descriptor
- From: Daurnimator <quae at daurnimator dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 25 Mar 2013 11:12:17 -0400
- Subject: aio routines close file descriptor
Hi,
Me again with a hard to replicate bug :)
I can paste/attach a strace output if it helps: tell me if that'll be helpful!
I don't have any code to easily reproduce, if no one else can figure
this out in the next week I'll attempt to replicate this with a small
C test case.
Using the aio functions, when calling aio_read >5 times in quick
succession on the same file descriptor, one of the threads will call
`close` it...
This manifested as a slew of EBADF errors on subsequent calls.
Thanks,
Daurnimator.