From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15435 invoked by alias); 25 Jun 2003 18:30:33 -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 3594 invoked from network); 25 Jun 2003 17:19:55 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 25 Jun 2003 17:19:55 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19VDwr-0000kJ-00; Wed, 25 Jun 2003 12:20:45 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19VDvu-0006JM-00; Wed, 25 Jun 2003 13:19:46 -0400 Date: Wed, 25 Jun 2003 18:30:00 -0000 From: Daniel Jacobowitz To: nak26 Cc: gdb Subject: Re: pthread_db innitializing error Message-ID: <20030625171944.GA24093@nevyn.them.org> Mail-Followup-To: nak26 , gdb References: <3EF9D828@webmail.drexel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EF9D828@webmail.drexel.edu> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-06/txt/msg00478.txt.bz2 On Wed, Jun 25, 2003 at 12:38:44PM -0400, nak26 wrote: > Hi: > > I am fighting problems I have when trying to remotely debug multithreaded > applications. > > The host machine's solib-absolute-prefix is messed up, so when I start I set > the solib search path to look for libraries at the right places (it was > looking at /lib/i686 instead of just in /lib). Then after hitting a breakpoint > I need to issue shared to load the libararies. Eh? It sounds like you're not using the right libraries at all. solib-absolute-prefix should point to a copy of the target filesystem layout - the target's versions of libraries. It shouldn't search /lib at all. > At this point on the target terminal I see this (the application is a > multithreaded toy example): > > [localhost ~/src/c/threads]$ ~/.local/src/gdb-5.3/gdb/gdbserver/gdbserver > :7000 hello_world_thread > Process hello_world_thread created; pid = 2486 > Remote debugging from host 192.168.66.59 > gdb: error initializing thread_db library. > gdb: error initializing thread_db library. > gdb: error initializing thread_db library. > > Anybody with ideas why I am getting the error? > > Both host and target are IA32 RedHat 8.0s. Probably symbol resolution is not working; most likely because you have the wrong libpthread on the host. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer