Bug 6158 - Crash during library unloading with RTLD_GLOBAL
Summary: Crash during library unloading with RTLD_GLOBAL
Status: NEW
Alias: None
Product: uClibc
Classification: Unclassified
Component: Shared Library Support (show other bugs)
Version: 0.9.33.2
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-03 16:24 UTC by Adam Mitz
Modified: 2015-04-16 08:58 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
patch to libdl.c, update _dl_loaded_modules->symbol_scope->r_list during unloading (1.94 KB, patch)
2013-04-03 16:24 UTC, Adam Mitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Mitz 2013-04-03 16:24:24 UTC
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.
Comment 1 filippo.arcidiacono 2013-07-04 08:55:55 UTC
(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?