From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B40193858D32; Tue, 19 Sep 2023 09:43:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B40193858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695116638; bh=l8kXMFQz6zDHsakqZhHTntbfOWyAm5P/IgCaB4mOXoI=; h=From:To:Subject:Date:From; b=GADX6RdF52/nDbYm2jiNd56w2hDBAhDLSXfDBg+1+fimboCVgImtiTgWp3V3bH01e TZEzij/PP3grKaJ6BP88o9N9Zgsf0Zw6sLImVyHEXBT9GfzxNhADMA23jVznI2iVBq L1CR1vCOIxVDlEDfgD011sUBPhcrm9jY+usvFXGM= From: "zbigniew2011 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/30872] New: Assertion `buffer.copy_insn_closure.get () != nullptr' failed Date: Tue, 19 Sep 2023 09:43:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zbigniew2011 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30872 Bug ID: 30872 Summary: Assertion `buffer.copy_insn_closure.get () !=3D nullptr' failed Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: zbigniew2011 at gmail dot com Target Milestone: --- During any attempt of debugging session with ARM32 assembler binary gdb 13.1/13.2 breaks on regular basis: (gdb) break _start Breakpoint 1 at 0x1005c (gdb) run Starting program: /home/zb/devel/pi-asm-master/06_first_data.bin=20 Breakpoint 1, 0x0001005c in _start () (gdb) nexti 0x00010060 in _start () (gdb) nexti /build/gdb-qUBixh/gdb-13.2/gdb/displaced-stepping.c:287: internal-error: copy_insn_closure_by_addr: Assertion `buffer.copy_insn_closure.get () !=3D nullptr' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. ----- Backtrace ----- 0x4ce739 ??? 0x6ea34b ??? 0x6ea4f1 ??? 0x7ce215 ??? 0x53065b ??? [..] 0x585b15 ??? 0x584a49 ??? --------------------- /build/gdb-qUBixh/gdb-13.2/gdb/displaced-stepping.c:287: internal-error: copy_insn_closure_by_addr: Assertion `buffer.copy_insn_closure.get () !=3D nullptr' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n About any simple assembler program can be used to repeat this; it happens a= ll the time. Still I paste the one used in that attempt: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D .section .rodata=20 msg: .ascii "Hello, World\n" .text .align 2 SYS_EXIT =3D 1 SYS_WRITE =3D 4 STDOUT =3D 1 .global _start exit: mov r7, #SYS_EXIT svc #0 _start: mov r7, #SYS_WRITE mov r0, #STDOUT ldr r1, =3Dmsg mov r2, #13 svc #0 // Now exit mov r0, #0 b exit =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D as program.s -o program.o && ld program.o -o program.bin Then simply: gdb -q ./program.bin =E2=80=94 and the rest like above; after = second or third =E2=80=9Enexti=E2=80=9D gdb will ALWAYS break. Tested both 13.1 and 13.2 versions of gdb. Gear: Banana Pi M2+, Armbian =E2=80=9EBookworm=E2=80=9D, ARM32 =E2=80=94 he= re's an excerpt from cpuinfo: processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 22.85 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva i= divt vfpd32 lpae evtstrm=20 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 [..] Hardware : Allwinner sun8i Family Revision : 0000 Serial : 02c00081f0069981 --=20 You are receiving this mail because: You are on the CC list for the bug.=