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 malloc/19431] New: Deadlock between fflush, getdelim, and fork


https://sourceware.org/bugzilla/show_bug.cgi?id=19431

            Bug ID: 19431
           Summary: Deadlock between fflush, getdelim, and fork
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: fweimer at redhat dot com
          Reporter: fweimer at redhat dot com
  Target Milestone: ---
             Flags: security-

Created attachment 8881
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8881&action=edit
tst-malloc-fork-io.c

The attached test case, based on a downstream bug report, exhibits a three-way
deadlock between fflush (NULL), getdelim, and fork.

We should remove the fork handler and replace it with explicit calls into the
malloc code from within fork, *after* acquiring the libio lock.  This would
like address bug 16742 as well.

-- 
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]