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: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 05 Jan 2016 17:57:44 +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 #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to prumpf from comment #1)
> Would that lose us the ability to use external malloc() implementations
> based on our default malloc()?
No, not directly. It will not fix the bug for external mallocs, but they might
not even have these bugs, or support malloc after multi-threaded fork at all
(which is a glibc extension).
> 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.
I think this is entirely up to the interposed malloc implementation and what
they want to support.
--
You are receiving this mail because:
You are on the CC list for the bug.