public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/95989] Segmentation fault compiling with static libraries and using jthread::request_stop
Date: Wed, 10 Apr 2024 12:56:35 +0000	[thread overview]
Message-ID: <bug-95989-4-dcv8gLLNUK@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-95989-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95989

--- Comment #24 from Jonathan Wakely <redi at gcc dot gnu.org> ---
>             * testsuite/30_threads/jthread/95989.cc: New test.

This testcase fails on FreeBSD 14:

Starting program:
/home/gcc/build/x86_64-unknown-freebsd14.0/libstdc++-v3/testsuite/95989.exe 
[New LWP 106082 of process 5331]

Thread 2 received signal SIGABRT, Aborted.
Sent by thr_kill() from pid 5331 and user 1001.
[Switching to LWP 106082 of process 5331]
thr_kill () at thr_kill.S:4
warning: 4      thr_kill.S: No such file or directory
(gdb) bt
#0  thr_kill () at thr_kill.S:4
#1  0x000000000042803f in __raise (s=s@entry=6) at
/usr/src/lib/libc/gen/raise.c:50
#2  0x000000000043c779 in abort () at /usr/src/lib/libc/stdlib/abort.c:64
#3  0x0000000000400cbc in uw_init_context_1
(context=context@entry=0x7fffdfffdd50,
outer_cfa=outer_cfa@entry=0x7fffdfffdf80, outer_ra=0x425546 <thread_unwind+54>)
at /mnt/gcc-src/libgcc/unwind-dw2.c:1336
#4  0x00000000004146a6 in _Unwind_ForcedUnwind (exc=0x80082d940, stop=0x4256f0
<thread_unwind_stop>, stop_argument=stop_argument@entry=0x0) at
/mnt/gcc-src/libgcc/unwind.inc:212
#5  0x0000000000425546 in thread_unwind () at
/usr/src/lib/libthr/thread/thr_exit.c:172
#6  0x00000000004254af in _pthread_exit_mask (status=0x0, mask=mask@entry=0x0)
at /usr/src/lib/libthr/thread/thr_exit.c:254
#7  0x000000000042541b in _Tthr_exit (status=0x19e62) at
/usr/src/lib/libthr/thread/thr_exit.c:206
#8  0x0000000000424f2d in thread_start (curthread=0x80082d700) at
/usr/src/lib/libthr/thread/thr_create.c:289
#9  0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdfffe000
(gdb) fr 3
#3  0x0000000000400cbc in uw_init_context_1
(context=context@entry=0x7fffdfffdd50,
outer_cfa=outer_cfa@entry=0x7fffdfffdf80, outer_ra=0x425546 <thread_unwind+54>)
at /mnt/gcc-src/libgcc/unwind-dw2.c:1336
1336      gcc_assert (code == _URC_NO_REASON);

  parent reply	other threads:[~2024-04-10 12:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30 20:25 [Bug libstdc++/95989] New: " webrown.cpp at gmail dot com
2020-06-30 22:35 ` [Bug libstdc++/95989] " redi at gcc dot gnu.org
2020-06-30 22:59 ` antal.buss at ualberta dot ca
2020-06-30 23:21 ` redi at gcc dot gnu.org
2020-06-30 23:30 ` redi at gcc dot gnu.org
2020-06-30 23:39 ` redi at gcc dot gnu.org
2020-07-01 10:15 ` redi at gcc dot gnu.org
2020-07-01 13:28 ` fw at gcc dot gnu.org
2020-07-01 13:53 ` redi at gcc dot gnu.org
2020-07-06 12:38 ` fw at gcc dot gnu.org
2020-07-08 14:39 ` redi at gcc dot gnu.org
2020-07-08 15:36 ` redi at gcc dot gnu.org
2020-07-09  9:58 ` redi at gcc dot gnu.org
2020-11-11 17:26 ` redi at gcc dot gnu.org
2020-11-19 21:07 ` cvs-commit at gcc dot gnu.org
2020-11-20 13:49 ` cvs-commit at gcc dot gnu.org
2020-11-20 13:52 ` redi at gcc dot gnu.org
2021-09-21 13:42 ` ebotcazou at gcc dot gnu.org
2022-03-04  4:08 ` lightningdzeyenr at gmail dot com
2022-03-04  9:25 ` redi at gcc dot gnu.org
2022-03-09  4:27 ` lightningdzeyenr at gmail dot com
2023-03-03 19:10 ` cvs-commit at gcc dot gnu.org
2024-04-10 12:56 ` redi at gcc dot gnu.org [this message]
2024-04-10 17:32 ` pinskia 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-95989-4-dcv8gLLNUK@http.gcc.gnu.org/bugzilla/ \
    --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).