https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
Bug ID: 113891
Summary: On FreeBSD, a statically linked program which runs a
std::thread aborts
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: stffn.mobil at freenet dot de
Target Milestone: ---
Created attachment 57400
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57400&action=edit
g++13 -v
A simple program which launches a std::thread and is statically linked on
FreeBSD aborts. This is not an issue with dynamically linked program. This is
also not an issue with LLVM.
The gdb backtrace points to the function thread_start in FreeBSD's libthr
(thr_create.c). So I thought this would be an issue with the pthread
implementation but I sadly can't reproduce this with a C program.