'Cannot find new threads: generic error' when debugging certain applications
Binary package hint: gdb
When debugging bug #423252 I noticed that GDB looses control over the target application if it executes getpwnam when using libnss-ldap. GDB displays the following error message:
[Thread debugging using libthread_db enabled]
Cannot find new threads: generic error
It is impossible to continue to work with the application after the above message has been displayed. For example, trying to execute 'next' results in the following error message:
Cannot execute this command while the selected thread is running.
I suspect this could actually be a kernel bug rather than a GDB bug (I've seen a fair deal of ptrace breakage at work), but I have no way of verifying that at the moment.
DistroRelease: Ubuntu 10.04
Package: gdb 7.1-1ubuntu2
Uname: Linux 2.6.32-20-generic x86_64
Date: Wed Apr 14 22:35:03 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)