<?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>60241</bug_id>
          
          <creation_ts>2011-05-04 19:47:30 -0700</creation_ts>
          <short_desc>new-run-webkit-tests: doesn&apos;t wait for children if it gets a ctrl-c</short_desc>
          <delta_ts>2011-05-31 15:27:13 -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>New Bugs</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Pranke">dpranke</reporter>
          <assigned_to name="Dirk Pranke">dpranke</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>398499</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-04 19:47:30 -0700</bug_when>
    <thetext>new-run-webkit-tests: doesn&apos;t wait for children if it gets a ctrl-c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>398500</commentid>
    <comment_count>1</comment_count>
      <attachid>92364</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-04 19:47:51 -0700</bug_when>
    <thetext>Created attachment 92364
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399852</commentid>
    <comment_count>2</comment_count>
      <attachid>92364</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-05-06 15:25:55 -0700</bug_when>
    <thetext>Comment on attachment 92364
Patch

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

&gt; Tools/Scripts/new-run-webkit-tests:59
&gt; +    finally:

Do we need to catch other exceptions?  E.g., if proc.wait() throws another error (e.g., an IO or OS error), it looks like we&apos;ll just silently ignore the error if we make it to sys.exit(proc.returncode).  Maybe that&apos;s not possible?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399868</commentid>
    <comment_count>3</comment_count>
      <attachid>92364</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-06 15:41:54 -0700</bug_when>
    <thetext>Comment on attachment 92364
Patch

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

&gt;&gt; Tools/Scripts/new-run-webkit-tests:59
&gt;&gt; +    finally:
&gt; 
&gt; Do we need to catch other exceptions?  E.g., if proc.wait() throws another error (e.g., an IO or OS error), it looks like we&apos;ll just silently ignore the error if we make it to sys.exit(proc.returncode).  Maybe that&apos;s not possible?

Hm. Good point. I should rework this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>402584</commentid>
    <comment_count>4</comment_count>
      <attachid>92364</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-05-11 20:16:47 -0700</bug_when>
    <thetext>Comment on attachment 92364
Patch

Sounds like dirk is gonna take another pass.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412374</commentid>
    <comment_count>5</comment_count>
      <attachid>95374</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-30 15:05:22 -0700</bug_when>
    <thetext>Created attachment 95374
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412375</commentid>
    <comment_count>6</comment_count>
      <attachid>95374</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-30 15:08:10 -0700</bug_when>
    <thetext>Comment on attachment 95374
Patch

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

Okay, reworked. Can haz another review, plz?

&gt; Tools/Scripts/new-run-webkit-tests:-57
&gt; -        sys.exit(signal.SIGINT + 128)

Note that we don&apos;t need or want this line, because the same logic exists the subprocess, and omitting this will help catch cases where the subprocess starts doing the wrong thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412773</commentid>
    <comment_count>7</comment_count>
      <attachid>95374</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-05-31 12:06:47 -0700</bug_when>
    <thetext>Comment on attachment 95374
Patch

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

&gt; Tools/Scripts/new-run-webkit-tests:59
&gt; +        proc.wait()

Is it possible for this to hang completely?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412866</commentid>
    <comment_count>8</comment_count>
      <attachid>95374</attachid>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-31 14:34:14 -0700</bug_when>
    <thetext>Comment on attachment 95374
Patch

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

&gt;&gt; Tools/Scripts/new-run-webkit-tests:59
&gt;&gt; +        proc.wait()
&gt; 
&gt; Is it possible for this to hang completely?

Good question (since that&apos;s why I put the fixme in). I haven&apos;t seen in in practice, and in theory, I wouldn&apos;t think so (since the subprocess also got a Keyboard interrupt and should be exiting), but I can&apos;t definitively say that it&apos;s not possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412869</commentid>
    <comment_count>9</comment_count>
      <attachid>95374</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-05-31 14:37:23 -0700</bug_when>
    <thetext>Comment on attachment 95374
Patch

Ok, let&apos;s try it.  I guess worst case scenario, the user will press ctrl+c again and both the subprocess and the main process will raise a KeyboardInterrupt exception, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412874</commentid>
    <comment_count>10</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2011-05-31 14:39:45 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (From update of attachment 95374 [details])
&gt; Ok, let&apos;s try it.  I guess worst case scenario, the user will press ctrl+c again and both the subprocess and the main process will raise a KeyboardInterrupt exception, right?

Yup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412925</commentid>
    <comment_count>11</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-31 15:25:37 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 95374:

editing/pasteboard/copy-standalone-image.html bug 61813 (authors: andrew@webkit.org and mitz@webkit.org)
The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412927</commentid>
    <comment_count>12</comment_count>
      <attachid>95374</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-31 15:27:07 -0700</bug_when>
    <thetext>Comment on attachment 95374
Patch

Clearing flags on attachment: 95374

Committed r87757: &lt;http://trac.webkit.org/changeset/87757&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>412928</commentid>
    <comment_count>13</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-05-31 15:27:13 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>92364</attachid>
            <date>2011-05-04 19:47:51 -0700</date>
            <delta_ts>2011-05-30 15:05:18 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60241-20110504194750.patch</filename>
            <type>text/plain</type>
            <size>1620</size>
            <attacher name="Dirk Pranke">dpranke</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODU2NjUKZGlmZiAtLWdpdCBhL1Rvb2xzL0No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ub29scy9TY3JpcHRzL25ldy1ydW4td2Via2l0LXRlc3RzCkBA
IC01MCw4ICs1MCwxNSBAQCBpZiBfX25hbWVfXyA9PSAnX19tYWluX18nOgogICAgICAgICBlbnZb
J1BZVEhPTlBBVEgnXSA9IHNjcmlwdF9kaXIKICAgICBtb2R1bGVfcGF0aCA9IG9zLnBhdGguam9p
bihzY3JpcHRfZGlyLCAnd2Via2l0cHknLCAnbGF5b3V0X3Rlc3RzJywgJ3J1bl93ZWJraXRfdGVz
dHMucHknKQogICAgIGNtZCA9IFtzeXMuZXhlY3V0YWJsZSwgbW9kdWxlX3BhdGhdICsgc3lzLmFy
Z3ZbMTpdCisgICAgcHJvYyA9IE5vbmUKICAgICB0cnk6Ci0gICAgICAgIHN5cy5leGl0KHN1YnBy
b2Nlc3MuY2FsbChjbWQsIGVudj1lbnYpKQorICAgICAgICBwcm9jID0gc3VicHJvY2Vzcy5Qb3Bl
bihjbWQsIGVudj1lbnYpCisgICAgICAgIHByb2Mud2FpdCgpCiAgICAgZXhjZXB0IEtleWJvYXJk
SW50ZXJydXB0OgotICAgICAgICAjIHRoaXMgbWlycm9ycyB3aGF0IHRoZSBzaGVsbCBub3JtYWxs
eSBkb2VzCi0gICAgICAgIHN5cy5leGl0KHNpZ25hbC5TSUdJTlQgKyAxMjgpCisgICAgICAgIHBh
c3MKKyAgICBmaW5hbGx5OgorICAgICAgICAjIFdlIG5lZWQgYSBzZWNvbmQgd2FpdCBpbiBvcmRl
ciB0byBtYWtlIHN1cmUgdGhlIHN1YnByb2Nlc3MgZXhpdHMgZnVsbHkuCisgICAgICAgICMgRklY
TUU6IEl0IHdvdWxkIGJlIG5pY2UgaWYgd2UgY291bGQgcHV0IGEgdGltZW91dCBvbiB0aGlzLgor
ICAgICAgICBpZiBwcm9jOgorICAgICAgICAgICAgcHJvYy53YWl0KCkKKyAgICAgICAgICAgIHN5
cy5leGl0KHByb2MucmV0dXJuY29kZSkK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>95374</attachid>
            <date>2011-05-30 15:05:22 -0700</date>
            <delta_ts>2011-05-31 15:27:07 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-60241-20110530150520.patch</filename>
            <type>text/plain</type>
            <size>1545</size>
            <attacher name="Dirk Pranke">dpranke</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODc2OTcKZGlmZiAtLWdpdCBhL1Rvb2xzL0NoYW5nZUxvZyBi
L1Rvb2xzL0NoYW5nZUxvZwppbmRleCAzNmU5ZDE0ZTEyN2M4MzZkMzcwNGQxMDAzMDY1ZjFiNmQ1
M2VlZDc0Li5lNmM1OWI3NjhkYjk1MmZjYTY0YjY1NzM0NmMwMTM0NDlhNGQ5ZTNkIDEwMDY0NAot
LS0gYS9Ub29scy9DaGFuZ2VMb2cKKysrIGIvVG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIg
QEAKKzIwMTEtMDUtMzAgIERpcmsgUHJhbmtlICA8ZHByYW5rZUBjaHJvbWl1bS5vcmc+CisKKyAg
ICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgbmV3LXJ1bi13ZWJr
aXQtdGVzdHM6IGRvZXNuJ3Qgd2FpdCBmb3IgY2hpbGRyZW4gaWYgaXQgZ2V0cyBhIGN0cmwtYwor
ICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NjAyNDEKKwor
ICAgICAgICAqIFNjcmlwdHMvbmV3LXJ1bi13ZWJraXQtdGVzdHM6CisKIDIwMTEtMDUtMzAgIENh
cmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29tPgogCiAgICAgICAgIFJldmll
d2VkIGJ5IE1hcnRpbiBSb2JpbnNvbi4KZGlmZiAtLWdpdCBhL1Rvb2xzL1NjcmlwdHMvbmV3LXJ1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ICAgICAgICMgRklYTUU6IEl0IHdvdWxkIGJlIG5pY2UgaWYgd2UgY291bGQgcHV0IGEgdGltZW91
dCBvbiB0aGlzLgorICAgICAgICBwcm9jLndhaXQoKQorICAgIHN5cy5leGl0KHByb2MucmV0dXJu
Y29kZSkK
</data>

          </attachment>
      

    </bug>

</bugzilla>