This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cannot find new threads: generic error
On Fri, Aug 29, 2008 at 5:13 PM, Laurent Carlier <lordheavym@gmail.com> wrote:
> I've find a workaround, i've link the debugging app with libpthread and now gdb
> feels happy, and i can run it with gdb !
Are you dlopen()ing a library which is linked against libpthread.so
into a program which isn't?
Very few OSes support processes "suddenly" becoming multithreaded
(I know only of Solaris 10 and AIX 5).
If you do that on Linux, you should expect all kinds of trouble,
because e.g. glibc very early on decides whether pthreads are
present, and permanently switches to thread-unsafe behavior if they
are not.
Cheers,
--
Paul Pluzhnikov