Loading shared libraries for core file

Kris Warkentin kewarken@qnx.com
Tue Feb 1 15:12:00 GMT 2005


Ben Hutchings wrote:

>Kris Warkentin wrote:
>  
>
>>'info shared' should tell you what it plans to load and whether or not
>>    
>>
>
>  
>
>>it has yet.
>>    
>>
>
>Unfortunately not:
>"No shared libraries loaded at this time."
>
>Ben.
>  
>

Strange.  Is it possible that your application cored before it loaded 
the shared libs?  Linux uses lazy linking so if none of your objects had 
been used yet, they might not be loaded.  You'd think that at least libc 
would be there.  What do you get when you 'objdump -x <your_app> | grep 
NEEDED'?  What does your backtrace show?

Also, you might want to try "LD_DEBUG=all LD_DEBUG_OUTPUT=ld_debug.txt 
<your_app>" to see what's going on.

cheers,

Kris



More information about the Gdb mailing list