Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jose Luis Marchetti <joseluismarchetti@yahoo.com.br>
To: gdb@sourceware.org
Subject: Cannot find thread XXXX: invalid thread handle
Date: Sat, 25 Jul 2009 22:29:00 -0000	[thread overview]
Message-ID: <660747.45733.qm@web34401.mail.mud.yahoo.com> (raw)


Hi,

This happens right after a process that my program forked exits.
I can see GDB logging thread 6151 was created when I fork the process, then later I also can see GDB logging the thread 6151 exited when the forked process exit(0).
So far so good, but then later GDB shows the error message and I can't do anything to make it work again, it respond with the error message at every command I tried ( including trying to exit from GDB ).

I have found a similar post in this list, but there is no useful answer in the reply.
Also I have seen some old posts complaining about problems with thread exit in GDB.

But I am not sure what it is. Fork is a very powerful tool to abandon.


Here is exactly what GDB shows:

[Thread 6151 (LWP 299) exited]

Cannot find thread 6151: invalid thread handle

(gdb) c

Cannot find thread 6151: invalid thread handle



Thanks in advance!
José Luís Marchetti


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com


             reply	other threads:[~2009-07-25 22:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-25 22:29 Jose Luis Marchetti [this message]
2009-07-25 23:22 ` Daniel Jacobowitz

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=660747.45733.qm@web34401.mail.mud.yahoo.com \
    --to=joseluismarchetti@yahoo.com.br \
    --cc=gdb@sourceware.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