[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
>Synopsis: gdb on aarch64 sometimes can not handle new threads
>Arrival-Date: Thu Jan 17 11:35:00 +0000 2019
>Originator: Martin Husemann
>Release: NetBSD 8.99.30
The NetBSD Foundation, Inc.
System: NetBSD painkiller.duskware.de 8.99.30 NetBSD 8.99.30 (GENERIC64) #22: Mon Jan 14 14:13:30 CET 2019 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/evbarm/compile/GENERIC64 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).
[/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 <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 "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.
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
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
 Killed gdb xfce4-session
[/tmp] martin@painkiller > pgrep xfce4-session
[/tmp] martin@painkiller >
Main Index |
Thread Index |