From nobody Wed Apr 24 16:39:36 2024 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VPl7r706Cz5Hx6v for ; Wed, 24 Apr 2024 16:39:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VPl7r3dFVz4n4s for ; Wed, 24 Apr 2024 16:39:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713976776; a=rsa-sha256; cv=none; b=pv4Pr/1n2oeP6Tdf1Mke5QFxkg/u74gSJ9TNn/3BdJ5L2Lgz5VhrdijsQUla9dMQGvclwj Tp7bCCB8t9VEKj3N3LnTJ51EQ/2Ph3cm3CBRNA9LBI63OXAS++ruivDizYaWnbpuEtYw6o pQTAbz77zorJI4ocwJEXnUeQ6N8aaLDCY+I3IOfv821F40YM61AsdKr2eQvhlVvByQr5TN urm+hNOL8daroqq7//pclz371euf6IwUms+k8s3ZXXOQie1gqbLHGDwdph+VW5geh+VLcz oZgpk5rTLpZ12H3/2L7vQNhY94RzXa94QQS2EpJCqDfproIhEcD8VyDiIf3Sqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713976776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JZqXdPE8uel+P4W9oBEFqsYIsiYvrjxeYJ+CgdqLJbo=; b=R3KeyNkukXInN3npFUwf1775JBUwXx2+uA8ntyUtTC4yag6HJeIHKpdh7wkl/ITuGBnvjo IZGVD3IhRmYizJI+gEsuEsCxSfBv5m78UH3wR0HSQnKIIM5momp71omNsVS4vNwlad/7tY yWZtStbRs1V2uH+LRg584CKcTcAn2/+03ditX9M295WdZJK5AkISd6rapR4iW+iW6bw8R6 ZPN0YjOxGMH6RoGQjHc7BLTF7Hw4gO4hTFiakLnbl45JZ3I1y0sahlAt3S/iMeAhwHbj5W qs02KArURIfbviLMc3aECaq+/t8IE6n+gCdWjTkaDKJ2NR+g68mxCvA3eClRpQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VPl7r3D89zN04 for ; Wed, 24 Apr 2024 16:39:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43OGdaWD016905 for ; Wed, 24 Apr 2024 16:39:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43OGdaQa016898 for toolchain@FreeBSD.org; Wed, 24 Apr 2024 16:39:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 278551] pthread_join() kills the process with a return code of 134 Date: Wed, 24 Apr 2024 16:39:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278551 --- Comment #5 from Ed Maste --- I can reproduce this with GCC 10, 11, 12, and 13. I cannot reproduce this w= ith Clang 16 or 17. $ clang++16 -std=3Dc++20 -static-libgcc -static-libstdc++ -static -pthread = -O3 "main.cpp" -o "main_clang++" && ./main_clang++ clang-16: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument] clang-16: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument] kernel FreeBSD RELEASE 14.0 doesn't reach here. $ clang++17 -std=3Dc++20 -static-libgcc -static-libstdc++ -static -pthread = -O3 "main.cpp" -o "main_clang++" && ./main_clang++ clang++: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument] clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument] kernel FreeBSD RELEASE 14.0 doesn't reach here. It's reproducible with any exception with GCC: static-except.cc: int fn(void) { throw (int)0; } int main(int argc, char *argv[])=20 { try {=20 fn(); } catch (int i) { return 0; } return 1; } $ g++13 -static static-except.cc -o static-except && ./static-except Abort trap (core dumped) I'll change this to a lang/gcc bug --=20 You are receiving this mail because: You are the assignee for the bug.=