This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/13172] New: aio_suspend is not async-signal-safe
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 09 Sep 2011 03:38:03 +0000
- Subject: [Bug nptl/13172] New: aio_suspend is not async-signal-safe
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13172
Bug #: 13172
Summary: aio_suspend is not async-signal-safe
Product: glibc
Version: unspecified
Status: NEW
Severity: critical
Priority: P2
Component: nptl
AssignedTo: drepper.fsp@gmail.com
ReportedBy: bugdal@aerifal.cx
Classification: Unclassified
aio_suspend is required by POSIX to be async-signal-safe, but the first
non-trivial line of glibc's implementation of aio_suspend is:
pthread_mutex_lock(&__aio_requests_mutex);
This will obviously deadlock (or worse) if the thread running the signal
handler was already executing aio_suspend when it was interrupted by the
signal.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.