Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Thomas Ackermann <tja@anykey.de>
Cc: gdb@sourceware.org
Subject: Re: Help with debugging LD_PRELOADed shared C libraries
Date: Thu, 13 Jul 2006 19:10:00 -0000	[thread overview]
Message-ID: <20060713191044.GA530@nevyn.them.org> (raw)
In-Reply-To: <2721830.1152816937286.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey>

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 <pid of cat>
> 
> 
> 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


  reply	other threads:[~2006-07-13 19:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 16:47 Thomas Ackermann
2006-07-13 17:05 ` Daniel Jacobowitz
2006-07-13 17:38   ` Thomas Ackermann
2006-07-13 17:40     ` Daniel Jacobowitz
2006-07-13 18:55       ` Thomas Ackermann
2006-07-13 19:10         ` Daniel Jacobowitz [this message]
2006-07-13 22:14           ` Thomas Ackermann
2006-07-13 22:29             ` Daniel Jacobowitz
2006-07-14  1:22 ` Russell Shaw
2006-07-14 14:33   ` Thomas Ackermann
2006-07-14 16:31     ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060713191044.GA530@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=tja@anykey.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox