From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1509 invoked by alias); 19 Oct 2006 19:48:14 -0000 Received: (qmail 1497 invoked by uid 22791); 19 Oct 2006 19:48:13 -0000 X-Spam-Check-By: sourceware.org Received: from static-141-158-191-9.cap.east.verizon.net (HELO mail.sigmaelectronics.com) (141.158.191.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Oct 2006 19:48:10 +0000 Received: from 192.168.0.133 ([192.168.0.133]) by sigmamail.sigma.local ([192.168.0.249]) with Microsoft Exchange Server HTTP-DAV ; Thu, 19 Oct 2006 19:48:07 +0000 Received: from jd-shuttle by SIGMAMAIL; 19 Oct 2006 15:49:28 -0400 Subject: Weird debugging problem From: "Joshua D. Boyd" To: gdb@sourceware.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 19 Oct 2006 19:48:00 -0000 Message-Id: <1161287368.2428.43.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00140.txt.bz2 I am working on GNU/Linux 2.6.15 with GNU gdb 6.4-debian and gcc version 4.0.3. I am trying to debug a threaded program that stops mysteriously without stating a particular fault. My intention is that threads are created during the programs start-up faze, then the same dozen or so threads remain there the entire run time. Prior to every pthread_create, I print something to identify what thread is being created at that time. When I run the program in gdb, eventually (usually after running for 12+ hours), I get the following: [New Thread -1734661200 (LWP 67296)] Can't attach LWP 67296: No such process (gdb) Now, if I'm not mistaken, that is not a valid process ID for Linux or most other Unix type operating systems. If I do a back trace at that point, it reports the current thread is the main parent, which is currently in a nanosleep (and that thread's normal behavior after start-up is to sleep most of the time and do house keeping tasks when it wakes up). At this point I am at a complete loss about what could be happening or what to try next, so after scanning through archives and a short period of lurking, I decided to hope that someone here could provide some advice.