From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: Daniel Jacobowitz <drow@false.org>,
Bruce Korb <bruce.korb@gmail.com>,
Andreas Schwab <schwab@suse.de>,
gdb@sourceware.org, Eli Zaretskii <eliz@gnu.org>,
Michael Snyder <msnyder@specifix.com>
Subject: Re: How can I get a memory map out of a core file?
Date: Mon, 09 Jun 2008 18:03:00 -0000 [thread overview]
Message-ID: <1213034588.10042.120.camel@gargoyle> (raw)
In-Reply-To: <200806091751.m59HpSSv020533@d12av02.megacenter.de.ibm.com>
On Mon, 2008-06-09 at 19:51 +0200, Ulrich Weigand wrote:
> Luis Machado wrote:
>
> > Yes. Mainly giving the user the option to show exactly what we had
> > in /proc/<pid>/maps right before the crash, so we know where things were
> > in memory, like the heap, stack and some specific shared libraries'
> > mappings.
> >
> > We currently can't do that. There's some information in the program
> > headers from a core file, like the one below, that show us a bit of
> > mapping-related information, but not enough so we can actually track
> > them down to a shared library.
>
> But shared library information should be available via
> "info sharedlibrary" (which uses the in-memory data structures
> allocated by ld.so, which are present in the core file) ...
>
> What is the extra information /proc/<pid>/maps provides that
> you're concerned about?
>
> Bye,
> Ulrich
/proc/<pid>/maps provides different types of mappings for the same
library. Like the .text section mapping or .data section mapping. "info
shared" only shows the .text section IIRC.
For example:
Start Addr End Addr Size Offset objfile
0x4000008d000 0x400001fc000 0x16f000 0 /lib64/libc-2.4.so
0x400001fc000 0x4000020b000 0xf000 0x16f000 /lib64/libc-2.4.so
0x4000020b000 0x4000020e000 0x3000 0x16e000 /lib64/libc-2.4.so
0x4000020e000 0x40000225000 0x17000 0x171000 /lib64/libc-2.4.so
Luis
next prev parent reply other threads:[~2008-06-09 18:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 20:46 Bruce Korb
2008-06-06 21:54 ` Michael Snyder
2008-06-07 6:30 ` Eli Zaretskii
2008-06-07 16:31 ` Bruce Korb
2008-06-07 16:58 ` Eli Zaretskii
2008-06-07 18:14 ` Brian Dessent
2008-06-07 18:29 ` Andreas Schwab
2008-06-07 20:01 ` Bruce Korb
2008-06-09 15:04 ` Luis Machado
2008-06-09 15:24 ` Daniel Jacobowitz
2008-06-09 15:32 ` Luis Machado
2008-06-09 15:40 ` Daniel Jacobowitz
2008-06-09 16:28 ` Luis Machado
2008-06-09 17:52 ` Ulrich Weigand
2008-06-09 18:03 ` Luis Machado [this message]
2008-06-12 13:58 ` Ulrich Weigand
2008-06-12 14:18 ` Luis Machado
2008-06-12 14:30 ` Ulrich Weigand
2008-06-09 22:32 ` Michael Snyder
2008-06-09 15:37 ` Bruce Korb
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=1213034588.10042.120.camel@gargoyle \
--to=luisgpm@linux.vnet.ibm.com \
--cc=bruce.korb@gmail.com \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=msnyder@specifix.com \
--cc=schwab@suse.de \
--cc=uweigand@de.ibm.com \
/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