From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23731 invoked by alias); 28 Oct 2008 00:42:56 -0000 Received: (qmail 23722 invoked by uid 22791); 28 Oct 2008 00:42:55 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.45.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Oct 2008 00:42:00 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id m9S0fwvS027496 for ; Mon, 27 Oct 2008 17:41:58 -0700 Received: from rv-out-0708.google.com (rvfc5.prod.google.com [10.140.180.5]) by zps75.corp.google.com with ESMTP id m9S0fudR006305 for ; Mon, 27 Oct 2008 17:41:57 -0700 Received: by rv-out-0708.google.com with SMTP id c5so2144398rvf.52 for ; Mon, 27 Oct 2008 17:41:56 -0700 (PDT) Received: by 10.141.129.14 with SMTP id g14mr3624778rvn.56.1225154516873; Mon, 27 Oct 2008 17:41:56 -0700 (PDT) Received: by 10.114.78.12 with HTTP; Mon, 27 Oct 2008 17:41:56 -0700 (PDT) Message-ID: <8ac60eac0810271741h135f077bj2c3fcd7391e89ed7@mail.gmail.com> Date: Tue, 28 Oct 2008 00:42:00 -0000 From: "Paul Pluzhnikov" To: "Andrew Lofthouse" Subject: Re: "Cannot find new threads" on Fedora 9, but not on CentOS 5 (?) Cc: gdb@sourceware.org In-Reply-To: <49065BBD.3050800@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49065BBD.3050800@gmail.com> 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: 2008-10/txt/msg00121.txt.bz2 On Mon, Oct 27, 2008 at 5:24 PM, Andrew Lofthouse wrote: > I'm trying to debug an application that throws a SEGFAULT in a shared > library. On Fedora 9 (and on Ubuntu 8.04), I get the following error: > > [Thread debugging using libthread_db enabled] > Error while reading shared library symbols: > Cannot find new threads: generic error > Cannot find new threads: generic error Please see: http://sourceware.org/ml/gdb/2008-08/msg00208.html for possible reasons. > However, when using CentOS 5, the debugging session seems to work fine and > gives the following output: > > [Detaching after fork from child process 1973] > [Detaching after fork from child process 1992] > [Detaching after fork from child process 2004] > > Program received signal SIGSEGV, Segmentation fault. > > etc, etc--basically gdb works and tells me where the segmentation fault is. > > So, I know that Fedora 9/Ubuntu 8.04 use gdb version 6.8, while CentOS 5 > uses version 6.5. Why can an earlier version of gdb work fine, while the > later version doesn't work? What can I do so that the later version works? This is most likely result of "pilot error" (stripping libpthread.so.0, or incomplete installation of glibc), and has nothing to do with actual version of GDB. Cheers, -- Paul Pluzhnikov