From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21897 invoked by alias); 13 Jul 2006 17:40:44 -0000 Received: (qmail 21887 invoked by uid 22791); 13 Jul 2006 17:40:44 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 13 Jul 2006 17:40:42 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G15B2-0007vt-3D; Thu, 13 Jul 2006 13:40:40 -0400 Date: Thu, 13 Jul 2006 17:40:00 -0000 From: Daniel Jacobowitz To: Thomas Ackermann Cc: gdb@sourceware.org Subject: Re: Help with debugging LD_PRELOADed shared C libraries Message-ID: <20060713174040.GA30455@nevyn.them.org> Mail-Followup-To: Thomas Ackermann , gdb@sourceware.org References: <6780801.1152809218081.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> <20060713170530.GB28970@nevyn.them.org> <4570013.1152812286324.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4570013.1152812286324.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00065.txt.bz2 On Thu, Jul 13, 2006 at 07:38:06PM +0200, Thomas Ackermann wrote: > It does not: > > Cannot access memory at address 0x4001738c > #0 0x400cc9b8 in ?? () > (gdb) info shared > Cannot access memory at address 0x4001738c > (gdb) > > > Are you sure that this is true for a shared library that is loaded vias > LD_PRELOAD? I mean, it is supposed to exchange functions from the binary > - to which i have no source. Absolutely sure. It looks to me as if your kernel did not write out the _DYNAMIC segment for some reason. What does "readelf -l core" say? How about "readelf -l application"? > > Are you sure that core dumps work on this system? > > How to easy test this? > I seem to remember using gdb on this system in earlier times already. cat& killall -ABRT Then try loading that core dump. -- Daniel Jacobowitz CodeSourcery