From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA0E13849AEA; Wed, 24 Apr 2024 18:05:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA0E13849AEA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713981949; bh=vypadkQGm77g3tyS1I12NUzMrkgmfh5+VDLXVuKEaYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mVl7zsjv72nfJyxHhnwvTevFAPV6Q2n7pK0F6AaM8VIGo8Ji64k86D9Z2jhRu2P9H 4B4k8+TA3oJf/SmvzNr8z50V3qFN+zUOC2BrGb7Ec7+bQImQt8AKdzpqZaJx5x0dsa WXcs+A5CKnRSJ2WnT2Fqg2T/MvnRpcjkIBo8gMX0= From: "emaste at freebsd dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114839] g++-linked FreeBSD static binaries abort upon exception Date: Wed, 24 Apr 2024 18:05:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: emaste at freebsd dot org 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: Message-ID: In-Reply-To: References: 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=3D114839 --- Comment #3 from Ed Maste --- (In reply to Andrew Pinski from comment #2) > Is it the case that unwinder from LLVM needs a .eh_frame_hdr for static > binaries while GCC's libgcc one does not? That's possible, but in the investigation in the FreeBSD bug report I belie= ve that GCC's libgcc is being used here: #0 0x00000000004d4dca in thr_kill () #1 0x00000000004c226f in raise () #2 0x00000000004df6f9 in abort () #3 0x0000000000402bef in uw_init_context_1 ( context=3Dcontext@entry=3D0x7fffdfffdd50,=20 outer_cfa=3Douter_cfa@entry=3D0x7fffdfffdf80,=20 outer_ra=3D0x4b2326 ) at ../../../gcc-13.2.0/libgcc/unwind-dw2.c:1336 #4 0x00000000004ad986 in _Unwind_ForcedUnwind (exc=3D0x800818940,=20 stop=3D0x4b24d0 , stop_argument=3D0x0) at ../../../gcc-13.2.0/libgcc/unwind.inc:212=