From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB1ED3849AFD; Wed, 24 Apr 2024 14:27:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB1ED3849AFD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713968823; bh=jkL3ccp84Iarrw0HqfsQpqM5O/tmZ7dIfxyubLqHWdA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DaSQEqHhvLDgVXPdcJGqITG/3e8gl4zfeG5TS2FceMfw5P4AVBXIvBj+TLoZPqfbd YwXkjgmYWPSYGpFFAlDcnnBIs3gnSIOwIe5ifMI97diZtHGwEGyBAMjZlMJ7SqqNe9 f6dfAQRRNWbhMdy4+OXF784w7j77muiJkXuB6Mn4= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/31268] gdb.base/unwind-on-each-insn-amd64.exp regression Date: Wed, 24 Apr 2024 14:27:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 15.1 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=3D31268 --- Comment #11 from Sourceware Commits --- The master branch has been updated by Bernd Edlinger : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D63ddc8af5d7d= 3ad909aad66291f23507ba987bb4 commit 63ddc8af5d7d3ad909aad66291f23507ba987bb4 Author: Bernd Edlinger Date: Tue Apr 9 09:27:52 2024 +0000 Fix an out of bounds array access in find_epilogue_using_linetable An out of bounds array access in find_epilogue_using_linetable causes random test failures like these: FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: $fba_value =3D=3D $fn_fba FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: check frame-id matches FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: bt 2 FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: up FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: $sp_v= alue =3D=3D $::main_sp FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: $fba_value =3D=3D $::main_fba FAIL: gdb.base/unwind-on-each-insn-amd64.exp: foo: instruction 6: [stri= ng equal $fid $::main_fid] Here the read happens below the first element of the line table, and the test failure depends on the value that is read from there. It also happens that std::lower_bound returns a pointer exactly at the upper bound of the line table, also here the read value is undefined, that happens in this test: FAIL: gdb.dwarf2/dw2-epilogue-begin.exp: confirm watchpoint doesn't tri= gger Fixes: 528b729be1a2 ("gdb/dwarf2: Add support for DW_LNS_set_epilogue_b= egin in line-table") Co-Authored-By: Tom de Vries PR symtab/31268 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31268 --=20 You are receiving this mail because: You are on the CC list for the bug.=