<?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>200644</bug_id>
          
          <creation_ts>2019-08-12 14:43:12 -0700</creation_ts>
          <short_desc>[REGRESSION] run-webkit-tests: No PID defined when searching for simulator crashlogs</short_desc>
          <delta_ts>2019-08-12 16:45:17 -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>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="Jonathan Bedard">jbedard</reporter>
          <assigned_to name="Jonathan Bedard">jbedard</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fujii</cc>
    
    <cc>glenn</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1560561</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-08-12 14:43:12 -0700</bug_when>
    <thetext>This is a regression from &lt;https://trac.webkit.org/changeset/245544/webkit&gt;. The SimulatorProcess inherits from ServerProcess, so it also needs to define _system_pid. We didn&apos;t notice this before because you need the same process to crash multiple times in a given test run for this to actually be an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560563</commentid>
    <comment_count>1</comment_count>
      <attachid>376096</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-08-12 14:55:25 -0700</bug_when>
    <thetext>Created attachment 376096
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560574</commentid>
    <comment_count>2</comment_count>
      <attachid>376096</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-08-12 15:29:27 -0700</bug_when>
    <thetext>Comment on attachment 376096
Patch

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

&gt; Tools/Scripts/webkitpy/port/simulator_process.py:97
&gt; +        self._system_pid = self._pid

Where/how is this _system_pid used?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560575</commentid>
    <comment_count>3</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2019-08-12 15:30:59 -0700</bug_when>
    <thetext>&gt; Where/how is this _system_pid used?
Just noticed your comment &apos;SimulatorProcess inherits from ServerProcess&apos;.

That makes sense. Can you please copy/paste the exception which this patch is fixing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560581</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2019-08-12 15:54:26 -0700</bug_when>
    <thetext>Thanks. LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560587</commentid>
    <comment_count>5</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2019-08-12 16:17:26 -0700</bug_when>
    <thetext>(In reply to Aakash Jain from comment #3)
&gt; &gt; Where/how is this _system_pid used?
&gt; Just noticed your comment &apos;SimulatorProcess inherits from ServerProcess&apos;.
&gt; 
&gt; That makes sense. Can you please copy/paste the exception which this patch
&gt; is fixing.

Not really an exception (that&apos;s what took us so long to notice the problem), &lt;https://trac.webkit.org/changeset/245544/webkit&gt; does a good job of showing how we use system_pid. Basically, we&apos;re using it to piece together crashlogs. If it&apos;s not defined, we search by process name and pull the first crash log that matches the process name. Nothing in Buildbot shows the failure at the moment, we need a configuration that&apos;s exotic enough to cause multiple crashes in a single run, I can&apos;t find any examples of that on build.webkit.org.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560595</commentid>
    <comment_count>6</comment_count>
      <attachid>376096</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-12 16:44:01 -0700</bug_when>
    <thetext>Comment on attachment 376096
Patch

Clearing flags on attachment: 376096

Committed r248583: &lt;https://trac.webkit.org/changeset/248583&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560596</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-08-12 16:44:03 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560597</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-12 16:45:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/54233104&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>376096</attachid>
            <date>2019-08-12 14:55:25 -0700</date>
            <delta_ts>2019-08-12 16:44:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-200644-20190812145524.patch</filename>
            <type>text/plain</type>
            <size>1425</size>
            <attacher name="Jonathan Bedard">jbedard</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI0ODU0OSkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMD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xsIGJlIGFjY2VwdGVkIGZvciBzdGRpbiwg
c3Rkb3V0IGFuZCBzdGRlcnIgaW4gdGhhdCBvcmRlci4KICAgICAgICAgc2VsZi5fdGFyZ2V0X2hv
c3QubGlzdGVuaW5nX3NvY2tldC5saXN0ZW4oMykKICAgICAgICAgc2VsZi5fcGlkID0gc2VsZi5f
dGFyZ2V0X2hvc3QubGF1bmNoX2FwcChzZWxmLl9idW5kbGVfaWQsIHNlbGYuX2NtZFsxOl0sIGVu
dj1zZWxmLl9lbnYpCisgICAgICAgIHNlbGYuX3N5c3RlbV9waWQgPSBzZWxmLl9waWQKIAogICAg
ICAgICB3aXRoIFRpbWVvdXQoMTUsIFJ1bnRpbWVFcnJvcignVGltZWQgb3V0IHdhaXRpbmcgZm9y
IHBpZCB7fSB0byBjb25uZWN0IGF0IHBvcnQge30nLmZvcm1hdChzZWxmLl9waWQsIHNlbGYuX3Rh
cmdldF9ob3N0Lmxpc3RlbmluZ19wb3J0KCkpKSk6CiAgICAgICAgICAgICBzdGRpbiA9IE5vbmUK
</data>

          </attachment>
      

    </bug>

</bugzilla>