From: Joseph Myers <joseph@codesourcery.com>
To: Florian Weimer <fweimer@redhat.com>, <libc-alpha@sourceware.org>,
Christian Brauner <christian.brauner@ubuntu.com>
Subject: Re: [pushed] Block signals during the initial part of dlopen
Date: Thu, 28 Nov 2019 18:04:07 +0000 [thread overview]
Message-ID: <alpine.DEB.2.21.1911281801090.3862@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20191127203048.27C2028173@gnutoolchain-gerrit.osci.io>
On Wed, 27 Nov 2019, Sourceware to Gerrit sync (Code Review) wrote:
> Block signals during the initial part of dlopen
>
> Lazy binding in a signal handler that interrupts a dlopen sees
> intermediate dynamic linker state. This has likely been always
> unsafe, but with the new pending NODELETE state, this is clearly
> incorrect. Other threads are excluded via the loader lock, but the
> current thread is not. Blocking signals until right before ELF
> constructors run is the safe thing to do.
This change (commit a2e8aa0d9ea648068d8be52dd7b15f1b6a008e23) breaks the
build for i686-gnu (unfortunately this was after a syntax error was
introduced in build-many-glibcs.py so my bots quietly died on re-execing
with the syntax error, and so didn't get to find this build failure).
There are a series of errors linking ld.so starting with:
/scratch/jmyers/glibc/many9/install/compilers/i686-gnu/lib/gcc/i686-glibc-gnu/9.2.1/../../../../i686-glibc-gnu/bin/ld: /scratch/jmyers/glibc/many9/build/glibcs/i686-gnu/glibc/libc_pic.a(libc_fatal.os): in function `__GI___libc_fatal':
/scratch/jmyers/glibc/many9/src/glibc/libio/../sysdeps/posix/libc_fatal.c:161: multiple definition of `__libc_fatal'; /scratch/jmyers/glibc/many9/build/glibcs/i686-gnu/glibc/elf/dl-allobjs.os:/scratch/jmyers/glibc/many9/src/glibc/elf/dl-minimal.c:188: first defined here
and leading up to:
make[3]: *** [/scratch/jmyers/glibc/many9/build/glibcs/i686-gnu/glibc/elf/librtld.map] Error 1
--
Joseph S. Myers
joseph@codesourcery.com
next prev parent reply other threads:[~2019-11-28 18:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-31 19:20 [review] Block signals during the initial part of dlopen Florian Weimer (Code Review)
2019-11-06 13:45 ` Christian Brauner (Code Review)
2019-11-06 15:16 ` Christian Brauner (Code Review)
2019-11-07 11:18 ` Christian Brauner (Code Review)
2019-11-07 11:43 ` Florian Weimer (Code Review)
2019-11-13 13:09 ` [review v2] " Florian Weimer (Code Review)
2019-11-15 16:02 ` [review v3] " Florian Weimer (Code Review)
2019-11-15 16:08 ` Christian Brauner (Code Review)
2019-11-27 20:30 ` [pushed] " Sourceware to Gerrit sync (Code Review)
2019-11-28 18:04 ` Joseph Myers [this message]
2019-11-28 18:48 ` Florian Weimer
2019-11-28 19:08 ` Florian Weimer
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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.1911281801090.3862@digraph.polyomino.org.uk \
--to=joseph@codesourcery.com \
--cc=christian.brauner@ubuntu.com \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.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).