From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32359 invoked by alias); 13 Jul 2006 19:10:51 -0000 Received: (qmail 32335 invoked by uid 22791); 13 Jul 2006 19:10:49 -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 19:10:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G16aC-0000A9-V2; Thu, 13 Jul 2006 15:10:45 -0400 Date: Thu, 13 Jul 2006 19:10:00 -0000 From: Daniel Jacobowitz To: Thomas Ackermann Cc: gdb@sourceware.org Subject: Re: Help with debugging LD_PRELOADed shared C libraries Message-ID: <20060713191044.GA530@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> <20060713174040.GA30455@nevyn.them.org> <2721830.1152816937286.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2721830.1152816937286.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/msg00067.txt.bz2 On Thu, Jul 13, 2006 at 08:55:37PM +0200, Thomas Ackermann wrote: > LOAD 0x000000 0x08048000 0x08048000 0x0ad47 0x0ad47 R E 0x1000 > LOAD 0x00ad60 0x08053d60 0x08053d60 0x091f4 0x0b8c8 RW 0x1000 > DYNAMIC 0x013eb4 0x0805ceb4 0x0805ceb4 0x000a0 0x000a0 RW 0x4 So your app loads its dynamic data at 0x0805ceb4... > Program Headers: > Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align > NOTE 0x000c94 0x00000000 0x00000000 0x009d0 0x00000 0 > LOAD 0x002000 0x08048000 0x00000000 0x00000 0x0b000 R E 0x1000 > LOAD 0x002000 0x08053000 0x00000000 0x0a000 0x0a000 RWE 0x1000 Which is right here and has a non-zero file size; looks fine. But the data itself may be missing. Your error was: Cannot access memory at address 0x4001738c > LOAD 0x23f8000 0x40016000 0x00000000 0x02000 0x02000 RWE 0x1000 ... which is right here and looks fine. I do not know why GDB is having trouble accessing the data from the core file, in that case. Sorry :-( > > cat& > > killall -ABRT > > > Hmm... > > Does not work: > > austria:~ # cat& > [1] 20914 > austria:~ # killall -ABRT 20914 > 20914: no process killed > > [1]+ Stopped cat Don't trust commands strangers tell you... "kill" rather than "killall", sorry. -- Daniel Jacobowitz CodeSourcery