This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]