<?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>194816</bug_id>
          
          <creation_ts>2019-02-19 05:31:34 -0800</creation_ts>
          <short_desc>test262-runner ends with SIGPIPE signal</short_desc>
          <delta_ts>2019-11-28 08:55:16 -0800</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>WebKit 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="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ews-feeder</cc>
    
    <cc>keith_miller</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>msaboff</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1507653</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2019-02-19 05:31:34 -0800</bug_when>
    <thetext>In certain environments when running `test262-runner` the program ends abruptly with a SIGPIPE signal. Example:

```
$ Tools/Scripts/test262-runner --release

Settings:
Test262 Dir: JSTests/test262
JSC: WebKitBuild/Release/bin/jsc
Child Processes: 256
DYLD_FRAMEWORK_PATH: /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/bin
Config file: JSTests/test262/config.yaml
Expectations file: JSTests/test262/expectations.yaml
---

$ echo $?
141
```

This is inconvenient because `test262-runner` ends without printing out tests summary results.

By certain environments I mean the issue always happens in one specific host, while I have no issues in a different host.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507654</commentid>
    <comment_count>1</comment_count>
      <attachid>362382</attachid>
    <who name="Diego Pino">dpino</who>
    <bug_when>2019-02-19 05:41:03 -0800</bug_when>
    <thetext>Created attachment 362382
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507655</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2019-02-19 05:54:01 -0800</bug_when>
    <thetext>Explanation of the patch.

I debugged the issue using &apos;Carp::Trace&apos;. I captured SIGPIPE signals and printed out a trace. I got the following output:

```
Test262::Runner::main [3]
        scalar - new stash
        /home/slave/webkitgtk/gtk-linux-64-release/build/Tools/Scripts/test262/Runner.pm line 122
Test262::Runner::(eval) [2]
        scalar - no new stash
        /home/slave/webkitgtk/gtk-linux-64-release/build/Tools/Scripts/test262/Runner.pm line 416
Test262::Runner::__ANON__ [1]
        scalar - new stash
        /home/slave/webkitgtk/gtk-linux-64-release/build/Tools/Scripts/test262/Runner.pm line 416
```

This pattern occurred several times in the output.

IIRC, a SIGPIPE happens when attempting to write on a closed pipe. In the case of the suspecting line (416), I think what is happening if that child is trying to write on a closed socket (the parent was closed right before that loop). In any case, it seems to me this block of code is redundant, so I removed it.

After applying the patch, `test262-runner --release` runs just fine (exit status is 0).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1593966</commentid>
    <comment_count>3</comment_count>
      <attachid>384441</attachid>
    <who name="Diego Pino">dpino</who>
    <bug_when>2019-11-28 00:44:56 -0800</bug_when>
    <thetext>Created attachment 384441
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1593996</commentid>
    <comment_count>4</comment_count>
      <attachid>384441</attachid>
    <who name="Diego Pino">dpino</who>
    <bug_when>2019-11-28 03:27:00 -0800</bug_when>
    <thetext>Comment on attachment 384441
Patch

Carlos López reviewed the patch and granted r+ on private conversation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1593997</commentid>
    <comment_count>5</comment_count>
      <attachid>384441</attachid>
    <who name="EWS">ews-feeder</who>
    <bug_when>2019-11-28 03:27:30 -0800</bug_when>
    <thetext>Comment on attachment 384441
Patch

Rejecting attachment 384441 from review queue.

dpino@igalia.com does not have reviewer permissions according to https://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594063</commentid>
    <comment_count>6</comment_count>
      <attachid>384441</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-28 08:54:20 -0800</bug_when>
    <thetext>Comment on attachment 384441
Patch

Clearing flags on attachment: 384441

Committed r252930: &lt;https://trac.webkit.org/changeset/252930&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594064</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-11-28 08:54:21 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594065</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-11-28 08:55:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/57521420&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>362382</attachid>
            <date>2019-02-19 05:41:03 -0800</date>
            <delta_ts>2019-11-28 00:44:50 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-194816-20190219134102.patch</filename>
            <type>text/plain</type>
            <size>1223</size>
            <attacher name="Diego Pino">dpino</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQxNTkwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggNjYxMTVhYmRlNDU1ODAxOWQ2ZjhkMzQzNDc0MmJjM2Jk
MzAwNTZhZC4uNWM5MjVjNDMzYWY1MTVlNzZhNWU3ZDZlMWJlNzYwMDRmYmQzY2U3MSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE5LTAyLTE5ICBEaWVnbyBQaW5vIEdhcmNpYSAgPGRwaW5vQGlnYWxpYS5jb20+CisK
KyAgICAgICAgdGVzdDI2Mi1ydW5uZXIgZW5kcyB3aXRoIFNJR1BJUEUgc2lnbmFsCisgICAgICAg
IGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xOTQ4MTYKKworICAgICAg
ICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAqIFNjcmlwdHMvdGVzdDI2
Mi9SdW5uZXIucG06CisgICAgICAgIChtYWluKToKKwogMjAxOS0wMi0xMCAgRGFyaW4gQWRsZXIg
IDxkYXJpbkBhcHBsZS5jb20+CiAKICAgICAgICAgUmVwbGFjZSBtb3JlIHVzZXMgb2YgU3RyaW5n
Ojpmb3JtYXQgd2l0aCBTdHJpbmdDb25jYXRlbmF0ZSAobW9zdGx5IG5vbi1BcHBsZSBwbGF0Zm9y
bS1zcGVjaWZpYyBjYXNlcykKZGlmZiAtLWdpdCBhL1Rvb2xzL1NjcmlwdHMvdGVzdDI2Mi9SdW5u
ZXIucG0gYi9Ub29scy9TY3JpcHRzL3Rlc3QyNjIvUnVubmVyLnBtCmluZGV4IGU5NDhhNDQwYzNj
ZjkyODIyMWE5ZTA1YzQyZWE5Zjc3ZDk4Yjc1MmEuLjM3NzdkMjYyNTRmODRlNDAxNzZjZTY1YmU2
MmExYjI3YTZjOWE5NjggMTAwNzU1Ci0tLSBhL1Rvb2xzL1NjcmlwdHMvdGVzdDI2Mi9SdW5uZXIu
cG0KKysrIGIvVG9vbHMvU2NyaXB0cy90ZXN0MjYyL1J1bm5lci5wbQpAQCAtNDAxLDE0ICs0MDEs
NiBAQCBzdWIgbWFpbiB7CiAgICAgICAgICRfLT5jbG9zZSgpOwogICAgIH0KIAotICAgIG15ICRj
b3VudCA9IDA7Ci0gICAgZm9yIG15ICRwYXJlbnQgKEBwYXJlbnRzKSB7Ci0gICAgICAgIG15ICRj
aGlsZCA9ICRjaGlsZHJlblskY291bnRdOwotICAgICAgICBwcmludCAkY2hpbGQgIkVORFxuIjsK
LSAgICAgICAgJHBhcmVudC0+Y2xvc2UoKTsKLSAgICAgICAgJGNvdW50Kys7Ci0gICAgfQotCiAg
ICAgJHBtLT53YWl0X2FsbF9jaGlsZHJlbjsKIAogICAgICMgUmVhZCByZXN1bHRzIGZyb20gZmls
ZSBpbnRvIEByZXN1bHRzIGFuZCBjbG9zZQo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>384441</attachid>
            <date>2019-11-28 00:44:56 -0800</date>
            <delta_ts>2019-11-28 08:54:20 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-194816-20191128094455.patch</filename>
            <type>text/plain</type>
            <size>1167</size>
            <attacher name="Diego Pino">dpino</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjUyOTE2CmRpZmYgLS1naXQgYS9Ub29scy9D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ZXIucG0KQEAgLTQwMSwxNCArNDAx
LDYgQEAgc3ViIG1haW4gewogICAgICAgICAkXy0+Y2xvc2UoKTsKICAgICB9CiAKLSAgICBteSAk
Y291bnQgPSAwOwotICAgIGZvciBteSAkcGFyZW50IChAcGFyZW50cykgewotICAgICAgICBteSAk
Y2hpbGQgPSAkY2hpbGRyZW5bJGNvdW50XTsKLSAgICAgICAgcHJpbnQgJGNoaWxkICJFTkRcbiI7
Ci0gICAgICAgICRwYXJlbnQtPmNsb3NlKCk7Ci0gICAgICAgICRjb3VudCsrOwotICAgIH0KLQog
ICAgICRwbS0+d2FpdF9hbGxfY2hpbGRyZW47CiAKICAgICAjIFJlYWQgcmVzdWx0cyBmcm9tIGZp
bGUgaW50byBAcmVzdWx0cyBhbmQgY2xvc2UK
</data>

          </attachment>
      

    </bug>

</bugzilla>