I build qTox with debug info (CONFIG += debug). It fails, see log below. gdb-7.12.1 (gdb) r -p yuri-other Starting program: /usr/home/yuri/github/qTox/qtox -p yuri-other [New LWP 100300 of process 5489] [New LWP 100304 of process 5489] [New LWP 100332 of process 5489] [22:33:33.987 UTC] persistence/settings.cpp:133 : Debug: "Loading settings from /home/yuri/.config/tox/qtox.ini" [22:33:34.016 UTC] ipc.cpp:60 : Debug: Our global IPC ID is 15074530339528586024 [22:33:34.017 UTC] ipc.cpp:72 : Debug: Attaching to the global shared memory [22:33:34.017 UTC] main.cpp:215 : Debug: built on: 15:12:20 Apr 10 2017 ( 1491862323 ) [22:33:34.018 UTC] main.cpp:216 : Debug: commit: 0f54e442627e4882634e52c57e20f55b9454af48 [22:33:34.018 UTC] ipc.cpp:133 : Debug: postEvent "activate" to 3395321266 [22:33:35.957 UTC] main.cpp:269 : Debug: Event "activate" was handled by other client. [LWP 100300 of process 5489 exited] [LWP 100304 of process 5489 exited] r_debug_state (rd=0x801a06f78, m=0x80192edf0) at /usr/src/libexec/rtld-elf/rtld.c:3807 ptrace: No such process. (gdb)
Hi Yuri, this bug seems similar to this one https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212607 The problem should be in FreeBSD, not in gdb. Which FreeBSD version are you using? The solution has been committed in 10-STABLE and 11-STABLE (r313992), but no releases has it currently.
I use 11-STABLE r308114.
can you please update your 11-STABLE at least at r315949 ? This revision contains the fixed to ptracestop() that should solve your issue. (as reference: https://svnweb.freebsd.org/base?view=revision&revision=315949) as also jhb pointed out, solving this problem in gdb was quite difficult, so the solution is to update FreeBSD.
(In reply to luca.pizzamiglio from comment #3) Luca, Running gdb-7.12.1_2 on r320820 also has this problem. For qTox it now happens in the end of the run: > [LWP 102278 of process 83497 exited][07:53:45.085 UTC] persistence/settings.cpp:453 : Debug: "Saving global settings at /home/yuri/.config/tox/qtox.ini" > [LWP 102435 of process 83497 exited] > [LWP 100535 of process 83497 exited][07:53:45.088 UTC] main.cpp:61 : Debug: Cleanup success > [07:53:45.088 UTC] main.cpp:321 : Debug: Exit with status 0 > [LWP 102273 of process 83497 exited] > [LWP 100218 of process 83497 exited] > [LWP 102277 of process 83497 exited] > r_debug_state (rd=0x80193b360, m=0x7fffffffe220) at /usr/src/libexec/rtld-elf/rtld.c:3918 > ptrace: No such process. But for some other processes this happens in the middle. It seems to be triggered by exiting threads.
gdb-7.9.1 is free of this problem. So this is a regression.
Assign to maintainer. Is this still relevant?
I'm not able to reproduce this error. May I close it?
Sure!