From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 622CF38518A1; Mon, 21 Nov 2022 16:34:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 622CF38518A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669048466; bh=pz1nm3M4o2jQUy9ZZWgoSHu/EZ03euQc+LA2LqkOIVA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OuLwoyX4UA4rGVANRuSJPf1HC/UYUC8nIuMBP9Kv5sqk3Bl17S1wDERuofTLwQWVY 34WOrkWyh35WChxyPSQQpFAQ3E6+PQXZlzScgJjQqz9SjX8pX7Jzt7QP7xNEsewdx2 himm8WPPjhmxtTlEaoBeRYRt268wGdR2SXvONyhg= From: "cel at us dot ibm.com" To: gdb-prs@sourceware.org Subject: [Bug tdep/29793] [gdb/tdep, powerpc] FAIL: gdb.cp/gdb2495.exp: call a function that raises an exception without a handler. Date: Mon, 21 Nov 2022 16:34:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cel at us dot ibm.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: 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=3D29793 --- Comment #18 from Carl E Love --- The issue on Friday was one of the hunks would not apply. I could see the source code was clearly different. Even after doing a fresh pull it didn't apply.=20=20 I update the tree again this morning and applied the patch: carll@ltcd97-lp3:~/GDB/binutils-gdb-test$ patch -p 1 < ../tom.patch patching file gdb/breakpoint.c Hunk #1 succeeded at 3296 (offset 13 lines). Hunk #2 succeeded at 3310 (offset 13 lines). Hunk #3 succeeded at 3586 (offset 13 lines). Hunk #4 succeeded at 3613 (offset 13 lines). Hunk #5 succeeded at 3683 (offset 13 lines). Hunk #6 succeeded at 3705 (offset 13 lines). So upstream seems to have moved a little but not a problem. The source code conflict is gone. I ran the test before doing the make and the make install. The test fails as expected: make check RUNTESTFLAGS=3D'GDB=3D/home/carll/bin/gdb gdb.cp/gdb2495.exp= ' WARNING: Couldn't find the global config file. WARNING: Couldn't find tool init file WARNING: Couldn't find the global config file. WARNING: Couldn't find tool init file WARNING: Couldn't find the global config file. WARNING: Couldn't find tool init file WARNING: Couldn't find the global config file. WARNING: No tool specified WARNING: Couldn't find the global config file. make[4]: *** [Makefile:226: do-check-single] Error 1 make[3]: *** [Makefile:161: check] Error 2 make[2]: *** [Makefile:1922: check] Error 2 make[1]: *** [Makefile:13585: check-gdb] Error 2 I checked the log file and see the failure: ----------------------- (gdb) run=20 Starting program: /home/carll/GDB/build-twst/gdb/testsuite/outputs/gdb.cp/gdb2495/gdb2495 ^M [Thread debugging using libthread_db enabled]^M Using host libthread_db library "/lib64/libthread_db.so.1".^M Breakpoint 1, main () at /home/carll/GDB/build-test/gdb/testsuite/../../../binutils-gdb-test/gdb/tes= tsuite/gdb.c\ p/gdb2495.cc:75^M 75 exceptions.raise_signal (-1);^M (gdb) p exceptions.no_throw_function()^M $1 =3D 1^M (gdb) PASS: gdb.cp/gdb2495.exp: p exceptions.no_throw_function() p exceptions.throw_function_with_handler()^M Handled^M $2 =3D 2^M (gdb) PASS: gdb.cp/gdb2495.exp: p exceptions.throw_function_with_handler() p exceptions.throw_function()^M terminate called after throwing an instance of 'int'^M ^M Program received signal SIGABRT, Aborted.^M 0x00007ffff76b9a8c in __pthread_kill_implementation () from /lib64/libc.so.= 6^M The program being debugged was signaled while in a function called from GDB= .^M GDB remains in the frame where the signal was received.^M To change this behavior use "set unwindonsignal on".^M Evaluation of the expression containing the function^M (SimpleException::throw_function()) will be abandoned.^M When the function is done executing, GDB will silently stop.^M gdb) FAIL: gdb.cp/gdb2495.exp: call a function that raises an exception wit= hout a handler. bt^M #0 0x00007ffff76b9a8c in __pthread_kill_implementation () from /lib64/libc.so.6^M #1 0x00007ffff7657a9c in raise () from /lib64/libc.so.6^M #2 0x00007ffff7630948 in abort () from /lib64/libc.so.6^M #3 0x00007ffff7b19fa8 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6^M #4 0x00007ffff7b15114 in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6^M #5 0x00007ffff7b151e0 in std::terminate() () from /lib64/libstdc++.so.6^M #6 0x00007ffff7b156a4 in __cxa_throw () from /lib64/libstdc++.so.6^M #7 0x0000000010000f30 in SimpleException::throw_function (this=3D0x10020082 ) at /home/carll/GDB/buil\ d-test/gdb/testsuite/../../../binutils-gdb-test/gdb/testsuite/gdb.cp/gdb249= 5.cc:41^M #8 ^M #9 main () at /home/carll/GDB/build-test/gdb/testsuite/../../../binutils-gdb-test/gdb/tes= tsuite/gdb.cp/gdb2495.\ cc:75^M (gdb) FAIL: gdb.cp/gdb2495.exp: bt after returning from a popped frame info breakpoints^M Num Type Disp Enb Address What^M 1 breakpoint keep y 0x0000000010000ca8 in main() at /home/carll/GDB/build-test/gdb/testsuite/../../.\ ./binutils-gdb-test/gdb/testsuite/gdb.cp/gdb2495.cc:75^M breakpoint already hit 1 time^M (gdb) PASS: gdb.cp/gdb2495.exp: info breakpoints set unwind-on-terminating-exception off^M (gdb) PASS: gdb.cp/gdb2495.exp: set unwind-on-terminating-exception off show unwind-on-terminating-exception^M Unwind stack if a C++ exception is unhandled while in a call dummy is off.^M (gdb) PASS: gdb.cp/gdb2495.exp: turn off unwind on terminating exception fl= ag p exceptions.throw_function()^M terminate called recursively^M ^M Program received signal SIGABRT, Aborted.^M 0x00007ffff76b9a8c in __pthread_kill_implementation () from /lib64/libc.so.= 6^M The program being debugged was signaled while in a function called from GDB= .^M GDB remains in the frame where the signal was received.^M To change this behavior use "set unwindonsignal on".^M Evaluation of the expression containing the function^M (SimpleException::throw_function()) will be abandoned.^M When the function is done executing, GDB will silently stop.^M (gdb) PASS: gdb.cp/gdb2495.exp: call a function that raises an exception wi= th unwinding off.. delete breakpoints^M Delete all breakpoints? (y or n) y^M (gdb) info breakpoints^M No breakpoints or watchpoints.^M --------------------------- After doing the make and make install the test passes, the results from the gdb/testsuite/gdb.lot file: -------------------------- =3D=3D=3D gdb Summary =3D=3D=3D # of expected passes 14 The patch is working on Power 10. --=20 You are receiving this mail because: You are on the CC list for the bug.=