<?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>225126</bug_id>
          
          <creation_ts>2021-04-27 16:11:37 -0700</creation_ts>
          <short_desc>[Stress Tests EWS] WPT tests failing in `run-layout-tests-in-guard-malloc-stress-mode`</short_desc>
          <delta_ts>2021-04-28 17:05:01 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=224358</see_also>
          <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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jbedard</cc>
    
    <cc>rego</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1754827</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-04-27 16:11:37 -0700</bug_when>
    <thetext>It appears that whenever stress tests EWS runs the `run-layout-tests-in-guard-malloc-stress-mode ` step for tests in the imported/w3c/web-platform-tests directory, the wptwk server isn&apos;t started, which causes the tests to fail

Example build showing a WPT test passing in the `run-layout-tests-in-stress-mode` step, but failing in in the `run-layout-tests-in-guard-malloc-stress-mode` step:
https://ews-build.webkit.org/#/builders/62/builds/1853

Test result showing the test failing with a render tree dump for about:blank: 
https://ews-build.s3-us-west-2.amazonaws.com/macOS-Release-WK2-Stress-Tests-EWS/r427118-1853-guard-malloc/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1754828</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-27 16:12:24 -0700</bug_when>
    <thetext>&lt;rdar://problem/77236114&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1754848</commentid>
    <comment_count>2</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-04-27 16:50:47 -0700</bug_when>
    <thetext>The `run-layout-tests-in-stress-mode` test run is indeed starting wptwk, as seen in the logs (and the fact that the test passes in that mode)
https://ews-build.webkit.org/#/builders/62/builds/1853/steps/14/logs/stdio

The only difference for the `run-layout-tests-in-guard-malloc-stress-mode ` step is the addition of `--guard-malloc`, so maybe something is broken in `run-webkit-tests` itself?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1754858</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-04-27 17:04:46 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #2)
&gt; The `run-layout-tests-in-stress-mode` test run is indeed starting wptwk, as
&gt; seen in the logs (and the fact that the test passes in that mode)
&gt; https://ews-build.webkit.org/#/builders/62/builds/1853/steps/14/logs/stdio
&gt; 
&gt; The only difference for the `run-layout-tests-in-guard-malloc-stress-mode `
&gt; step is the addition of `--guard-malloc`, so maybe something is broken in
&gt; `run-webkit-tests` itself?

Very strongly suspect that is the case. It&apos;s also probably a very easy fix. I&apos;ll take a look tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755106</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-04-28 11:54:37 -0700</bug_when>
    <thetext>I&apos;ve seen regular layout test step reproducing the same issue too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755229</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-04-28 16:40:55 -0700</bug_when>
    <thetext>This seems to be about guard-malloc specifically, not a general problem with all invocations of run-webkit-tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755238</commentid>
    <comment_count>6</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-04-28 17:05:01 -0700</bug_when>
    <thetext>We are starting the WPT server in guard-malloc mode, seems like the web-platforms tests may be genuinely timing out.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>