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

Issue 585123003: Linux sandbox: add behind-flag USR2 handler for crash debugging. (Closed)

Created:
6 years, 3 months ago by jln (very slow on Chromium)
Modified:
6 years, 3 months ago
Reviewers:
mdempsky
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Linux sandbox: add behind-flag USR2 handler for crash debugging. When --allow-sandbox-debugging is used, we set-up a new signal handler in the Zygote (inherited by all renderers) that performs a chroot(). This allows testing of sandbox violation crash report with official binaries shipping to users. BUG=415842 R=mdempsky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/a993af23aca15e7e24643d9892e746a9dfbf6fa6

Patch Set 1 #

Total comments: 1

Patch Set 2 : Typo #

Patch Set 3 : Print message after chroot. #

Total comments: 4

Patch Set 4 : Address comments. #

Patch Set 5 : Only behind a flag. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -0 lines) Patch
M content/zygote/zygote_main_linux.cc View 1 2 3 4 4 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
jln (very slow on Chromium)
I'm not very proud, but I think this would allow for very useful manual testing.
6 years, 3 months ago (2014-09-19 22:58:00 UTC) #2
mdempsky
lgtm https://codereview.chromium.org/585123003/diff/1/content/zygote/zygote_main_linux.cc File content/zygote/zygote_main_linux.cc (right): https://codereview.chromium.org/585123003/diff/1/content/zygote/zygote_main_linux.cc#newcode71 content/zygote/zygote_main_linux.cc:71: ignore_result(chroot("/")); Do we want to do anything special ...
6 years, 3 months ago (2014-09-19 23:07:46 UTC) #3
jln (very slow on Chromium)
> Do we want to do anything special if this returns? E.g., still crash/exit or ...
6 years, 3 months ago (2014-09-19 23:30:18 UTC) #5
mdempsky
https://codereview.chromium.org/585123003/diff/60001/content/zygote/zygote_main_linux.cc File content/zygote/zygote_main_linux.cc (right): https://codereview.chromium.org/585123003/diff/60001/content/zygote/zygote_main_linux.cc#newcode80 content/zygote/zygote_main_linux.cc:80: kSecondMessage, "chroot() returned. Errno is %d.\n", errno); Maybe go ...
6 years, 3 months ago (2014-09-19 23:35:40 UTC) #6
jln (very slow on Chromium)
https://codereview.chromium.org/585123003/diff/60001/content/zygote/zygote_main_linux.cc File content/zygote/zygote_main_linux.cc (right): https://codereview.chromium.org/585123003/diff/60001/content/zygote/zygote_main_linux.cc#newcode80 content/zygote/zygote_main_linux.cc:80: kSecondMessage, "chroot() returned. Errno is %d.\n", errno); On 2014/09/19 ...
6 years, 3 months ago (2014-09-19 23:42:31 UTC) #7
mdempsky
lgtm
6 years, 3 months ago (2014-09-19 23:43:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585123003/80001
6 years, 3 months ago (2014-09-19 23:44:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585123003/80001
6 years, 3 months ago (2014-09-19 23:45:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585123003/100001
6 years, 3 months ago (2014-09-19 23:58:46 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/a993af23aca15e7e24643d9892e746a9dfbf6fa6 Cr-Commit-Position: refs/heads/master@{#295826}
6 years, 3 months ago (2014-09-20 00:15:20 UTC) #15
jln (very slow on Chromium)
6 years, 3 months ago (2014-09-20 00:15:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as a993af2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698