From: Simon South <simon@simonsouth.net>
To: 53005@debbugs.gnu.org
Subject: bug#53005: [PATCH 1/1] gnu: glibc: Preserve "__pthread_key_create" symbol.
Date: Mon, 10 Jan 2022 18:34:26 -0500 [thread overview]
Message-ID: <7e85b4a230a68240759120e8440ea77cf1d6e927.1641856285.git.simon@simonsouth.net> (raw)
In-Reply-To: <cover.1641856285.git.simon@simonsouth.net>
Avoid a potential crash in multithreaded applications by preserving the
pthread library's "__pthread_key_create" symbol, used by libgcc to detect the
use of threads in an application.
Fixes <https://issues.guix.gnu.org/53005>.
* gnu/packages/base.scm (glibc)[arguments]: Add "#:strip-flags" with
"--keep-symbol=__pthread_key_create" appended to the default set.
---
gnu/packages/base.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 12e4de52d4..68c85dcdd5 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -795,6 +795,16 @@ (define-public glibc
'()))
#:tests? #f ; XXX
+
+ #:strip-flags '("--strip-unneeded"
+ "--enable-deterministic-archives"
+
+ ;; Preserve the symbol "__pthread_key_create" in the
+ ;; pthread library as this is used by libgcc to detect
+ ;; the use of threads in an application.
+ ;; See https://issues.guix.gnu.org/53005.
+ "--keep-symbol=__pthread_key_create")
+
#:phases (modify-phases %standard-phases
(add-before
'configure 'pre-configure
--
2.34.0
next prev parent reply other threads:[~2022-01-11 0:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 14:36 bug#53005: cryptsetup-static aborts opening LUKS2 volume with Argon2i PBKDF Simon South
2022-01-04 14:44 ` Simon South
2022-01-08 1:52 ` Simon South
2022-01-10 23:34 ` Simon South
2022-01-10 23:34 ` Simon South [this message]
2022-01-12 19:21 ` bug#53005: [PATCH 1/1] gnu: glibc: Preserve "__pthread_key_create" symbol Leo Famulari
2022-01-12 21:22 ` Simon South
2022-05-01 9:49 ` Tom Fitzhenry
2022-08-19 3:31 ` bug#53005: cryptsetup-static aborts opening LUKS2 volume with Argon2i PBKDF angry rectangle
2024-02-07 19:59 ` Simon South
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7e85b4a230a68240759120e8440ea77cf1d6e927.1641856285.git.simon@simonsouth.net \
--to=simon@simonsouth.net \
--cc=53005@debbugs.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).