From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 544473858C39; Mon, 12 Feb 2024 17:09:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 544473858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707757769; bh=jFooNFgd3jCqbpzDxOeFl9Fz+x4QWWVDpKDELjiIWi4=; h=From:To:Subject:Date:From; b=T0dcyHAwdns8ZWS+jWX9/UaQIoJfK0wQLV9erM9sqYFrilPveOuvDoX2pP6FQZpvi kfqFpT1kbl/vBSgUbqw67kLhQX5nHiQjdPyoJJWS/ikKzqnQ8Kk5nwV96nZC7WdJOy eCSpG+6qugA5sMkM5J+XUl5k+mpQ+i5kIzzNdMHQ= From: "stffn.mobil at freenet dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/113891] New: On FreeBSD, a statically linked program which runs a std::thread aborts Date: Mon, 12 Feb 2024 17:09:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stffn.mobil at freenet dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113891 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=3D57400&action=3Dedit 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.=