This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/19431] New: Deadlock between fflush, getdelim, and fork
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Jan 2016 16:44:14 +0000
- Subject: [Bug malloc/19431] New: Deadlock between fflush, getdelim, and fork
- Auto-submitted: auto-generated
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.