From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: Multiple bugs in dlopen & dependency tracking
Date: Tue, 4 Jul 2017 18:05:10 +0200 [thread overview]
Message-ID: <20170704160509.GE2032@port70.net> (raw)
In-Reply-To: <20170704145328.GA15186@brightrain.aerifal.cx>
* Rich Felker <dalias@libc.org> [2017-07-04 10:53:28 -0400]:
> Commit 4ff234f6cba96403b5de6d29d48a59fd73252040 introduced a
> regression whereby dlopen RTLD_GLOBAL of a library that was previously
> loaded RTLD_LOCAL no longer promotes the library to the global
> namespace as intended. This is easy to fix, but there are other
> related bugs I've found in the process, and I want to document them
> here. Some may be trickier to fix. They relate to the ->deps list for
> a dso, which is supposed to contain a dependency-order list of dsos
> that dlsym will search when called on the dso handle. These are also
> connected to the stalled attempt to do dependency-order execution of
> constructors.
maybe adding debugging to the dynamic linker would help
finding these issues earlier (e.g. if LD_DEBUG is set
then print some trace to stderr in whatever format about
what the dynamic linker is doing) since using a debugger
on the dynamic linker is often non-trivial.
prev parent reply other threads:[~2017-07-04 16:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 14:53 Rich Felker
2017-07-04 16:05 ` Szabolcs Nagy [this message]
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=20170704160509.GE2032@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).