From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB63A3858C83; Wed, 12 Apr 2023 20:57:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB63A3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681333027; bh=a0jOigT54cXb85zfEU+8RzJclHg3rjy5BjAm9+KkGxE=; h=From:To:Subject:Date:From; b=WevAwGPQeyeEfpnyv/FVvIlkfhQthuLCvmUlufVJabH2FdE/+d5l4ZhtcgY6Do0ML JSF26JTfASw+Trowb7W5zYQNOr6FHvXFTwSWNad4fGG3ttbr/GRWisdbHiKZYiBFIE lXiGdaKO7yB2VTbeoj3CL3B6yjS6LTVKtXgQq6cc= From: "ahajkova at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/30340] New: gdb.base/watchpoint-unaligned.exp produces TCL error Date: Wed, 12 Apr 2023 20:57:07 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ahajkova at redhat dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created 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=3D30340 Bug ID: 30340 Summary: gdb.base/watchpoint-unaligned.exp produces TCL error Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: ahajkova at redhat dot com Target Milestone: --- Created attachment 14818 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14818&action=3Ded= it patch When running gdb.base/watchpoint-unaligned.exp at aarch64 - Ampere Altra wi= th Fedora 39: I'm getting TCL error: root/build/gdb/gdb version 14.0.50.20230411-git -nw -nx -q -iex "set heigh= t 0" -iex "set width 0" -data-directory /root/build/gdb/data-directory=20 ERROR: ------------------------------------------- ERROR: in testcase /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp ERROR: can't read "wpoffset_to_wpnum(1)": no such element in array ERROR: tcl error code TCL READ VARNAME ERROR: tcl error info: can't read "wpoffset_to_wpnum(1)": no such element in array while executing "list -re "\r\nCould not insert hardware watchpoint .*\r\n$gdb_prompt $" {= =20=20=20=20=20 } -re "$rwatch_exp $wpoffset_to_wpnum(1):.*alue =3D .*\r\n$gdb_prompt= $" {=20 ..." ("uplevel" body line 1) invoked from within "uplevel list $subst_code" (procedure "gdb_test_multiple" line 77) invoked from within "gdb_test_multiple $test $test { -re "\r\nCould not insert hardware watchpoint .*\r\n$gdb_prompt $" { } -re "$rwatch_exp $wpoffset_to_wpnum(1):.*alu..." ("foreach" body line 24) invoked from within "foreach wpcount {4 7} { array set wpoffset_to_wpnum {} for {set wpoffset 1} {$wpoffset <=3D $wpcount} {incr wpoffset} { set test "$rwatch data...." (file "/root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/wat= chpoint-unaligned.exp" line 101) invoked from within "source /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp" invoked from within "catch "uplevel #0 source $test_file_name" msg" -------------------------------------------------- =3D=3D=3D gdb Summary =3D=3D=3D # of expected passes 142 # of unexpected failures 537 # of unresolved testcases 1 # of paths in test names 1 # of duplicate test names 16 /root/build/gdb/gdb version 14.0.50.20230411-git -nw -nx -q -iex "set heig= ht 0" -iex "set width 0" -data-directory /root/build/gdb/data-directory=20 ERROR: ------------------------------------------- ERROR: in testcase /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp ERROR: can't read "wpoffset_to_wpnum(1)": no such element in array ERROR: tcl error code TCL READ VARNAME ERROR: tcl error info: can't read "wpoffset_to_wpnum(1)": no such element in array while executing "list -re "\r\nCould not insert hardware watchpoint .*\r\n$gdb_prompt $" {= =20=20=20=20=20 } -re "$rwatch_exp $wpoffset_to_wpnum(1):.*alue =3D .*\r\n$gdb_prompt= $" {=20 ..." ("uplevel" body line 1) invoked from within "uplevel list $subst_code" (procedure "gdb_test_multiple" line 77) invoked from within "gdb_test_multiple $test $test { -re "\r\nCould not insert hardware watchpoint .*\r\n$gdb_prompt $" { } -re "$rwatch_exp $wpoffset_to_wpnum(1):.*alu..." ("foreach" body line 24) invoked from within "foreach wpcount {4 7} { array set wpoffset_to_wpnum {} for {set wpoffset 1} {$wpoffset <=3D $wpcount} {incr wpoffset} { set test "$rwatch data...." (file "/root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/wat= chpoint-unaligned.exp" line 101) invoked from within "source /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /root/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.base/watc= hpoint-unaligned.exp" invoked from within "catch "uplevel #0 source $test_file_name" msg" -------------------------------------------------- make[2]: *** [Makefile:226: do-check-single] Error 1 Attached patch fixes the TCL problem for me - but the test itself still fai= ls: =3D=3D=3D gdb Summary =3D=3D=3D # of expected passes 142 # of unexpected failures 546 # of known failures 1 # of duplicate test names 16 --=20 You are receiving this mail because: You are on the CC list for the bug.=