[uClibc-cvs] [uClibc 0000358]: libdl (dlopen/dlsym) segfault when called from statically linked executable

bugs at busybox.net bugs at busybox.net
Wed Jul 27 13:08:59 UTC 2005


The following issue has been RESOLVED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=358 
====================================================================== 
Reported By:                hassold
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   358
Category:                   Shared Library Support
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             07-26-2005 19:25 PDT
Last Modified:              07-27-2005 06:08 PDT
====================================================================== 
Summary:                    libdl (dlopen/dlsym) segfault when called from
statically linked executable
Description: 
Current (svn) libdl implementation in uClibc (dlopen() and friends)
segfault if called from a statically linked executable, since
_dl_symbol_tables is implicitly assumed to be non-NULL in dlopen() and
dlsym() (which is true for dynamic exes), and dereferenced (while its
initial value is NULL when called from a static executable).

====================================================================== 

---------------------------------------------------------------------- 
 jocke - 07-27-05 06:08  
---------------------------------------------------------------------- 
Fixed as suggested in the patch. The alternative fix is probably how
libdl should work in the future, but libdl/ld.so needs more work
first. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-26-05 19:25  hassold        New Issue                                    
07-26-05 19:25  hassold        Status                   new => assigned     
07-26-05 19:25  hassold        Assigned To               => uClibc          
07-26-05 19:25  hassold        File Added: libdl.patch                      
07-27-05 06:08  jocke          Status                   assigned => resolved
07-27-05 06:08  jocke          Resolution               open => fixed       
07-27-05 06:08  jocke          Note Added: 0000350                          
======================================================================




More information about the uClibc-cvs mailing list