Bug 177780

Summary: VMTraps shouldn't crash if it sees an exception it doesn't understand.
Product: WebKit Reporter: Keith Miller <keith_miller>
Component: New BugsAssignee: Keith Miller <keith_miller>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, mark.lam, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing keith_miller: commit-queue+

Description Keith Miller 2017-10-02 14:39:35 PDT
VMTraps shouldn't crash if it sees an exception it doesn't understand.
Comment 1 Keith Miller 2017-10-02 14:43:04 PDT
Created attachment 322444 [details]
Patch
Comment 2 Mark Lam 2017-10-02 14:47:24 PDT
Comment on attachment 322444 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=322444&action=review

r=me with fixes.  Would you happen to have a test for this already?

> Source/JavaScriptCore/ChangeLog:11
> +        noting that this means there's no way to know if, due a bug, we

due *to* a bug.

> Source/JavaScriptCore/runtime/VMTraps.cpp:216
> +                    return SignalAction::HotHandled;

/HotHandled/NotHandled/.
Comment 3 Keith Miller 2017-10-02 14:48:00 PDT
Created attachment 322445 [details]
Patch for landing
Comment 4 Keith Miller 2017-10-02 14:48:36 PDT
Created attachment 322446 [details]
Patch for landing
Comment 5 Mark Lam 2017-10-02 14:48:45 PDT
Comment on attachment 322445 [details]
Patch for landing

View in context: https://bugs.webkit.org/attachment.cgi?id=322445&action=review

> Source/JavaScriptCore/ChangeLog:11
> +        noting that this means there's no way to know if, due a bug, we

typo still here.
Comment 6 Keith Miller 2017-10-02 14:50:44 PDT
(In reply to Mark Lam from comment #2)
> Comment on attachment 322444 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=322444&action=review
> 
> r=me with fixes.  Would you happen to have a test for this already?
> 

I do but it's adding watchdog testing to JSTests/wasm.yaml. Unfortunately, that causes other crashes so I'll land that testing in a follow up.
Comment 7 Keith Miller 2017-10-02 14:54:34 PDT
rdar://problem/33587513
Comment 8 Keith Miller 2017-10-02 14:58:55 PDT
Committed r222748: <http://trac.webkit.org/changeset/222748>