This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/13172] New: aio_suspend is not async-signal-safe


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]