NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/58503: gdb error rerunning tests/fs/nullfs/t_basic



The following reply was made to PR toolchain/58503; it has been noted by GNATS.

From: Christoph Badura <bad%bsd.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: toolchain/58503: gdb error rerunning tests/fs/nullfs/t_basic
Date: Tue, 30 Jul 2024 22:11:05 +0200

 riastradh@ asked if this possibly depends on debug information being
 available.
 
 I installed the debug set on both the -current and the 10.0 VM.
 
 In -current the symptoms go away.
 
 In 10.0 they persist.  Also gdb bekommst unresponsive to signals.
 On -current I could at least suspend gdb and then kill -9 it.
 On 10.0 I need to kill -9 it from a separate terminal.
 
 Script started on Tue Jul 30 19:51:39 2024
 netbsd10$ ls /etc/mtree
 NetBSD.dist  set.comp     set.etc      set.man      set.tests
 set.base     set.debug    set.gpufw    set.modules  special
 netbsd10$ cd /usr/tests/fs/nullfs
 netbsd10$ gdb t_basic
 GNU gdb (GDB) 11.0.50.20200914-git
 Copyright (C) 2020 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "x86_64--netbsd".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <https://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from t_basic...
 Reading symbols from /usr/libdata/debug//usr/tests/fs/nullfs/t_basic.debug...
 (gdb) b main
 Breakpoint 1 at 0x19ea: file /usr/src/tests/fs/nullfs/t_basic.c, line 167.
 (gdb) b atfu_basic_body
 Breakpoint 2 at 0x1649: file /usr/src/tests/fs/nullfs/t_basic.c, line 74.
 (gdb) r basic
 Starting program: /usr/tests/fs/nullfs/t_basic basic
 
 Breakpoint 1, main (argc=2, argv=0x7f7fff203ff8)
     at /usr/src/tests/fs/nullfs/t_basic.c:167
 167	/usr/src/tests/fs/nullfs/t_basic.c: No such file or directory.
 (gdb) c
 Continuing.
 t_basic: WARNING: Running test cases without atf-run(1) is unsupported
 t_basic: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
 
 Breakpoint 2, atfu_basic_body (tc=0x81003198 <atfu_basic_tc>)
     at /usr/src/tests/fs/nullfs/t_basic.c:74
 74	in /usr/src/tests/fs/nullfs/t_basic.c
 (gdb) c
 Continuing.
 [   1.0000000] entropy: ready
 [New LWP 10093 of process 10273]
 [New LWP 9947 of process 10273]
 [New LWP 10476 of process 10273]
 [New LWP 9894 of process 10273]
 [New LWP 7883 of process 10273]
 [New LWP 9668 of process 10273]
 [New LWP 10148 of process 10273]
 [New LWP 9181 of process 10273]
 [New LWP 10179 of process 10273]
 [New LWP 7915 of process 10273]
 [New LWP 10301 of process 10273]
 [New LWP 9639 of process 10273]
 [New LWP 10449 of process 10273]
 [New LWP 10445 of process 10273]
 [New LWP 1346 of process 10273]
 [New LWP 1374 of process 10273]
 /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infrun.c:7221: internal-error: [LWP 10273 of process 10273] has inconsistent state: trap_expected=1
 
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Quit this debugging session? (y or n) n
 
 This is a bug, please report it.  For instructions, see:
 <https://www.gnu.org/software/gdb/bugs/>.
 
 /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infrun.c:7221: internal-error: [LWP 10273 of process 10273] has inconsistent state: trap_expected=1
 
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Create a core file of GDB? (y or n) n
 Command aborted.
 (gdb) info inf
   Num  Description       Connection           Executable        
 * 1    process 10273     1 (native)           /usr/tests/fs/nullfs/t_basic 
 (gdb) kill inf 1
 (gdb) info inf
   Num  Description       Connection           Executable        
 * 1    <null>                                 /usr/tests/fs/nullfs/t_basic 
 (gdb) r
 Starting program: /usr/tests/fs/nullfs/t_basic basic
 *hang*
 ^C^\^Z
 #kill gdb from other session
 [ 80149.1391520] sorry, pid 1512 was killed: orphaned traced process
 [1]   Killed                  gdb t_basic
 netbsd10$ 
 netbsd10$ gdb t_basic
 GNU gdb (GDB) 11.0.50.20200914-git
 Copyright (C) 2020 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
 Type "show copying" and "show warranty" for details.
 This GDB was configured as "x86_64--netbsd".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <https://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from t_basic...
 Reading symbols from /usr/libdata/debug//usr/tests/fs/nullfs/t_basic.debug...
 (gdb) b main
 Breakpoint 1 at 0x19ea: file /usr/src/tests/fs/nullfs/t_basic.c, line 167.
 (gdb) b atfu_basic_body
 Breakpoint 2 at 0x1649: file /usr/src/tests/fs/nullfs/t_basic.c, line 74.
 (gdb) r basic
 Starting program: /usr/tests/fs/nullfs/t_basic basic
 
 Breakpoint 1, main (argc=2, argv=0x7f7fffa090f8)
     at /usr/src/tests/fs/nullfs/t_basic.c:167
 167	/usr/src/tests/fs/nullfs/t_basic.c: No such file or directory.
 (gdb) c
 Continuing.
 t_basic: WARNING: Running test cases without atf-run(1) is unsupported
 t_basic: WARNING: No isolation nor timeout control is being applied; you may get unexpected failures; see atf-test-case(4)
 
 Breakpoint 2, atfu_basic_body (tc=0xfd003198 <atfu_basic_tc>)
     at /usr/src/tests/fs/nullfs/t_basic.c:74
 74	in /usr/src/tests/fs/nullfs/t_basic.c
 (gdb) c
 Continuing.
 [   1.0000000] entropy: ready
 [New LWP 10457 of process 10403]
 [New LWP 6986 of process 10403]
 [New LWP 10027 of process 10403]
 [New LWP 10423 of process 10403]
 [New LWP 10574 of process 10403]
 [New LWP 7497 of process 10403]
 [New LWP 7103 of process 10403]
 [New LWP 10405 of process 10403]
 [New LWP 8028 of process 10403]
 [New LWP 10400 of process 10403]
 [New LWP 10410 of process 10403]
 [New LWP 10577 of process 10403]
 [New LWP 8016 of process 10403]
 [New LWP 10573 of process 10403]
 [New LWP 1474 of process 10403]
 [New LWP 9767 of process 10403]
 /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infrun.c:7221: internal-error: [LWP 10403 of process 10403] has inconsistent state: trap_expected=1
 
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Quit this debugging session? (y or n) n
 
 This is a bug, please report it.  For instructions, see:
 <https://www.gnu.org/software/gdb/bugs/>.
 
 /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infrun.c:7221: internal-error: [LWP 10403 of process 10403] has inconsistent state: trap_expected=1
 
 A problem internal to GDB has been detected,
 further debugging may prove unreliable.
 Create a core file of GDB? (y or n) n
 Command aborted.
 (gdb) r
 The program being debugged has been started already.
 Start it from the beginning? (y or n) y
 Starting program: /usr/tests/fs/nullfs/t_basic basic
 *hang*
 ^C^\^Z
 #kill gdb from other session
 [ 80229.2985986] sorry, pid 8043 was killed: orphaned traced process
 [1]   Killed                  gdb t_basic
 netbsd10$ 
 netbsd10$ ^D
 
 Script done on Tue Jul 30 19:54:50 2024
 
 --chris
 


Home | Main Index | Thread Index | Old Index