[Bug 271490] Deadlock between _rtld_atfork_pre and _thr_attr_init

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 May 2023 17:44:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271490

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
Yes, this is indeed a bug in jemalloc.  It seems that the problem is that
malloc_mutex_prefork() from jemalloc/src/mutex.c does not lock _all_ jemalloc
mutexes, in particular, the extent mtx.

OTOH, note that after fork(), in multi-threaded process child, only
async-signal
safe functions are guaranteed to work.

-- 
You are receiving this mail because:
You are the assignee for the bug.