public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bruno at clisp dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug dynamic-link/21777] use of pthread_getspecific, pthread_setspecific in a statically linked program leads to a crash before main
Date: Mon, 08 Apr 2024 21:29:13 +0000	[thread overview]
Message-ID: <bug-21777-131-IknqC1CDnO@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-21777-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=21777

Bruno Haible <bruno at clisp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |FIXED

--- Comment #7 from Bruno Haible <bruno at clisp dot org> ---
It works fine with glibc 2.39 and gcc 13.2.1 (verified on Arch Linux 2024.04):

$ gcc -Wall -O testfstrcmp.c -static -pthread
$ ./a.out
>> main
<< main

$ gcc -Wall -O testfstrcmp.c -static
$ ./a.out
>> main
<< main

-- 
You are receiving this mail because:
You are on the CC list for the bug.

       reply	other threads:[~2024-04-08 21:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-21777-131@http.sourceware.org/bugzilla/>
2024-04-08 21:29 ` bruno at clisp dot org [this message]
2024-04-09 12:28 ` cvs-commit at gcc dot gnu.org

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-21777-131-IknqC1CDnO@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@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).