Open GoogleCodeExporter opened 9 years ago
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
Attachments:
Original issue reported on code.google.com by
ice...@gmail.com
on 17 Nov 2011 at 8:18Attachments: