Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: gdb/568, messy thread exits
Date: Wed, 31 Jul 2002 14:04:00 -0000	[thread overview]
Message-ID: <20020731210108.GA6364@nevyn.them.org> (raw)
In-Reply-To: <npy9brsjm2.fsf@zwingli.cygnus.com>

On Wed, Jul 31, 2002 at 03:55:17PM -0500, Jim Blandy wrote:
> 
> Daniel Jacobowitz <drow@mvista.com> writes:
> > Here's the interesting part.  It occurs whenever thread_db can not look
> > up the LWP<->Thread mapping in the child.  If, for instance, the child
> > has disappeared, we can not look up its mapping any more.  Or if some
> > other circumstance causes the mapping to be unavailable, like an
> > exec(); there's another PR about that case.
> 
> I dunno.  I mean, if someone asks you to look up a TID's LWP, and you
> can't, that seems like an error, no?  Isn't it supposed to be better
> to flag errors early than let the thing go crashing on through the
> forest with bogus information?

Well, yes; except for the fact that this is on the exit path, so if we
call error(), we tend to get stuck.  This is a fairly frequent GDB
problem.

> I'm glad you found a patch that addresses the PR I filed, but there's
> no way I can approve this patch --- not because I'm sure it's wrong,
> but because I'm sure I have no idea whether it's right or wrong.  :)

Thanks for looking at it.  I'll wait for Kevin or Michael to have time
for it.

> 
> > Of course, it is also my opinion that we perform the mapping a stupid
> > number of times.  ``set debug target 1'' and run a threaded program;
> > you'll see it happen over and over again.
> 
> Yes, I noticed this: amazing numbers of huge memory transfers.  Yuck.
> 

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-07-31 21:01 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-31  9:55 Daniel Jacobowitz
2002-07-31 13:28 ` Jim Blandy
2002-07-31 13:47   ` Daniel Jacobowitz
2002-07-31 14:01     ` Jim Blandy
2002-07-31 14:04       ` Daniel Jacobowitz [this message]
2002-08-12  9:14 ` Daniel Jacobowitz
2002-08-13 15:00   ` Mark Kettenis
2002-08-13 15:13     ` Daniel Jacobowitz
2002-08-26 18:33       ` Michael Snyder
2002-08-26 19:05         ` Daniel Jacobowitz
2002-08-29 15:50           ` Jim Blandy

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=20020731210108.GA6364@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@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