dimahardie / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Extend linux_dumper / minidump_writer to support core dump file #455

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Chromium OS has a modified copy of google-breakpad 
(http://git.chromium.org/gitweb/?p=chromiumos/platform/google-breakpad.git), 
which is originally developed by kmixter@, to support converting core dump into 
minidump format.

The major changes are:
1. LinuxDumper is modified to gather process/thread information of a crashed 
process using a core dump file instead of ptrace. Also, instead of reading 
information from /proc/<crash pid>, it reads from a directory that contains a 
copy of the /proc/<pid>
2. MinidumpWriter provides WriteMinidumpFromCore() to invoke LinuxDumper with a 
core dump file and a directory of a copy of /proc/<crash pid>.
3. Two tools, core2md and core_dumper, are added to src/tools/linux for 
handling core dump to minidump conversion.

We would like to upstream these changes and get rid of our local branch. One 
approach is to refactor LinuxDumper such that LinuxDumper becomes the base 
class/interface of common code, and is inherited by two derived classes, 
LinuxPtraceDumper and LinuxCoreDumper, for implementing the original ptrace 
solution and our core dump variant, respectively.

Please assign this issue to me as I'm working on refactoring the code.

Original issue reported on code.google.com by benc...@chromium.org on 6 Dec 2011 at 1:41

GoogleCodeExporter commented 9 years ago

Original comment by benc...@chromium.org on 16 Dec 2011 at 5:26

GoogleCodeExporter commented 9 years ago
Fixed in r905

Original comment by benc...@chromium.org on 13 Feb 2012 at 10:26