DescriptionGive 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 #
Messages
Total messages: 25 (18 generated)
|