Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(393)

Issue 242001: Allow passing info about known memory mappings to MinidumpWriter and ExceptionHandler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by Ted Mielczarek
Modified:
13 years, 4 months ago
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

This patch adds an API to ExceptionHandler to add information about known
regions of memory. This is useful for when you have known memory mappings
that show up as anonymous memory maps in /proc/<pid>/maps, so LinuxDumper
doesn't know how to handle them.

For our Firefox Android builds, we have a custom library loader that maps
our shared libs out the APK into anonymous memory, which totally foils
LinuxDumper. Using this API we're able to feed the names and debug IDs of
our modules through ExceptionHandler and we get usable minidumps.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/handler/exception_handler.cc View 1 3 chunks +24 lines, -2 lines 0 comments Download
M src/client/linux/handler/exception_handler.h View 1 3 chunks +17 lines, -1 line 0 comments Download
M src/client/linux/handler/exception_handler_unittest.cc View 1 2 chunks +86 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.cc View 1 5 chunks +14 lines, -11 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper_unittest.cc View 1 3 chunks +30 lines, -15 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc View 2 chunks +11 lines, -1 line 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 3 chunks +104 lines, -46 lines 1 comment Download
M src/client/linux/minidump_writer/minidump_writer.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer_unittest.cc View 1 2 chunks +314 lines, -1 line 0 comments Download

Messages

Total messages: 6
Ted Mielczarek
13 years, 4 months ago #1
Lei Zhang (chromium)
I need to look at linux_dumper.cc for just a bit longer. The comments below are ...
13 years, 4 months ago #2
Lei Zhang (chromium)
http://breakpad.appspot.com/242001/diff/1/5 File src/client/linux/minidump_writer/linux_dumper.cc (left): http://breakpad.appspot.com/242001/diff/1/5#oldcode243 Line 243: mapping->name[filename_len - sizeof(kDeletedSuffix) + 1] = '\0'; You ...
13 years, 4 months ago #3
Ted Mielczarek
http://breakpad.appspot.com/242001/diff/1/5 File src/client/linux/minidump_writer/linux_dumper.cc (left): http://breakpad.appspot.com/242001/diff/1/5#oldcode243 Line 243: mapping->name[filename_len - sizeof(kDeletedSuffix) + 1] = '\0'; On ...
13 years, 4 months ago #4
Ted Mielczarek
Okay, I reworked the code slightly to not break this, and I wrote a unit ...
13 years, 4 months ago #5
Lei Zhang (chromium)
13 years, 4 months ago #6
LGTM with minor nit below.

http://breakpad.appspot.com/242001/diff/12001/13008
File src/client/linux/minidump_writer/minidump_writer.cc (right):

http://breakpad.appspot.com/242001/diff/12001/13008#newcode823
Line 823: // a file ID from the mapping. mapping_id can be -1 if this mapping
(I can't find this in the style guide, but...) many files in Breakpad have the
convention of putting '|' around variable names in comments. Ex. |mapping_id|.
Can we stick with that convention?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted