public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10643] New: If pthread_create fails in aio_write, requests linked list is corrupted
@ 2009-09-15 21:40 nvachhar at google dot com
  2009-09-15 21:41 ` [Bug libc/10643] " nvachhar at google dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nvachhar at google dot com @ 2009-09-15 21:40 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-30  4:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-15 21:40 [Bug libc/10643] New: If pthread_create fails in aio_write, requests linked list is corrupted nvachhar at google dot com
2009-09-15 21:41 ` [Bug libc/10643] " nvachhar at google dot com
2009-09-17 15:12 ` ppluzhnikov at google dot com
2009-10-30  4:02 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).