NetBSD-Bugs archive

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

toolchain/53886: gdb on aarch64 sometimes can not handle new threads

>Number:         53886
>Category:       toolchain
>Synopsis:       gdb on aarch64 sometimes can not handle new threads
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 17 11:35:00 +0000 2019
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.30
The NetBSD Foundation, Inc.
System: NetBSD 8.99.30 NetBSD 8.99.30 (GENERIC64) #22: Mon Jan 14 14:13:30 CET 2019 evbarm
Architecture: aarch64
Machine: evbarm

Trying to debug threaded programs someimes work (e.g. all pthread tests seem
to work just fine), but sometimes with more complex programs fails, the new
thread breakpoint in ld.elf_so is not properly recognized. When in this state
it is also impossible to kill the debuggee (maybe because it is still in
stopped state) or quit gdb (hangs on quit/^D).

Sample session:

[/tmp] martin@painkiller > gdb xfce4-session
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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 "aarch64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from xfce4-session...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/pkg/bin/xfce4-session 
[New LWP 1 of process 25997]

Thread 2 received signal SIGTRAP, Trace/breakpoint trap.
0x0000fffffbed0aa0 in _rtld_start () from /usr/libexec/ld.elf_so
(gdb) kill
Kill the program being debugged? (y or n) y
[/tmp] martin@painkiller > kill -9 %1
[/tmp] martin@painkiller > [ 68873.4740244] sorry, pid 5813 was killed: orphaned traced process
[ 68873.4740244] sorry, pid 25997 was killed: orphaned traced process
[1]    Killed                        gdb xfce4-session
[/tmp] martin@painkiller > pgrep xfce4-session
[/tmp] martin@painkiller > 



Home | Main Index | Thread Index | Old Index