RESOLVED FIXED 130923
Uncaught NSExceptions should crash the web process
https://bugs.webkit.org/show_bug.cgi?id=130923
Summary Uncaught NSExceptions should crash the web process
Anders Carlsson
Reported 2014-03-28 17:34:28 PDT
Uncatched NSExceptions should crash the web process
Attachments
Patch (1.67 KB, patch)
2014-03-28 17:37 PDT, Anders Carlsson
mitz: review+
Radar WebKit Bug Importer
Comment 1 2014-03-28 17:35:04 PDT
Anders Carlsson
Comment 2 2014-03-28 17:37:18 PDT
mitz
Comment 3 2014-03-28 17:40:21 PDT
Comment on attachment 228101 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228101&action=review > Source/WebKit2/ChangeLog:3 > + Uncatched NSExceptions should crash the web process Uncaught > Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191 > + [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions" : @YES }]; What is the behavior in the non-AppKit configuration? Does it already crash on exceptions? Can we make it crash on exceptions?
Anders Carlsson
Comment 4 2014-03-29 09:12:42 PDT
(In reply to comment #3) > (From update of attachment 228101 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=228101&action=review > > > Source/WebKit2/ChangeLog:3 > > + Uncatched NSExceptions should crash the web process > > Uncaught > > > Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191 > > + [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions" : @YES }]; > > What is the behavior in the non-AppKit configuration? Does it already crash on exceptions? Can we make it crash on exceptions? I think we can use std::set_terminate to set the exception handler, but I'm not sure if it's possible to get the exception (or stack trace) from there.
Anders Carlsson
Comment 5 2014-03-29 09:15:08 PDT
mitz
Comment 6 2014-03-29 10:19:42 PDT
(In reply to comment #4) > (In reply to comment #3) > > (From update of attachment 228101 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=228101&action=review > > > > > Source/WebKit2/ChangeLog:3 > > > + Uncatched NSExceptions should crash the web process > > > > Uncaught > > > > > Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191 > > > + [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @"NSApplicationCrashOnExceptions" : @YES }]; > > > > What is the behavior in the non-AppKit configuration? Does it already crash on exceptions? Can we make it crash on exceptions? > > I think we can use std::set_terminate to set the exception handler, but I'm not sure if it's possible to get the exception (or stack trace) from there. I was thinking along the lines of using NSSetUncaughtExceptionHandler().
Note You need to log in before you can comment on or make changes to this bug.