Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: David Lecomber <david@allinea.com>
Cc: gdb <gdb@sources.redhat.com>
Subject: Re: GDB locks up -- Cannot find new threads: generic error
Date: Wed, 27 Apr 2005 22:51:00 -0000	[thread overview]
Message-ID: <jefyxbvnwd.fsf@sykes.suse.de> (raw)
In-Reply-To: <20050427190108.GA28978@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 27 Apr 2005 15:01:09 -0400")

Daniel Jacobowitz <drow@false.org> writes:

> On Wed, Apr 27, 2005 at 07:42:37PM +0100, David Lecomber wrote:
>> (gdb) b main
>> Breakpoint 1 at 0x804ed18: file
>> main.cpp, line 10.
>> (gdb) run
>> Starting program: a.out
>> warning: linux_test_for_tracefork: unexpected result from waitpid
>> (28261,
>> status 0x117f)
>> [Thread debugging using libthread_db enabled]
>> Error while reading shared library symbols:
>> Cannot find new threads: generic error
>> 
>> at this point GDB does nothing and is unresponsive to any user input.  
>> 
>> The  system is:
>> kernel-2.4.21-27.EL
>> glibc-2.3.2-95.30
>
> At a guess, your kernel is buggered.  You really should never see that
> warning.  The unexpected signal is SIGCHLD; your kernel has accepted
> the SETOPTIONS but obviously failed to stop when the test thread
> vforked.

I think that can happen when the 32 bit ptrace emulation is incomplete,
especially if PTRACE_GETEVENTMSG is not properly emulated.  That should be
fixed in recent (< 9 months) kernels.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


  reply	other threads:[~2005-04-27 22:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-27 19:01 David Lecomber
2005-04-27 22:46 ` Daniel Jacobowitz
2005-04-27 22:51   ` Andreas Schwab [this message]
2005-04-27 23:33     ` Daniel Jacobowitz
2005-04-28  1:05       ` Andreas Schwab
2005-05-03 14:25     ` David Lecomber
2005-05-03 14:48       ` Daniel Jacobowitz
2005-05-03 20:53         ` David Lecomber
2005-05-03 20:55           ` Daniel Jacobowitz
2005-05-03 21:10             ` David Lecomber
2005-05-03 21:14               ` Daniel Jacobowitz
2005-05-03 23:26                 ` David Lecomber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jefyxbvnwd.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=david@allinea.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox