From nobody Wed Apr 24 20:04:57 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 4VPqhp3yKtz5J1Vs for ; Wed, 24 Apr 2024 20:04:58 +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 4VPqhn6zP5z4Hcm for ; Wed, 24 Apr 2024 20:04:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713989098; a=rsa-sha256; cv=none; b=mtOH4RY0zk4NxzAM+SpDxyztbhhMkavPD/e3i/7XtejDAieVq01/j9gxrW+mqfMuyemzYt ytJcL/zyEUZNuWcmdpGlb9ToAzdGEUcMg6iL7S8zfvbCrsoN9jC/DggJDhMsHcdYQvp2/t VzeMvZJzxLPzZdTYeJe6tk06ozS1CRJKTjJTnPyxiaBeoRbKRHgLwdaLZW9J5uvNpUcgtL c6FWtMAllLwv261eq/Gj0VzzeffrTbKbl5Po6OPNA5CJWFrUmyOy+ggcXVMtroQUjvyisY GtHSEz6XXPpN3aXnJVJdAQAQMAnlt9jRHAbgzlLeU8ryXbzS7F5ntT7TEh0mwg== 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=1713989098; 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=ExTRXyv98auN1cdGeVTvf/331mr1fjZ5p1mupIVq4SE=; b=vZ02KHi2SFHJ652/jItVvrEBnoeqD6L+WLx78Uym38C26w07Rb8C2q+MUWAkxZ4G6W5/1X XtIEC7uvQ5SoqpN2+p61jtLR/8A9n8bTygsrHXfXeCU5qL5p8CI9b5vUBqVUlfRAubAvbm qK6gT1yUZCPb5h3HAqkqnHAFJWIhapAa40yiHfhM9bBXhZgHQxreUB5eX51saDpdwJ7oC1 jjUEeEhLAsAmXxwKP4miH8Zl/WKOAKuUkD4OfHOnzf38iA8GA91vno1GyEmIQG1cEAY07s lndm0nB+MejfBObTI1Yvj2R1RNb7VCIxvb2rDCrssRkv7Cx2mtjBpiPHdMcQBg== 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 4VPqhn6bCczT3b for ; Wed, 24 Apr 2024 20:04:57 +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 43OK4vih097251 for ; Wed, 24 Apr 2024 20:04:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43OK4vmT097246 for toolchain@FreeBSD.org; Wed, 24 Apr 2024 20:04:57 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] lang/gcc: exceptions do not work in statically linked binaries Date: Wed, 24 Apr 2024 20:04:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com 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 #18 from Mark Millard --- FYI: I got more source code path information from a gdb based run. The context used g++13 but the system has symbols as well. I keep a main-src worktree that holds a copy of the main branch materials. Thus the /usr/main-src/ in my paths. (gdb) run Starting program: /usr/home/root/c_tests/g++-static-link-test=20 [New LWP 249477 of process 56713] kernel Thread 2 received signal SIGABRT, Aborted. Sent by thr_kill() from pid 56713 and user 0. [Switching to LWP 249477 of process 56713] thr_kill () at thr_kill.S:4 4 RSYSCALL(thr_kill) (gdb) bt #0 thr_kill () at thr_kill.S:4 #1 0x00000000004c283f in __raise (s=3Ds@entry=3D6) at /usr/main-src/lib/libc/gen/raise.c:48 #2 0x00000000004df3d9 in abort () at /usr/main-src/lib/libc/stdlib/abort.c= :61 #3 0x0000000000402be5 in uw_init_context_1 (context=3Dcontext@entry=3D0x7fffdfffdd50, outer_cfa=3Douter_cfa@entry=3D0x7fffdfffdf80, outer_ra=3D0x4b2fc6 ) at /wrkdirs/usr/ports/lang/gcc13/work/gcc-13.2.0/libgcc/unwind-dw2.c:13= 36 #4 0x00000000004ae786 in _Unwind_ForcedUnwind (exc=3D0x800818940, stop=3D0= x4b3170 , stop_argument=3Dstop_argument@entry=3D0x0) at /wrkdirs/usr/ports/lang/gcc13/work/gcc-13.2.0/libgcc/unwind.inc:212 #5 0x00000000004b2fc6 in thread_unwind () at /usr/main-src/lib/libthr/thread/thr_exit.c:172 #6 0x00000000004b2f2c in _pthread_exit_mask (status=3D0x0, mask=3Dmask@ent= ry=3D0x0) at /usr/main-src/lib/libthr/thread/thr_exit.c:254 #7 0x00000000004b2e9b in _Tthr_exit (status=3D0x3ce85) at /usr/main-src/lib/libthr/thread/thr_exit.c:206 #8 0x00000000004b2b0d in thread_start (curthread=3D0x800818700) at /usr/main-src/lib/libthr/thread/thr_create.c:289 #9 0x0000000000000000 in ?? () Backtrace stopped: Cannot access memory at address 0x7fffdfffe000 --=20 You are receiving this mail because: You are the assignee for the bug.=