From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 708 invoked by alias); 30 Sep 2007 03:00:06 -0000 Received: (qmail 696 invoked by uid 22791); 30 Sep 2007 03:00:05 -0000 X-Spam-Check-By: sourceware.org Received: from vms048pub.verizon.net (HELO vms048pub.verizon.net) (206.46.252.48) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 30 Sep 2007 03:00:03 +0000 Received: from TimMichalsPC ([72.64.90.148]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JP500IV9UZYWSK1@vms048.mailsrvcs.net> for gdb@sourceware.org; Sat, 29 Sep 2007 22:00:01 -0500 (CDT) Date: Sun, 30 Sep 2007 03:21:00 -0000 From: "Tim Michals" Subject: debugging threads To: Message-id: <000601c8030d$fb92a8d0$f2b7fa70$@net> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-type: text/plain; charset=us-ascii Content-language: en-us Content-transfer-encoding: 7bit X-IsSubscribed: yes 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: 2007-09/txt/msg00274.txt.bz2 Hello, I'm trying to debug simple multithreaded app and get the following error: [Thread debugging using libthread_db enabled] Cannot find new threads: generic error Can set break points and trace as shown below. (gdb) Here is the info.. GNU gdb Red Hat Linux (6.6-15.fc7rh) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) list 9 #include 10 11 void helloworld(const char* who) 12 { 13 std::cout << who << "says, \"Hello World.\"" << std::endl; 14 } 15 16 int main() 17 { 18 boost::thread thrd(boost::bind(&helloworld, "Bob")); (gdb) list 19 thrd.join(); 20 } 21 (gdb) b main Breakpoint 1 at 0x8048320: file ../helloworld.cpp, line 18. (gdb) run Starting program: /home/tcmichals/workspace/example/Debug/example [Thread debugging using libthread_db enabled] Cannot find new threads: generic error (gdb) n Single stepping until exit from function _start, which has no line number information. Cannot find user-level thread for LWP 3719: generic error (gdb) n Single stepping until exit from function _start, which has no line number information. Cannot find user-level thread for LWP 3719: generic error The kernel version is: Linux version 2.6.22.4-65.fc7 (kojibuilder@xenbuilder2.fedora.redhat.com) (gcc v ersion 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Tue Aug 21 22:36:56 EDT 2007 Several posting on this issue i.e. http://sourceware.org/ml/gdb/2007-08/msg00128.html