Created attachment 4832 [details] patch to libdl.c, update _dl_loaded_modules->symbol_scope->r_list during unloading After enabling RTLD_GLOBAL, we found a case where running destructors in dlclose caused a crash during what should have been a successful dynamic symbol lookup. The attached patch fixes the crash.
(In reply to comment #0) > Created attachment 4832 [details] > patch to libdl.c, update _dl_loaded_modules->symbol_scope->r_list during > unloading > > After enabling RTLD_GLOBAL, we found a case where running destructors in > dlclose caused a crash during what should have been a successful dynamic symbol > lookup. The attached patch fixes the crash. Please, could you provide a minimal test case spot the issue you are raising?