This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc] Deleted branch azanella/bz24595
- From: Adhemerval Zanella <azanella at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 8 Aug 2019 20:20:07 -0000
- Subject: [glibc] Deleted branch azanella/bz24595
The branch 'azanella/bz24595' was deleted.
It previously pointed to:
88820cb... nptl: Fix deadlock on atfork handler which calls dlclose (B
Diff:
!!! WARNING: THE FOLLOWING COMMITS ARE NO LONGER ACCESSIBLE (LOST):
-------------------------------------------------------------------
88820cb... nptl: Fix deadlock on atfork handler which calls dlclose (B
commit 88820cb4c34f77805be822c5f090e9f1b75e1df4
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Fri Jul 12 14:33:37 2019 -0300
nptl: Fix deadlock on atfork handler which calls dlclose (BZ#24595)
Some real-world cases rely upon that atfork handlers can call functions
that might change the atfork handlers, such as dlclose. Since 27761a10
(Refactor atfork handlers), all internal atfork handlers access is
protected with a simple lock, not allowing reentrancy. This leads to
deadlocks for the aforementioned scenario. Although this specific usage
is far from portable (as comment #2 in the bug report), glibc did allow
it.
This patch fixes by using a double-linked lists along with a lock
release while calling the atfork handlers.