This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/42679] RTLD_DEEPBIND dlopen option for shared library that uses libstdc++ std::ostream crashes
- From: "mjtruog at fastmail dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2010 17:04:51 -0000
- Subject: [Bug libstdc++/42679] RTLD_DEEPBIND dlopen option for shared library that uses libstdc++ std::ostream crashes
- References: <bug-42679-13845@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from mjtruog at fastmail dot ca 2010-01-29 17:04 -------
I am using "-fpic/-fPIC" and in fact am using:
// g++ -g -O0 main.cpp -ldl
// g++ -g -O0 -rdynamic -c -fPIC -o library.o library1.cpp
// g++ -shared -Wl,-export-dynamic -o library.so library.o
I do want to use RTLD_DEEPBIND to keep the libraries in isolation as you
mention, since I could have libraries that depend on different versions of GCC.
I understand that it doesn't work right now with g++ linking, so I might try
to switch to gcc linking. I just was concerned because it appeared to be
connected to libstdc++, but I guess it is a g++ linking peculiarity. I don't
think ignoring the RTLD_DEEPBIND feature in glibc would help.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42679