public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <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: Thu, 28 Jan 2010 22:07:00 -0000	[thread overview]
Message-ID: <20100128220714.9527.qmail@sourceware.org> (raw)
In-Reply-To: <bug-42679-13845@http.gcc.gnu.org/bugzilla/>



------- Comment #9 from jakub at gcc dot gnu dot org  2010-01-28 22:07 -------
The theoretical example is libstdc++ defining some object where things
misbehave if it is not the only one (say foo) and some other library has that
object as well.  When that other library isn't an direct or indirect dependency
of the executable, but libstdc++ is, in all libraries loaded before start of
the program foo resolves to the libstdc++ copy.  When you dlopen RTLD_DEEPBIND
this other library, foo in it and all its dependencies will resolve to the
other library, as it comes earlier in the search scope, before global scope.
I guess LD_DEBUG=all could shed some light into what exactly is going on, it
could be the empty string, or something similar.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42679


  parent reply	other threads:[~2010-01-28 22:07 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
     [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
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

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=20100128220714.9527.qmail@sourceware.org \
    --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: link
Be 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).