[Bug stdio/33139] %n after static dlopen is unreliable if file descriptors are exhausted
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Jul 22 06:35:37 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33139
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |2.42
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for glibc 2.42 via:
commit 01196393c257c59f63e0e14fa1bfe8d2a699bf2d
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Jul 18 19:58:59 2025 +0200
elf: Initialize GLRO (dl_read_only_area) after static dlopen (bug 33139)
The _dl_read_only_area function in the uninitialized ld.so after
static dlopen is not able to find anything. Instead, we need to
redirect to the code from the statically linked main program.
Fixes commit d60fffe28a46b2a41fc308c1804ff02375d27408 ("debug:
Improve '%n' fortify detection (BZ 30932)").
Reviewed-by: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list