<?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>63624</bug_id>
          
          <creation_ts>2011-06-29 06:58:59 -0700</creation_ts>
          <short_desc>[webkitpy] Executive.running_pids() sometimes doesn&apos;t correctly process &quot;ps&quot; output</short_desc>
          <delta_ts>2011-06-29 08:32:32 -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>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="Philippe Normand">pnormand</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ossy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>429574</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-06-29 06:58:59 -0700</bug_when>
    <thetext>$ ps -eo pid,comm
  PID COMMAND
    1 init
 1985 dbus-daemon
 2128 dbus-daemon
 2733 rsyslogd
19049 dbus-daemon
19128 dbus-daemon

^ See the leading white space? For those lines the pid won&apos;t be added to the list because:


&gt;&gt;&gt; &quot; 1985 dbus-daemon&quot;.split(&apos; &apos;, 1)
[&apos;&apos;, &apos;1985 dbus-daemon&apos;]

So line 308 of executive.py will raise a ValueError because pid=&quot;&quot;.

I&apos;ll work on a patch for this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429577</commentid>
    <comment_count>1</comment_count>
      <attachid>99085</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-06-29 07:03:33 -0700</bug_when>
    <thetext>Created attachment 99085
proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429578</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-06-29 07:04:15 -0700</bug_when>
    <thetext>BTW this issue showed up in GTK bots but I think it&apos;s not specific to them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429579</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-06-29 07:05:46 -0700</bug_when>
    <thetext>The test-webkipy failure:

======================================================================
FAIL: test_running_pids (webkitpy.common.system.executive_unittest.ExecutiveTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/var/lib/buildbot/build/gtk-linux-32-release/build/Tools/Scripts/webkitpy/common/system/executive_unittest.py&quot;, line 209, in test_running_pids
    self.assertTrue(os.getpid() in pids)
AssertionError

----------------------------------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429580</commentid>
    <comment_count>4</comment_count>
      <attachid>99085</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2011-06-29 07:10:57 -0700</bug_when>
    <thetext>Comment on attachment 99085
proposed patch

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

&gt; Tools/Scripts/webkitpy/common/system/executive.py:306
&gt; +                # in some cases the line can contain one or more

in -&gt; In</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429588</commentid>
    <comment_count>5</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2011-06-29 07:19:17 -0700</bug_when>
    <thetext>Committed r90016: &lt;http://trac.webkit.org/changeset/90016&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429624</commentid>
    <comment_count>6</comment_count>
      <attachid>99085</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-06-29 08:32:06 -0700</bug_when>
    <thetext>Comment on attachment 99085
proposed patch

Thanks!  You guys are awesome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>429626</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-06-29 08:32:32 -0700</bug_when>
    <thetext>*** Bug 63619 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>99085</attachid>
            <date>2011-06-29 07:03:33 -0700</date>
            <delta_ts>2011-06-29 08:32:06 -0700</delta_ts>
            <desc>proposed patch</desc>
            <filename>proposed-patch.patch</filename>
            <type>text/plain</type>
            <size>1868</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">RnJvbSBmYWRjMjYyY2U4MGY5N2RhZThjYWNmYjk3MGMxODI3MDhjNWFlMjYzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwZSBOb3JtYW5kIDxwbm9ybWFuZEBpZ2FsaWEuY29t
PgpEYXRlOiBXZWQsIDI5IEp1biAyMDExIDE2OjA1OjI2ICswMjAwClN1YmplY3Q6IFtQQVRDSF0g
cHJvcG9zZWQgcGF0Y2gKCi0tLQogVG9vbHMvQ2hhbmdlTG9nICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICB8ICAgMTEgKysrKysrKysrKysKIFRvb2xzL1NjcmlwdHMvd2Via2l0cHkv
Y29tbW9uL3N5c3RlbS9leGVjdXRpdmUucHkgfCAgICA0ICsrKy0KIDIgZmlsZXMgY2hhbmdlZCwg
MTQgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9Ub29scy9DaGFu
Z2VMb2cgYi9Ub29scy9D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vU2NyaXB0cy93ZWJraXRweS9jb21tb24vc3lzdGVtL2V4ZWN1dGl2ZS5w
eQorKysgYi9Ub29scy9TY3JpcHRzL3dlYmtpdHB5L2NvbW1vbi9zeXN0ZW0vZXhlY3V0aXZlLnB5
CkBAIC0zMDMsNyArMzAzLDkgQEAgY2xhc3MgRXhlY3V0aXZlKG9iamVjdCk6CiAgICAgICAgIHN0
ZG91dCwgXyA9IHBzX3Byb2Nlc3MuY29tbXVuaWNhdGUoKQogICAgICAgICBmb3IgbGluZSBpbiBz
dGRvdXQuc3BsaXRsaW5lcygpOgogICAgICAgICAgICAgdHJ5OgotICAgICAgICAgICAgICAgIHBp
ZCwgcHJvY2Vzc19uYW1lID0gbGluZS5zcGxpdCgnICcsIDEpCisgICAgICAgICAgICAgICAgIyBp
biBzb21lIGNhc2VzIHRoZSBsaW5lIGNhbiBjb250YWluIG9uZSBvciBtb3JlCisgICAgICAgICAg
ICAgICAgIyBsZWFkaW5nIHdoaXRlLXNwYWNlcywgc28gc3RyaXAgaXQgYmVmb3JlIHNwbGl0Lgor
ICAgICAgICAgICAgICAgIHBpZCwgcHJvY2Vzc19uYW1lID0gbGluZS5zdHJpcCgpLnNwbGl0KCcg
JywgMSkKICAgICAgICAgICAgICAgICBpZiBwcm9jZXNzX25hbWVfZmlsdGVyKHByb2Nlc3NfbmFt
ZSk6CiAgICAgICAgICAgICAgICAgICAgIHJ1bm5pbmdfcGlkcy5hcHBlbmQoaW50KHBpZCkpCiAg
ICAgICAgICAgICBleGNlcHQgVmFsdWVFcnJvciwgZToKLS0gCjEuNy41LjQ=
</data>
<flag name="review"
          id="93490"
          type_id="1"
          status="+"
          setter="mrobinson"
    />
          </attachment>
      

    </bug>

</bugzilla>