1

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 [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?

asked Sep 27, 2011 at 5:08

1 Answer 1

0

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)

answered Sep 27, 2011 at 10:37
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.