This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_db innitializing error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]