libstdc++/5166: Segfault when using global std::string from dlopen

bkoz@gcc.gnu.org bkoz@gcc.gnu.org
Fri Apr 5 11:35:00 GMT 2002


Synopsis: Segfault when using global std::string from dlopen

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Fri Apr  5 11:14:02 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Fri Apr  5 11:14:02 2002
State-Changed-Why:
    See libstdc++/6062. I'd appreciate it if you'd try this with the gcc-3.1 toolchain. 
    
    Building with a current toolchain on linux:
    c++ -rdynamic -g -fPIC -Wall -shared mydll.cc -o lib5166.so 
    c++ -rdynamic -g -fPIC -Wall main.cc -L. -l5166 -ldl -o test.exe
    
    Gives:
    
    %./test.exe 
    hello
    hello
    
    
    Thoughts? This is probably what you were expecting on HPUX. 
    
    I think this is either a gcc-on-HPUX specific problem, or a problem with the HPUX dynamic linker. Thoughts on how to proceed?
    
    -benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5166



More information about the Gcc-bugs mailing list