<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>130923</bug_id>
          
          <creation_ts>2014-03-28 17:34:28 -0700</creation_ts>
          <short_desc>Uncaught NSExceptions should crash the web process</short_desc>
          <delta_ts>2014-03-29 10:19:42 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anders Carlsson">andersca</reporter>
          <assigned_to name="Anders Carlsson">andersca</assigned_to>
          <cc>mitz</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>995521</commentid>
    <comment_count>0</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-03-28 17:34:28 -0700</bug_when>
    <thetext>Uncatched NSExceptions should crash the web process</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995522</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-03-28 17:35:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/16463751&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995523</commentid>
    <comment_count>2</comment_count>
      <attachid>228101</attachid>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-03-28 17:37:18 -0700</bug_when>
    <thetext>Created attachment 228101
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995526</commentid>
    <comment_count>3</comment_count>
      <attachid>228101</attachid>
    <who name="">mitz</who>
    <bug_when>2014-03-28 17:40:21 -0700</bug_when>
    <thetext>Comment on attachment 228101
Patch

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

&gt; Source/WebKit2/ChangeLog:3
&gt; +        Uncatched NSExceptions should crash the web process

Uncaught

&gt; Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191
&gt; +    [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @&quot;NSApplicationCrashOnExceptions&quot; : @YES }];

What is the behavior in the non-AppKit configuration? Does it already crash on exceptions? Can we make it crash on exceptions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995575</commentid>
    <comment_count>4</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-03-29 09:12:42 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 228101 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=228101&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:3
&gt; &gt; +        Uncatched NSExceptions should crash the web process
&gt; 
&gt; Uncaught
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191
&gt; &gt; +    [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @&quot;NSApplicationCrashOnExceptions&quot; : @YES }];
&gt; 
&gt; 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&apos;m not sure if it&apos;s possible to get the exception (or stack trace) from there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995576</commentid>
    <comment_count>5</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2014-03-29 09:15:08 -0700</bug_when>
    <thetext>Committed r166452: &lt;http://trac.webkit.org/changeset/166452&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995582</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2014-03-29 10:19:42 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (From update of attachment 228101 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=228101&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/WebKit2/ChangeLog:3
&gt; &gt; &gt; +        Uncatched NSExceptions should crash the web process
&gt; &gt; 
&gt; &gt; Uncaught
&gt; &gt; 
&gt; &gt; &gt; Source/WebKit2/WebProcess/cocoa/WebProcessCocoa.mm:191
&gt; &gt; &gt; +    [[NSUserDefaults standardUserDefaults] registerDefaults:@{ @&quot;NSApplicationCrashOnExceptions&quot; : @YES }];
&gt; &gt; 
&gt; &gt; What is the behavior in the non-AppKit configuration? Does it already crash on exceptions? Can we make it crash on exceptions?
&gt; 
&gt; I think we can use std::set_terminate to set the exception handler, but I&apos;m not sure if it&apos;s possible to get the exception (or stack trace) from there.

I was thinking along the lines of using NSSetUncaughtExceptionHandler().</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>228101</attachid>
            <date>2014-03-28 17:37:18 -0700</date>
            <delta_ts>2014-03-28 17:40:20 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-130923-20140328173658.patch</filename>
            <type>text/plain</type>
            <size>1705</size>
            <attacher name="Anders Carlsson">andersca</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY2NDM1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggMWVkM2RjNDhmNmYyNzIy
OTcyMzljMzk2ZTU0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2N1c2VkVUlFbGVtZW50KSk7Cg==
</data>
<flag name="review"
          id="252366"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>