From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20654 invoked by alias); 1 Feb 2005 15:53:53 -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 20502 invoked from network); 1 Feb 2005 15:53:38 -0000 Received: from unknown (HELO mail1) (212.44.25.184) by sourceware.org with SMTP; 1 Feb 2005 15:53:38 -0000 Received: from wsbenh.bwsint.com ([192.168.100.185]) by mail1 with esmtp (Exim 4.34) id 1Cw0T5-0006Ph-UY; Tue, 01 Feb 2005 16:01:31 +0000 Message-ID: <41FFA704.1030000@businesswebsoftware.com> Date: Tue, 01 Feb 2005 15:53:00 -0000 From: Ben Hutchings User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) MIME-Version: 1.0 To: Kris Warkentin CC: gdb@sources.redhat.com Subject: Re: Loading shared libraries for core file References: <41FF84B0.2060008@businesswebsoftware.com> <41FF9CB8.8070507@qnx.com> In-Reply-To: <41FF9CB8.8070507@qnx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-02/txt/msg00008.txt.bz2 Kris Warkentin wrote: > 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." >> > > 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. The process had been running for a while and to get to that point it would have had to run code from all the libraries. It was actually running code from a shared library at the point I made the core dump. Now gdb won't show me that code! > What do you get when you 'objdump -x | grep NEEDED'? NEEDED libboost_thread.so NEEDED libdl.so.2 NEEDED libstdc++.so.6 NEEDED libm.so.6 NEEDED libgcc_s.so.1 NEEDED libpthread.so.0 NEEDED libc.so.6 NEEDED ld-linux.so.2 > Also, you might want to try "LD_DEBUG=all LD_DEBUG_OUTPUT=ld_debug.txt > " to see what's going on. It's fairly clear that all the libraries are loaded successfully. Ben.