From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13713 invoked by alias); 16 Jan 2009 02:06:12 -0000 Received: (qmail 13508 invoked by uid 22791); 16 Jan 2009 02:06:11 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS 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.43rc1) with ESMTP; Fri, 16 Jan 2009 02:05:35 +0000 Received: from zps76.corp.google.com (zps76.corp.google.com [172.25.146.76]) by smtp-out.google.com with ESMTP id n0G25XDv015192 for ; Thu, 15 Jan 2009 18:05:33 -0800 Received: from wf-out-1314.google.com (wfd26.prod.google.com [10.142.4.26]) by zps76.corp.google.com with ESMTP id n0G25WjC022500 for ; Thu, 15 Jan 2009 18:05:32 -0800 Received: by wf-out-1314.google.com with SMTP id 26so1462371wfd.19 for ; Thu, 15 Jan 2009 18:05:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.217.17 with SMTP id p17mr802950wfg.55.1232071531936; Thu, 15 Jan 2009 18:05:31 -0800 (PST) In-Reply-To: <966c7c700901141637g49f2bafcj6e95c60c80227eba@mail.gmail.com> References: <966c7c700901141637g49f2bafcj6e95c60c80227eba@mail.gmail.com> Date: Fri, 16 Jan 2009 02:06:00 -0000 Message-ID: <8ac60eac0901151805w1953e06do991af229cdccb5a2@mail.gmail.com> Subject: Re: Program terminated by SIGTRAP in gdb From: Paul Pluzhnikov To: Albert Fu Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2009-01/txt/msg00084.txt.bz2 On Wed, Jan 14, 2009 at 4:37 PM, Albert Fu wrote: > Program received signal SIGTRAP, Trace/breakpoint trap. This is happening because GDB did not attach some of the application threads. The most frequent causes are: - libpthread.so.0 is stripped What does the command below produce: nm /lib/libpthread.so.0 | egrep '_version|threads_events' - libpthread.so.0 does not match in version libthread_db.so.1 This may happen if you build your own glibc, but don't install all the pieces of it. Cheers, -- Paul Pluzhnikov