NetBSD-Bugs archive

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

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



>Number:         58503
>Category:       toolchain
>Synopsis:       restarting the progamm triggers an error in gdb
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 28 17:10:00 +0000 2024
>Originator:     Christoph Badura <bad%bsd.de@localhost>
>Release:        NetBSD 10.99.11
>Organization:
Bozotic Software Testing Labs
	<organization of PR author (multiple lines)>
>Environment:
	<The following information is extracted from your kernel. Please>
	<append output of "ldd", "ident" where relevant (multiple lines).>
System: NetBSD netbsd10 10.99.11 NetBSD 10.99.11 (GENERIC) #3: Sun Jul 28 18:09:37 CEST 2024 bad@inspiral-coalescence-ringdown:/Users/bad/netbsd-gsoc/obj/obj.amd64/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
restarting/rerunning the program caauses a gdb error:

I first noticed this in a NetBSD 10.0 VM.  But a VM with -current from
sources as of 2024-07-27 show the same behaviour.

Script started on Sun Jul 28 16:37:22 2024
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...
(No debugging symbols found in t_basic)
(gdb) b main
Breakpoint 1 at 0x19ea
(gdb) r basic
Starting program: /usr/tests/fs/nullfs/t_basic basic

Breakpoint 1, 0x00000000cec019ea in main ()
(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)
[   1.0000000] entropy: ready
[New LWP 581 of process 671]
[New LWP 582 of process 671]
[New LWP 1474 of process 671]
[New LWP 1644 of process 671]
[New LWP 1443 of process 671]
[New LWP 1483 of process 671]
[New LWP 1642 of process 671]
[New LWP 1450 of process 671]
[New LWP 1440 of process 671]
[New LWP 1472 of process 671]
[New LWP 1640 of process 671]
[New LWP 1441 of process 671]
[New LWP 1442 of process 671]
[New LWP 1460 of process 671]
[New LWP 1446 of process 671]
[New LWP 1468 of process 671]
[New LWP 1462 of process 671]
[New LWP 1342 of process 671]
[New LWP 1616 of process 671]
passed
[Inferior 1 (process 671) exited normally]
(gdb) r
Starting program: /usr/tests/fs/nullfs/t_basic basic

Breakpoint 1, 0x00000001848019ea in main ()
(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)
[   1.0000000] entropy: ready
[New LWP 1348 of process 1617]
[New LWP 1627 of process 1617]
[New LWP 1626 of process 1617]
[New LWP 1623 of process 1617]
[New LWP 1613 of process 1617]
[New LWP 1608 of process 1617]
[New LWP 1628 of process 1617]
[New LWP 1622 of process 1617]
[New LWP 1467 of process 1617]
[New LWP 1387 of process 1617]
[New LWP 1579 of process 1617]
[New LWP 1445 of process 1617]
[New LWP 1609 of process 1617]
[New LWP 1615 of process 1617]
[New LWP 1463 of process 1617]
[New LWP 1337 of process 1617]
/usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/infrun.c:7221: internal-error: [LWP 1617 of process 1617] 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) y

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 1617 of process 1617] 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) y
[ 1572.9776388] sorry, pid 1617 was killed: orphaned traced process
[1]   Abort trap              gdb t_basic
netbsd10$ exit
Script done on Sun Jul 28 16:37:56 2024

>How-To-Repeat:

cd /usr/tests/fs/nullfs
gdb t_basic
b main
r basic
c
r
c

>Fix:
yes please.

>Unformatted:
 	<Please check that the above is correct for the bug being reported,>
 	<and append source date of snapshot, if applicable (one line).>


Home | Main Index | Thread Index | Old Index