You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. install ubuntu 10.04
2. generate a core dump either with gcore or google-coredumper
3. try to load core dump in GDB.
What is the expected output? What do you see instead?
should actually have a usable core dump. instead you get a pile of shit.
i'm attaching a patch which adds a "--with-relrobug" flag to configure, which
enables a define, which slightly tweaks the elfcore.c code to output segments
which are marked as read-only, because one particular page in one of these read
only segments is actually dirty.
let me know how i can help get this (or an equivalent) fix included.
Original issue reported on code.google.com by ice...@gmail.com on 17 Nov 2011 at 8:18
Hi,
To be slightly more precise, the kernel is not "buggy". It seems you are using
an executable and/or dynamic libraries which were compiled with the relro
option of the linker. This is the default with recent GNU ld. Compiling your
binary with the ld option -z norelro is a possible workaround, however not very
nice.
The patch you provided works, but doesn't fit my needs. In case of huge
applications, that would dump everything, in particular shared libraries, which
means an overhead of hundreds of MBs in the resulting core dump file.
I developed this patch that aims at dumping only the mappings that are needed
by gdb. The basic idea is to also dump region that are file backed, readonly,
but with at least one anonymous page (meaning the original file content was
altered). This has been tested on x64 SLES 11 SP1 boxes.
Cheers,
Romain
Original comment by romain.g...@gmail.com on 19 Mar 2015 at 10:52
Original issue reported on code.google.com by
ice...@gmail.com
on 17 Nov 2011 at 8:18Attachments:
The text was updated successfully, but these errors were encountered: