public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gauryogesh.nsit at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/42679] RTLD_DEEPBIND dlopen option for shared library that uses libstdc++ std::ostream crashes Date: Wed, 02 Jan 2013 01:41:00 -0000 [thread overview] Message-ID: <bug-42679-4-ociXmLdimE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-42679-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42679 Yogesh Gaur <gauryogesh.nsit at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gauryogesh.nsit at gmail | |dot com --- Comment #20 from Yogesh Gaur <gauryogesh.nsit at gmail dot com> 2013-01-02 01:41:19 UTC --- Hello Jakub and Jason, Did we get any solution for this reported bugzilla. Actually I also have faced similar issue while loading my library using dlopen by passing RTLD_DEEPBIND flag. When I didn't pass this flag, no issues occurs and program run fine. I am using glibc-2.14. output with LD_DEBUG=all for both (crash and working) case : ================================================================== WITH RTLD_DEEPBIND flag Linux#> LD_DEBUG=all ./main_db 2>&1 | grep _ZSt4cerr 424: symbol=_ZSt4cerr; lookup in file=./main_db [0] 424: binding file /lib/libstdc++.so.6 [0] to ./main_db [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] 424: symbol=_ZSt4cerr; lookup in file=/lib/libdl.so.2 [0] 424: symbol=_ZSt4cerr; lookup in file=/lib/libstdc++.so.6 [0] 424: binding file ./main_db [0] to /lib/libstdc++.so.6 [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] 424: symbol=_ZSt4cerr; lookup in file=./library.so [0] 424: symbol=_ZSt4cerr; lookup in file=/lib/libstdc++.so.6 [0] 424: binding file ./library.so [0] to /lib/libstdc++.so.6 [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] //--> This is problematic scenario here as binding of this symbol is done with libstdc++.so.6 ================================================================== WITHOUT RTLD_DEEPBIND flag Linux#> LD_DEBUG=all ./main_ndb 2>&1 | grep _ZSt4cerr 427: symbol=_ZSt4cerr; lookup in file=./main_ndb [0] 427: binding file /lib/libstdc++.so.6 [0] to ./main_ndb [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] 427: symbol=_ZSt4cerr; lookup in file=/lib/libdl.so.2 [0] 427: symbol=_ZSt4cerr; lookup in file=/lib/libstdc++.so.6 [0] 427: binding file ./main_ndb [0] to /lib/libstdc++.so.6 [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] 427: symbol=_ZSt4cerr; lookup in file=./main_ndb [0] 427: binding file ./library.so [0] to ./main_ndb [0]: normal symbol `_ZSt4cerr' [GLIBCXX_3.4] // --> Here proper binding happen and binding of library.so is done with main_ndb executable. ================================================================== Please let me know if there is any solution for this long reported issue. I need to use RTLD_DEEPBIND flag.
next prev parent reply other threads:[~2013-01-02 1:41 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-42679-4@http.gcc.gnu.org/bugzilla/> 2010-12-29 6:25 ` liguanglei at gmail dot com 2010-12-29 23:51 ` redi at gcc dot gnu.org 2013-01-02 1:41 ` gauryogesh.nsit at gmail dot com [this message] 2013-01-04 10:58 ` redi at gcc dot gnu.org 2013-02-05 23:47 ` mjtruog at fastmail dot ca 2021-10-15 13:29 ` jeanmichael.celerier at gmail dot com 2021-10-15 13:35 ` jeanmichael.celerier at gmail dot com 2010-01-10 7:26 [Bug libstdc++/42679] New: " mjtruog at fastmail dot ca 2010-01-10 10:42 ` [Bug libstdc++/42679] " paolo dot carlini at oracle dot com 2010-01-10 18:16 ` mjtruog at fastmail dot ca 2010-01-10 19:18 ` paolo dot carlini at oracle dot com 2010-01-12 15:52 ` paolo dot carlini at oracle dot com 2010-01-22 7:10 ` mjtruog at fastmail dot ca 2010-01-28 3:10 ` paolo dot carlini at oracle dot com 2010-01-28 8:03 ` jakub at gcc dot gnu dot org 2010-01-28 9:50 ` paolo dot carlini at oracle dot com 2010-01-28 20:01 ` jason at gcc dot gnu dot org 2010-01-28 22:07 ` jakub at gcc dot gnu dot org 2010-01-28 22:35 ` paolo dot carlini at oracle dot com 2010-01-28 22:50 ` jakub at gcc dot gnu dot org 2010-01-28 23:00 ` paolo dot carlini at oracle dot com 2010-01-29 0:47 ` paolo dot carlini at oracle dot com 2010-01-29 7:52 ` jakub at gcc dot gnu dot org 2010-01-29 10:08 ` paolo dot carlini at oracle dot com 2010-01-29 17:05 ` mjtruog at fastmail dot ca 2010-03-07 17:53 ` mjtruog at fastmail dot ca
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-42679-4-ociXmLdimE@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).