From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14128 invoked by alias); 12 Sep 2003 14:49:43 -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 14110 invoked from network); 12 Sep 2003 14:49:43 -0000 Received: from unknown (HELO gepetto.dc.luth.se) (130.240.42.40) by sources.redhat.com with SMTP; 12 Sep 2003 14:49:43 -0000 Received: (from www-usr@localhost) by gepetto.dc.luth.se (8.12.5/8.12.5) id h8CEncKX015176; Fri, 12 Sep 2003 16:49:38 +0200 (MEST) X-Authentication-Warning: gepetto.dc.luth.se: www-usr set sender to andwes-8@webmail.student.luth.se using -f To: Daniel Jacobowitz Subject: Re: thread debugging problem Message-ID: <1063378178.3f61dd0261ba9@webmail.student.luth.se> Date: Fri, 12 Sep 2003 14:49:00 -0000 From: Andreas Westin Cc: gdb@sources.redhat.com References: <3F60AC48.6050406@student.luth.se> <16224.44905.976029.587340@localhost.redhat.com> <1063350901.3f617275e4926@webmail.student.luth.se> <20030912143019.GA24071@nevyn.them.org> In-Reply-To: <20030912143019.GA24071@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.5 X-SW-Source: 2003-09/txt/msg00171.txt.bz2 > On Fri, Sep 12, 2003 at 09:15:01AM +0200, Andreas Westin wrote: > > > > Hi, > > > > > > > > I'm trying to debug a multithreaded program in linux, but I'm > not > > > able > > > > to get any kind of thread info while running the program in > gdb. > > > > I've tested with gdb 5.3, 5.3.91 and cvs from yesterday (10th) > not > > > any > > > > of them works. > > > > info thread shows nothing and the program stops with signal 32 > when a > > > > > > > new thread starts. > > > > > > > > > > Hmmm, this usually indicates that there is no thread support > > > available. Maybe the version of the Kernel you are using has some > > > missing pieces. How about glibc-kernheaders? > > > > > > Do you get a message at gdb startu saying something about using > > > libthread_db? > > > > > > > I'm using Trustix 2.0 with gcc 3.3 and glibc 2.3.2. > > > > > > > > > > Not sure what Trustix is. > > > But those versions seem roughly ok. > > > > > > Can you post a gdb session? > > > > > > > This is the kernel installed. > > root@labb ~# uname -a > > Linux labb.mobilecity.nu 2.4.21-13trfirewall #1 Thu Jul 10 15:57:32 > CEST 2003 > > i686 unknown unknown GNU/Linux > > > > I have installed the glibc-devel rpms so the headers should be > included. > > > > Trustix is small firewall/gateway dist, http://www.trustix.net/ > > > > A sample gdb session, I do not see any message about libthread_db > though. > > Does trustix even ship /lib/libthread_db.so.1? If not, thread > debugging won't work. Yes, i have libthread_db_so.1 in /lib /Andreas