From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1C26C385801E; Wed, 10 Aug 2022 22:05:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C26C385801E From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/106581] [Aarch64] libstdc++ segfault at end of execution Date: Wed, 10 Aug 2022 22:05:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2022 22:05:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106581 --- Comment #3 from Andrew Pinski --- (In reply to Lance Fredrickson from comment #2) > Here is the disassemble >=20 > (gdb) disassemble > Dump of assembler code for function _ZSt18uncaught_exceptionv: > 0x0000007fb7eae2a8 <+0>: stp x29, x30, [sp, #-16]! > 0x0000007fb7eae2ac <+4>: mov x29, sp > 0x0000007fb7eae2b0 <+8>: bl 0x7fb7ea8dd0 <__cxa_get_globals@p= lt> > =3D> 0x0000007fb7eae2b4 <+12>: ldr w0, [x0, #8] > 0x0000007fb7eae2b8 <+16>: cmp w0, #0x0 > 0x0000007fb7eae2bc <+20>: cset w0, ne // ne =3D any > 0x0000007fb7eae2c0 <+24>: ldp x29, x30, [sp], #16 > 0x0000007fb7eae2c4 <+28>: ret > End of assembler dump. "info registers" What is the value of x0 at this point? Can you also do "disassemble __cxa_get_globals"?=