This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5166: Segfault when using global std::string from dlopen
- From: bkoz at gcc dot gnu dot org
- To: bkoz at gcc dot gnu dot org, chris at tti-telecom dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 5 Apr 2002 19:14:02 -0000
- Subject: Re: libstdc++/5166: Segfault when using global std::string from dlopen
- Reply-to: bkoz at gcc dot gnu dot org, bkoz at gcc dot gnu dot org, chris at tti-telecom dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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