This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/19431] Deadlock between fflush, getdelim, and fork
- From: "prumpf at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Jan 2016 17:51:09 +0000
- Subject: [Bug malloc/19431] Deadlock between fflush, getdelim, and fork
- Auto-submitted: auto-generated
- References: <bug-19431-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19431
--- Comment #1 from prumpf at gmail dot com ---
Would that lose us the ability to use external malloc() implementations based
on our default malloc()?
I'm not happy with the rather complicated fix at bug 16742, which introduces
atfork handler priorities, but IIRC providing an API for external malloc()s
rather than explicitly calling into the malloc code from within fork was part
of the reason. I'm not objecting to your solution at all, but I think we
should make it clear in the documentation if the internal malloc()
implementation becomes the only malloc() it is safe to use during fork()s.
Thanks for looking into this!
--
You are receiving this mail because:
You are on the CC list for the bug.