From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3449 invoked by alias); 27 May 2005 16:22:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3406 invoked by uid 22791); 27 May 2005 16:22:02 -0000 Received: from web53404.mail.yahoo.com (HELO web53404.mail.yahoo.com) (206.190.37.51) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 27 May 2005 16:22:02 +0000 Received: (qmail 56475 invoked by uid 60001); 27 May 2005 16:22:00 -0000 Message-ID: <20050527162200.56470.qmail@web53404.mail.yahoo.com> Received: from [24.22.218.122] by web53404.mail.yahoo.com via HTTP; Fri, 27 May 2005 09:22:00 PDT Date: Fri, 27 May 2005 16:22:00 -0000 From: Bryan Wilkerson Reply-To: bryanwilkerson@yahoo.com Subject: Fwd: gdb & pthreads - the Ike and Tina of Linux dev To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-05/txt/msg00347.txt.bz2 I tried sending this to gdb-prs but that failed so.... Any help is greatly appreciated. -b --- Bryan Wilkerson wrote: > Date: Fri, 27 May 2005 09:13:41 -0700 (PDT) > From: Bryan Wilkerson > Subject: gdb & pthreads - the Ike and Tina of Linux > dev > To: gdb-prs@sources.redhat.com > > > I've submitted a bug regarding this issue but maybe > there is something I'm doing wrong or could do > better. > > > It's seems as though I have *never* been able to get > gdb to debug pthread threaded applications. The > latest problem is that when gdb hits a breakpoint in > code that running on a thread other than the main > thread, I get the following: > > Program terminated with signal SIGTRAP, > Trace/breakpoint trap. > The program no longer exists > > ...and no further debugging is possible. > > below is all of the relevant version information. > Perhaps someone could suggest a workaround? Note > that > while I am using the kernel.org 2.6.12-rc3 kernel > with > the inotify 0.23 patch, I've confirmed that the > problem also happens with the stock SuSE 9.3 kernel. > > Please CC my e-mail on any replies. > > Thanks, > > -bryan > > > Linux vincent 2.6.12-rc3-inotify-smp #2 SMP Sat May > 21 > 08:50:26 PDT 2005 i686 i686 i386 GNU/Linux > bwilkers@vincent:~/proj/aux-media/bin> > bwilkers@vincent:~/proj/aux-media/bin> gcc -v > Reading specs from > /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs > Configured with: ../configure --enable-threads=posix > --prefix=/usr --with-local-prefix=/usr/local > --infodir=/usr/share/info --mandir=/usr/share/man > --enable-languages=c,c++,f77,objc,java,ada > --disable-checking --libdir=/usr/lib --enable-libgcj > --with-slibdir=/lib --with-system-zlib > --enable-shared > --enable-__cxa_atexit i586-suse-linux > Thread model: posix > gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) > bwilkers@vincent:~/proj/aux-media/bin> > bwilkers@vincent:~/proj/aux-media/bin> gdb -v > GNU gdb 6.3 > Copyright 2004 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 "i586-suse-linux". > bwilkers@vincent:~/proj/aux-media/bin> > bwilkers@vincent:~/proj/aux-media/bin> > /lib/libc.so.6 > GNU C Library stable release version 2.3.4 > (20050218), > by Roland McGrath et al. > Copyright (C) 2005 Free Software Foundation, Inc. > This is free software; see the source for copying > conditions. > There is NO warranty; not even for MERCHANTABILITY > or > FITNESS FOR A > PARTICULAR PURPOSE. > Configured for i686-suse-linux. > Compiled by GNU CC version 3.3.5 20050117 > (prerelease) > (SUSE Linux). > Compiled on a Linux 2.6.9 system on 2005-03-19. > Available extensions: > GNU libio by Per Bothner > crypt add-on version 2.1 by Michael Glad and > others > linuxthreads-0.10 by Xavier Leroy > GNU Libidn by Simon Josefsson > NoVersion patch for broken glibc 2.0 > binaries > BIND-8.2.3-T5B > libthread_db work sponsored by Alpha > Processor > Inc > NIS(YP)/NIS+ NSS modules 0.19 by Thorsten > Kukuk > Thread-local storage support included. > For bug reporting instructions, please see: > . > bwilkers@vincent:~/proj/aux-media/bin> > >