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

Issue 2885053005: Give v8 a chance to handle signals (Closed)

Created:
3 years, 7 months ago by Eric Holk
Modified:
3 years, 5 months ago
CC:
jochen (gone - plz use gerrit), bradnelson, chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Give v8 a chance to handle signals V8 is starting to use guard regions and a signal handler to do out of bounds checks for WebAssembly. This means out of bounds accesses will trigger a segmentation fault, but V8 is able to recover from these and throw a Javascript exception instead. In order to do this, V8 needs to cooperate with any existing signal handlers. This CL modifies Chromium's signal handlers to call V8's TryHandleSignal function before taking any other actions so that V8 is able to recover from the faults it expects. BUG=chromium:722585, v8:5277 Review-Url: https://codereview.chromium.org/2885053005 Cr-Commit-Position: refs/heads/master@{#487549} Committed: https://chromium.googlesource.com/chromium/src/+/978f6fdb8825bfaed72ce01b8846059587788cdf

Patch Set 1 #

Patch Set 2 : Use callback from stack dump handler into V8 signal handler #

Patch Set 3 : Rebasing #

Patch Set 4 : Working proof of concept #

Patch Set 5 : Rebasing and splitting CL #

Patch Set 6 : Rebasing #

Patch Set 7 : Connect the right dot #

Patch Set 8 : Cleanup #

Patch Set 9 : Fix build #

Patch Set 10 : Fixing build better #

Patch Set 11 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M chrome/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M components/crash/content/app/breakpad_linux.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/crash/content/app/breakpad_linux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
Eric Holk
3 years, 6 months ago (2017-06-23 03:49:16 UTC) #2
Mark Mentovai
LGTM
3 years, 6 months ago (2017-06-23 16:36:08 UTC) #15
eholk (please use chromium)
Jochen, would you be willing to look at the chrome/ parts of this CL? Thanks! ...
3 years, 5 months ago (2017-07-17 16:17:52 UTC) #17
jochen (gone - plz use gerrit)
lgtm
3 years, 5 months ago (2017-07-18 08:07:08 UTC) #18
eholk (please use chromium)
On 2017/07/18 08:07:08, jochen (gone - plz use gerrit) wrote: > lgtm Thanks!
3 years, 5 months ago (2017-07-18 17:25:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2885053005/200001
3 years, 5 months ago (2017-07-18 17:25:13 UTC) #22
commit-bot: I haz the power
3 years, 5 months ago (2017-07-18 19:12:38 UTC) #25
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/978f6fdb8825bfaed72ce01b8846...

Powered by Google App Engine
This is Rietveld 408576698