This is the mail archive of the gdb@sourceware.org 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: weird errors when notifying gdb of linkmap changes


On Mon, Jan 12, 2009 at 08:20:01PM +0100, Mathieu Lacage wrote:
> hi,
> 
> I get the following errors:
> Starting program: /home/mathieu/code/elf-loader/ls
> [Thread debugging using libthread_db enabled]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> Cannot find new threads: generic error
> (gdb) bt
> #0  0xb7f228d1 in _r_debug_state () at gdb.c:10
> #1  0xb7f22964 in gdb_notify () at gdb.c:36
> #2  0xb7f1d7fd in stage2 (args=
>       {interpreter_load_base = 3086077952, program_phdr = 0x8048034,
> program_phnum = 8, sysinfo = 3086074880, program_argc = 1,
> program_argv = 0xbfa13ff4, program_envp = 0xbfa13ffc}) at ldso.c:253
> #3  0xb7f1d9b0 in stage1 () at ldso.c:312
> #4  0x00000001 in ?? ()
> 
> I wonder if there is an obvious well-known reason for this.

You'll have to build a debuggable libthread_db to figure out what it's
complaining about.  Most likely you have told it that the thread
library is loaded, but provided some incorrect information that led to
GDB not finding the thread library's data structures.

-- 
Daniel Jacobowitz
CodeSourcery


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