[PATCH v3] elf: Release dl_load_lock before running dlopen constructors (BZ 15686)
Mikhail Novosyolov
m.novosyolov@rosa.ru
Fri Jul 17 08:39:06 GMT 2026
16.07.2026 19:04, temap@mail.ru пишет:
> From: Artem Proskurnev <temap@mail.ru>
>
> This addresses one instance of the long-standing class of deadlocks
> described in BZ #15686: ELF constructors and destructors invoked by
> the dynamic loader run with dl_load_lock held, so any code path in
> those constructors that itself needs dl_load_lock deadlocks.
<...>
We are testing the backport of this patch to glibc 2.40 in ROSA Linux 13 per Artem's pull request:
https://abf.rosa.ru/import/glibc/blob/rosa2023.1/glibc-elf-Release-dl_load_lock-before-running-dlopen-const.patch#lc-12
A build of glibc with this patch applied (https://abf-downloads.rosa.ru/rosa13/repository/x86_64/main/testing/) and will be moved to "release" in a few weaks if no new issues are found.
Artem and we found that the previous version of this patch broke Chromium, at least with chromium-gost patchset, this current version works well and we have not found problems with it. This patch fixes startup of Codeblocks (https://bugzilla.rosa.ru/show_bug.cgi?id=21031).
More information about the Libc-alpha
mailing list