+24
−13
+37
−5
+15
−0
+55
−0
src/test/e2e/dlopen_scope_test.cpp
0 → 100644
+50
−0
Loading
Every loaded object was in the global symbol scope, so two RTLD_LOCAL
libraries defining the same names interposed each other. Firefox loads
its bundled ffvpx (libmozavutil) and the system libavutil this way: the
system libavcodec called libmozavutil's av_frame_unref() and the RDD
media decoder crashed (YouTube: "Es ist ein Fehler aufgetreten").
Objects loaded by dlopen() without RTLD_GLOBAL are now local: their
relocations search the global scope, then the dependency tree of the
dlopen()ed object (glibc's local scope); RTLD_DEFAULT doesn't see them;
dlopen(RTLD_GLOBAL) promotes an already loaded tree.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>