From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14807 invoked by alias); 16 Jan 2009 19:05:46 -0000 Received: (qmail 14799 invoked by uid 22791); 16 Jan 2009 19:05:46 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from po-out-1718.google.com (HELO po-out-1718.google.com) (72.14.252.155) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jan 2009 19:05:09 +0000 Received: by po-out-1718.google.com with SMTP id b23so2565570poe.4 for ; Fri, 16 Jan 2009 11:05:07 -0800 (PST) Received: by 10.140.163.12 with SMTP id l12mr1281120rve.178.1232132707417; Fri, 16 Jan 2009 11:05:07 -0800 (PST) Received: by 10.140.226.16 with HTTP; Fri, 16 Jan 2009 11:05:07 -0800 (PST) Message-ID: <966c7c700901161105l7212a096hecd192e7e4e751e1@mail.gmail.com> Date: Fri, 16 Jan 2009 19:05:00 -0000 From: "Albert Fu" To: "Paul Pluzhnikov" Subject: Re: Program terminated by SIGTRAP in gdb Cc: gdb@sourceware.org In-Reply-To: <8ac60eac0901151805w1953e06do991af229cdccb5a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <966c7c700901141637g49f2bafcj6e95c60c80227eba@mail.gmail.com> <8ac60eac0901151805w1953e06do991af229cdccb5a2@mail.gmail.com> 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/msg00099.txt.bz2 > What does the command below produce: > nm /lib/libpthread.so.0 | egrep '_version|threads_events' I typed the command and it produced: 0001da70 g __linuxthreads_version 0001da9c s __pthread_threads_events > This may happen if you build your own glibc, but don't install > all the pieces of it. I use all the software from the same Linux release. Is there any document which describes what gdb can do or can't do when debugging a multi-threaded program? Subject:"gdb and multi-threaded (NPTL) programs" There were some discussions back in March 24, 2006 mentioned that GDB changes the behavior of a multi-threaded program. Is there any changes in GDB since then?