This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10643] New: If pthread_create fails in aio_write, requests linked list is corrupted
- From: "nvachhar at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Sep 2009 21:40:36 -0000
- Subject: [Bug libc/10643] New: If pthread_create fails in aio_write, requests linked list is corrupted
- Reply-to: sourceware-bugzilla at sourceware dot org
When one calls aio_write, it internally calls __aio_enqueue_request, which will
in turn call aio_create_helper_thread. If thread creation fails, the newly
created request (newp in the code) will still be in the requests linked list, but
it will be freed later in __aio_enqueue_request. A subsequent call to aio_write
will cause a segmentation fault.
This bug was found in glibc-2.3.6, however a manual inspection of the code in git
reveals that the problem still exists.
--
Summary: If pthread_create fails in aio_write, requests linked
list is corrupted
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: nvachhar at google dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686/x86_64-unknown-linux-gnu
GCC host triplet: i686/x86_64-unknown-linux-gnu
GCC target triplet: i686/x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10643
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.