When I try to debug my C++ application using gdb, I get the following error:
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
If I try to quit gdb, I get A debugging session is active. Inferior 1 开发者_C百科[process 17785] will be killed.
I am not using any thread library myself.
I tried the solutions suggested in gdb: Cannot find new threads: generic error but did not help.
My OS: Ubuntu 10.04
$ gcc -v
(Ubuntu 4.4.3-4ubuntu5)
$ uname -a
Linux rskDesktop 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux
Any suggestions?
I am not using any thread library myself
Take a look at this answer: reverse-step multithread error which should apply in your situation: force GDB not to activate thread debugging if you don't want it to be aware of the threads.
(the EDIT applies as well, but maybe it's one of the libraries you use which requires the libpthread.so
)
精彩评论