NetBSD-Bugs archive

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

toolchain/58055: gdb is broken on sparc64



>Number:         58055
>Category:       toolchain
>Synopsis:       gdb is broken on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 19 19:10:00 +0000 2024
>Originator:     Martin Husemann
>Release:        NetBSD 10.99.10
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 10.99.10 NetBSD 10.99.10 (MODULAR) #699: Tue Mar 19 12:19:16 CET 2024 martin%thirdstage.duskware.de@localhost:/usr/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

gdb seems to not work at all with running processes on sparc64:

[/usr/tests/lib/libm] martin@thirdstage > gdb ./t_fe_round                      GNU gdb (GDB) 13.2
[..]
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./t_fe_round...
(No debugging symbols found in ./t_fe_round)
(gdb) break nearbyint
Breakpoint 1 at 0x103100
(gdb) run -l 
Starting program: /usr/tests/lib/libm/t_fe_round -l
thread.c:1337: internal-error: switch_to_thread: Assertion `thr != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
----- Backtrace -----
0x1a2663 gdb_internal_backtrace_1
        /tmp/gdb-13.2/gdb/bt-utils.c:122
0x1a2663 _Z22gdb_internal_backtracev
        /tmp/gdb-13.2/gdb/bt-utils.c:168
0x5079eb internal_vproblem
        /tmp/gdb-13.2/gdb/utils.c:396
0x507d87 _Z15internal_verrorPKciS0_Pv
        /tmp/gdb-13.2/gdb/utils.c:476
0x630827 _Z18internal_error_locPKciS0_z
        /tmp/gdb-13.2/gdbsupport/errors.cc:58
0x4bba13 _Z16switch_to_threadP11thread_info
        /tmp/gdb-13.2/gdb/thread.c:1337
0x4c4647 _Z16switch_to_threadP11thread_info
        /tmp/gdb-13.2/gdb/thread.c:1354
0x4c4647 _Z16switch_to_threadP22process_stratum_target6ptid_t
        /tmp/gdb-13.2/gdb/thread.c:1353
0x397fb7 _Z16startup_inferiorP22process_stratum_targetiiP17target_waitstatusP6ptid_t
        nat/fork-inferior.c:531
0x2d35f7 _Z20gdb_startup_inferiorii
        /tmp/gdb-13.2/gdb/fork-child.c:132
0x305f9b _ZN17inf_ptrace_target15create_inferiorEPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPPci
        /tmp/gdb-13.2/gdb/inf-ptrace.c:105
0x3141ab run_command_1
        /tmp/gdb-13.2/gdb/infcmd.c:469
0x1d0d33 do_simple_func
        cli/cli-decode.c:95
0x1d3def _Z8cmd_funcP16cmd_list_elementPKci
        cli/cli-decode.c:2543
0x4c7c4f _Z15execute_commandPKci
        /tmp/gdb-13.2/gdb/top.c:690
0x2b725f _Z15command_handlerPKc
        /tmp/gdb-13.2/gdb/event-top.c:616
0x2b8def _Z20command_line_handlerOSt10unique_ptrIcN3gdb13xfree_deleterIcEEE
        /tmp/gdb-13.2/gdb/event-top.c:852
0x2b80eb gdb_rl_callback_handler
        /tmp/gdb-13.2/gdb/event-top.c:246
0x555e57 rl_callback_read_char
        /tmp/gdb-13.2/readline/readline/callback.c:290
0x2b67bb gdb_rl_callback_read_char_wrapper_noexcept
        /tmp/gdb-13.2/gdb/event-top.c:188
0x2b7dcb gdb_rl_callback_read_char_wrapper
        /tmp/gdb-13.2/gdb/event-top.c:221
0x2b617b stdin_event_handler
        /tmp/gdb-13.2/gdb/event-top.c:541
0x630927 handle_file_event
        /tmp/gdb-13.2/gdbsupport/event-loop.cc:573
0x630f7f gdb_wait_for_event
        /tmp/gdb-13.2/gdbsupport/event-loop.cc:694
0x63187f gdb_wait_for_event
        /tmp/gdb-13.2/gdbsupport/event-loop.cc:593
0x63187f _Z16gdb_do_one_eventi
        /tmp/gdb-13.2/gdbsupport/event-loop.cc:264
0x35edc3 start_event_loop
        /tmp/gdb-13.2/gdb/main.c:411
0x35edc3 captured_command_loop
        /tmp/gdb-13.2/gdb/main.c:471
0x360e73 captured_main
        /tmp/gdb-13.2/gdb/main.c:1330
0x360e73 _Z8gdb_mainP18captured_main_args
        /tmp/gdb-13.2/gdb/main.c:1345
0x660d2b main
        /tmp/gdb-13.2/gdb/gdb.c:32
---------------------
thread.c:1337: internal-error: switch_to_thread: Assertion `thr != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 


>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index