Re: GDB locks up -- Cannot find new threads: generic error

Daniel Jacobowitz
2005-05-03T20:55:39Z

On Tue, May 03, 2005 at 09:55:23PM +0100, David Lecomber wrote:
>
> Sorry Dan, it didn't work:
>
> (gdb) b main
> Breakpoint 1 at 0x80484dd: file foo.c, line 15.
> (gdb) r
> Starting program: /users/david/a.out
> warning: linux_test_for_tracefork: Needed to use long, but second half
> was clobbered

Well, that's something - Andreas was right about your kernel having
this broken. The patch may be a good idea anyway to prevent really odd
stack corruption bugs.

> Failed to read a valid object file image from memory.
> [Thread debugging using libthread_db enabled]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
>
>
> followed by hanging..

I will need more information to help you. Useful things: strace of
gdb, backtrace at the time of the hang, whatever else you can think of
to try...

--
Daniel Jacobowitz
CodeSourcery, LLC