From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3665 invoked by alias); 25 Jul 2009 22:29:27 -0000 Received: (qmail 3650 invoked by uid 22791); 25 Jul 2009 22:29:26 -0000 X-SWARE-Spam-Status: No, hits=1.1 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from web34401.mail.mud.yahoo.com (HELO web34401.mail.mud.yahoo.com) (66.163.178.150) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 25 Jul 2009 22:29:17 +0000 Received: (qmail 46114 invoked by uid 60001); 25 Jul 2009 22:29:15 -0000 Message-ID: <660747.45733.qm@web34401.mail.mud.yahoo.com> Received: from [70.162.96.82] by web34401.mail.mud.yahoo.com via HTTP; Sat, 25 Jul 2009 15:29:15 PDT Date: Sat, 25 Jul 2009 22:29:00 -0000 From: Jose Luis Marchetti Subject: Cannot find thread XXXX: invalid thread handle To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00204.txt.bz2 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 pr= ocess exit(0). So far so good, but then later GDB shows the error message and I can't do a= nything to make it work again, it respond with the error message at every c= ommand 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=E9 Lu=EDs Marchetti _____________________________________________________________________= _______________ Veja quais s=E3o os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com