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

--- Comment #6 from Antal Buss <antal.buss at ualberta dot ca> ---
Unfortunately no, I'm compiling with (suggested in stackoverflow):

g++-10 -Wall -Wextra -o test --static -std=c++20 test.cc -lrt -pthread 
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive

but still producing segmentation fault.

Running it through gdb I got:

Thread 1 "test" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) up
#1  0x0000000000402edc in __gthread_self() ()
(gdb) up
#2  0x000000000040314f in std::stop_token::_Stop_state_t::_M_request_stop() ()

Reply via email to