From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E9423858C98; Mon, 18 Mar 2024 14:55:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E9423858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710773735; bh=ZwLIuaG9GNGhw9CLeet31lZDVUSxjGGSWCc8X3ad0Iw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v0FNLyRMX2E0Cs8mV/YN1zIif32ew1Mq2Xpz6hjNLJN2JSClVzriSKzemHFhA0YSD oetKo/94//GBVNOoxo6WMU2y6uzlTtvuHczi9ChC6A/wDtoykPI+Uem+rgiGZ8eOtR sZrTeiqDD07Zx2xn+sV8WTaAl4MA031yrV/9hb9s= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31507] [gdb, aarch64] FAIL: gdb.arch/disp-step-insn-reloc.exp: can_relocate_adr_forward: relocated instruction Date: Mon, 18 Mar 2024 14:55:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Message-ID: In-Reply-To: References: 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=3D31507 --- Comment #5 from Tom de Vries --- More minimal version: ... $ cat gdb.in file /home/linux/gdb/build/gdb/testsuite/outputs/gdb.arch/disp-step-insn-reloc/d= isp-step-insn-reloc start break *set_point0 break *set_point1 break *set_point2 break pass break fail set displaced-stepping on continue bt continue bt continue bt continue bt continue bt continue bt $ gdb -q -batch -ex "set trace-commands on" -x gdb.in 2>&1 | tee LOG; grep Breakpoint LOG ... Usually, we have: ... Breakpoint 2, 0x0000aaaaaaaa08bc in can_relocate_b () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:128 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 Breakpoint 3, 0x0000aaaaaaaa090c in can_relocate_bcond_true () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:164 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 Breakpoint 4, 0x0000aaaaaaaa0958 in can_relocate_cbz () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:203 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 ... But once in a while: ... Breakpoint 2, 0x0000aaaaaaaa08bc in can_relocate_b () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:128 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 Breakpoint 3, 0x0000aaaaaaaa090c in can_relocate_bcond_true () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:164 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 Breakpoint 4, 0x0000aaaaaaaa0958 in can_relocate_cbz () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:203 ... Looking at the backtrace, we hit pass twice without making progress: ... +continue Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 31 } +bt #0 pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 #1 0x0000aaaaaaaa0928 in can_relocate_bcond_true () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:179 #2 0x0000aaaaaaaa0c9c in main () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:629 +continue Breakpoint 5, pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 31 } +bt #0 pass () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:31 #1 0x0000aaaaaaaa0928 in can_relocate_bcond_true () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:179 #2 0x0000aaaaaaaa0c9c in main () at /home/linux/gdb/src/gdb/testsuite/gdb.arch/insn-reloc.c:629 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=