Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Issue 1761023002: Add an optional root prefix to Linux dumpers (Closed)

Created:
4 years, 9 months ago by Dominik Laskowski
Modified:
4 years, 9 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add an optional root prefix to Linux dumpers The Linux dumpers use absolute paths for shared libraries referenced by dumps, so they fail to locate them if the crash originated in a chroot. This CL enables callers to specify a root prefix, which is prepended to mapping paths before opening them. BUG=chromium:591792 TEST=make check

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments #

Total comments: 6

Patch Set 3 : Remove assertions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -35 lines) Patch
M src/client/linux/microdump_writer/microdump_writer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/client/linux/minidump_writer/linux_core_dumper.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/client/linux/minidump_writer/linux_core_dumper.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/client/linux/minidump_writer/linux_core_dumper_unittest.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.h View 3 chunks +16 lines, -6 lines 0 comments Download
M src/client/linux/minidump_writer/linux_dumper.cc View 1 2 7 chunks +24 lines, -24 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
Dominik Laskowski
4 years, 9 months ago (2016-03-03 21:34:18 UTC) #2
Luis Héctor Chávez
https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode100 src/client/linux/minidump_writer/linux_dumper.cc:100: assert(root_prefix_); Maybe also assert that my_strlen(root_prefix) < PATH_MAX? https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode145 ...
4 years, 9 months ago (2016-03-03 22:10:43 UTC) #3
Dominik Laskowski
https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode100 src/client/linux/minidump_writer/linux_dumper.cc:100: assert(root_prefix_); On 2016/03/03 22:10:43, Luis Héctor Chávez wrote: > ...
4 years, 9 months ago (2016-03-04 01:03:16 UTC) #4
vapier
https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://codereview.chromium.org/1761023002/diff/1/src/client/linux/minidump_writer/linux_dumper.cc#newcode145 src/client/linux/minidump_writer/linux_dumper.cc:145: if (!GetMappingAbsolutePath(mapping, filename)) i don't think keeping that assert ...
4 years, 9 months ago (2016-03-07 16:32:37 UTC) #5
Dominik Laskowski
https://codereview.chromium.org/1761023002/diff/20001/src/client/linux/minidump_writer/linux_dumper.cc File src/client/linux/minidump_writer/linux_dumper.cc (right): https://codereview.chromium.org/1761023002/diff/20001/src/client/linux/minidump_writer/linux_dumper.cc#newcode165 src/client/linux/minidump_writer/linux_dumper.cc:165: assert(my_strlen(mapping.name) < NAME_MAX); On 2016/03/07 16:32:37, vapier wrote: > ...
4 years, 9 months ago (2016-03-07 18:36:22 UTC) #6
vapier
i won't bikeshed style too much ;) lgtm but prob want to wait for lhchavez@ ...
4 years, 9 months ago (2016-03-07 23:20:41 UTC) #7
elijahtaylor1
lgtm, lhchavez@ is out for the week
4 years, 9 months ago (2016-03-08 00:24:09 UTC) #9
vapier
4 years, 9 months ago (2016-03-08 02:37:38 UTC) #10

Powered by Google App Engine
This is Rietveld 408576698