Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@cygnus.com>
To: "Jeffrey W. Baker" <jwbaker@acm.org>, <gdb@sources.redhat.com>
Subject: Re: thirty-third thread == kaput
Date: Tue, 17 Apr 2001 23:51:00 -0000	[thread overview]
Message-ID: <1010418065041.ZM2041@ocotillo.lan> (raw)
In-Reply-To: <Pine.LNX.4.33.0104170917010.15931-100000@heat.gghcwest.com>

On Apr 17,  9:23am, Jeffrey W. Baker wrote:

> I am using gdb to debug a threaded application.  The application routinely
> spawns off a large number of threads.  My problem is that gdb does not
> seem to work with more than 32 threads:
> 
> Delayed SIGSTOP caught for LWP 16057.
> Cannot find thread 33: invalid thread handle
> (gdb) info threads
> Cannot find thread 33: invalid thread handle
> (gdb) thread 1
> [Switching to thread 1 (Thread 1024 (LWP 16025))]#0  0x4004d36a in
> __sigsuspend (
>     set=0xbffff80c) at ../sysdeps/unix/sysv/linux/sigsuspend.c:54
> 54	../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or
> directory.
> 	in ../sysdeps/unix/sysv/linux/sigsuspend.c
> 
> This happens consistently.  I am using the 20010410 snapshot of gdb on
> Linux 2.4.3(ac7) with gcc 2.95.3 (release), binutils 2.10.1.0.4, and glibc
> 2.2.2.  I previously tried gdb 5.0, but it did not grok threads at all on
> this system: it simply stopped with "ptrace: no such process".
> 
> Is there a way to redefine the maximum number of threads when I build gdb?

There is a patch to fix this problem.  It was posted early last
October.  See...

    http://sources.redhat.com/ml/gdb-patches/2000-10/msg00014.html

Unfortunately, it no longer applies cleanly to the current sources.

I would really, really like to get this patch into the mainline
sources, but I'm quite busy at the moment and haven't been able
to find much time to work on it.

Kevin


  reply	other threads:[~2001-04-17 23:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-17  9:24 Jeffrey W. Baker
2001-04-17 23:51 ` Kevin Buettner [this message]
2001-04-18 11:04   ` Jeffrey W. Baker
2001-04-25 16:52     ` Kevin Buettner

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=1010418065041.ZM2041@ocotillo.lan \
    --to=kevinb@cygnus.com \
    --cc=gdb@sources.redhat.com \
    --cc=jwbaker@acm.org \
    /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