From: Jean-Marc Saffroy <saffroy@gmail.com>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: gdb@sourceware.org
Subject: Re: how could gdb handle truncated core files?
Date: Fri, 29 Aug 2008 17:46:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.64.0808271943290.5141@erda.mds> (raw)
In-Reply-To: <8ac60eac0808270946l284eb94awf97be09b8b3a4aa@mail.gmail.com>
On Wed, 27 Aug 2008, Paul Pluzhnikov wrote:
> You may also want to look at Google user-space coredumper:
> http://code.google.com/p/google-coredumper/
Cool, this project seems to do what I need, with a limited memory
footprint! :)
> It is often easier to play with than to boot custom kernels,
I'm not fond of custom kernels either. Should a clean kernel patch have
sufficed, I would have pushed for its inclusion in the mainline.
> and it already has support for prioritisation of what is dumped,
> as well as compression of the core (core files are often *extremely*
> compressible).
This prioritisation seems to be a simple and efficient way of reducing the
core size to something usable in the use cases I mentioned.
>> - gdb does not load symbols from binaries
>
> The problem here most likely is that _r_debug.r_map was not found
> in the (truncated) core. Without it, GDB can't know which libraries
> were loaded, hence can't load unwind info for libpthread, hence
> can't produce correct stack trace.
Indeed, that's certainly the problem! Thanks for pointing out. It seems
that coredumper's prioritisation works well enough that it does not need
to care about this level of detail directly.
Maybe the kernel could use the same approach, or a separate program could
trim full core dumps on the fly (see "Piping core dumps" in
http://lwn.net/Articles/280959/ ), so that linking all applications with
libcoredumper could be avoided.
But I'm going off-topic for this list. ;)
Cheers,
Jean-Marc
--
saffroy@gmail.com
prev parent reply other threads:[~2008-08-27 22:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-28 13:55 Jean-Marc Saffroy
2008-08-29 1:55 ` Paul Koning
2008-08-29 16:30 ` Paul Pluzhnikov
2008-08-29 17:46 ` Jean-Marc Saffroy [this message]
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=Pine.LNX.4.64.0808271943290.5141@erda.mds \
--to=saffroy@gmail.com \
--cc=gdb@sourceware.org \
--cc=ppluzhnikov@google.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