<?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>37797</bug_id>
          
          <creation_ts>2010-04-19 07:10:38 -0700</creation_ts>
          <short_desc>Add a flag to make DRT use exit(1) to avoid ReportCrash starting</short_desc>
          <delta_ts>2011-10-12 14:31:23 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>64491</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
    
    <cc>eric</cc>
    
    <cc>mjs</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>214012</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-04-19 07:10:38 -0700</bug_when>
    <thetext>From bug 37738:
&gt; &gt; &gt; Also, is there a way we can kill ReportCrash from NRWT? When I run the tests
&gt; &gt; &gt; locally, I frequently will &quot;sudo killall ReportCrash&quot; in a loop. I&apos;d much
&gt; &gt; &gt; rather have NRWT do that for me. The sudo is the problem of course.
&gt; &gt; 
&gt; &gt; I don&apos;t think that would be a good thing to do. The crash logs are very useful
&gt; &gt; for diagnosing what went wrong, especially on the buildbots.
&gt; 
&gt; I&apos;ve long wanted such an option to run-webkit-tests.  It&apos;s easy enough to do.
&gt; Just requires adding a flag to DumpRenderTree to have it catch the necessary
&gt; signals and exit(1) instead of letting the OS catch them for us and calling
&gt; ReportCrash.  I don&apos;t think we&apos;d want this mode on by default, but it would be
&gt; useful.

I think we should make it the default and have a flag to turn it off on the bots. Also, we do this with TestShell on the Mac. It reduces the number of cases where ReportCrash fires up, but doesn&apos;t seem to catch all of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214077</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2010-04-19 10:13:30 -0700</bug_when>
    <thetext>To fully avoid ReportCrash, you can install signal handlers.  We do this for the jsc executable, see http://trac.webkit.org/browser/trunk/JavaScriptCore/jsc.cpp#L498.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214343</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2010-04-19 16:55:02 -0700</bug_when>
    <thetext>Can someone clarify why this should be the default?  If I make a code change, run the tests, and it causes a crash or assertion failure I want to know where it crashed or asserted.  In what cases would you not want to know where or why it crashed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214362</commentid>
    <comment_count>3</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-04-19 17:24:39 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Can someone clarify why this should be the default?  If I make a code change,
&gt; run the tests, and it causes a crash or assertion failure I want to know where
&gt; it crashed or asserted.  In what cases would you not want to know where or why
&gt; it crashed?

Maybe I&apos;m the exception, but when I hit a crash or assert running tests, I typically will run that specific test directly from xcode rather than looking at the crash log. The only exception to this is if the crash doesn&apos;t happen reliably, in which case I&apos;d be ok with turning crash reporting on.

Making this the default makes hacking on webkit more inviting to new or occasional contributors. People who don&apos;t regularly hack on Macs and/or WebKit-Mac, don&apos;t remember that ReportCrash exists and that it considerably slows down running the tests.

Also, it&apos;s not uncommon for there to be crashes checked in to trunk. I don&apos;t want run-webkit-tests to take forever because someone else&apos;s patch is causing a handful of crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214479</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-04-19 22:19:23 -0700</bug_when>
    <thetext>I&apos;d also prefer CrashReporter run by default. Not having crash logs means loss of information - you can wait a moment for CrashReporter to finish, but you can&apos;t get a crash log for an unreproducible crash if it wasn&apos;t ever generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214660</commentid>
    <comment_count>5</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2010-04-20 07:52:48 -0700</bug_when>
    <thetext>I don&apos;t feel strongly about the default value. The flag should be there though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>482717</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-10-12 14:31:15 -0700</bug_when>
    <thetext>This would be super useful.  I&apos;ve hacked this into DRT in the past when debugging crashers.  I also don&apos;t care about the default, but assume it should be off by default, and folks who wish to use it to debug crashers can pass the flag.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>