This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: pthread_db innitializing error
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: nak26 <nak26 at drexel dot edu>
- Cc: gdb <gdb at sources dot redhat dot com>
- Date: Wed, 25 Jun 2003 13:19:46 -0400
- Subject: Re: pthread_db innitializing error
- References: <3EF9D828@webmail.drexel.edu>
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