<?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>120370</bug_id>
          
          <creation_ts>2013-08-27 11:45:39 -0700</creation_ts>
          <short_desc>AppleWin port should delete sem lock files in /dev/shm during cleanup tasks for NRWT</short_desc>
          <delta_ts>2013-08-27 12:41:39 -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="Roger Fong">roger_fong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dpranke</cc>
    
    <cc>glenn</cc>
    
    <cc>lforschler</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>921606</commentid>
    <comment_count>0</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-27 11:45:39 -0700</bug_when>
    <thetext>With our current version of cygwin and python there is a bug where the sem lock files do not get removed from /dev/shm.
/dev/shm eventually fills up with tons of sem lock files and we issues where we get &quot;OSError raised: [Errno 17] File exists&quot; due to file collisions.

However, installing other versions of cygwin/python would lead to tons of other issues which we&apos;ve previously discovered so we just need to work around this issue here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921610</commentid>
    <comment_count>1</comment_count>
      <attachid>209789</attachid>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-27 11:55:19 -0700</bug_when>
    <thetext>Created attachment 209789
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921611</commentid>
    <comment_count>2</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-27 11:55:39 -0700</bug_when>
    <thetext>tested this fix locally on a bot that had this issue, and it did the trick</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921612</commentid>
    <comment_count>3</comment_count>
      <attachid>209789</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2013-08-27 11:58:11 -0700</bug_when>
    <thetext>Comment on attachment 209789
patch

This looks great!  Does this cleanup code get called at startup of the test harness, or only when ending tests?

If it doesn&apos;t, maybe we could add a belt-and-suspenders step to kill any locks when the test rig is first started?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921618</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2013-08-27 12:14:58 -0700</bug_when>
    <thetext>cleanup_test_run() does not get called at startup. setup_test_run() (right above in the code) does :).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921626</commentid>
    <comment_count>5</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-27 12:36:08 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; cleanup_test_run() does not get called at startup. setup_test_run() (right above in the code) does :).

O cool, I&apos;ll move it there. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>921627</commentid>
    <comment_count>6</comment_count>
    <who name="Roger Fong">roger_fong</who>
    <bug_when>2013-08-27 12:41:39 -0700</bug_when>
    <thetext>&lt;rdar://problem/14621844&gt;

Committed: http://trac.webkit.org/changeset/154704</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>209789</attachid>
            <date>2013-08-27 11:55:19 -0700</date>
            <delta_ts>2013-08-27 11:58:10 -0700</delta_ts>
            <desc>patch</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>1516</size>
            <attacher name="Roger Fong">roger_fong</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDE1NDY1MykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDEzLTA4LTI2ICBSb2dlciBGb25nICA8cm9nZXJfZm9uZ0BhcHBsZS5jb20+
CisKKyAgICAgICAgTlJXVCBvbiBBcHBsZVdpbiBwb3J0IHNob3VsZCBkZWxldGUgc2VtYXBob3Jl
IGxvY2sgZmlsZXMgZHVyaW5nIGNsZWFudXAgdGFza3MuCisgICAgICAgIGh0dHBzOi8vYnVncy53
ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xMjAzNzAuCisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBTY3JpcHRzL3dlYmtpdHB5L3BvcnQvd2luLnB5
OgorICAgICAgICAoV2luUG9ydC5kZWxldGVfc2VtX2xvY2tzKToKKwogMjAxMy0wOC0yNiAgQWxl
eGV5IFByb3NrdXJ5YWtvdiAgPGFwQGFwcGxlLmNvbT4KIAogICAgICAgICBXZWJLaXRUZXN0UnVu
bmVyIG5lZWRzIHRvIHByb3RlY3QgdGhlIHVzZXIncyBwYXN0ZWJvYXJkIGNvbnRlbnRzIHdoaWxl
IHJ1bm5pbmcKSW5kZXg6IFRvb2xzL1NjcmlwdHMvd2Via2l0cHkvcG9ydC93aW4ucHkKPT09PT09
PT09PT09P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sb2c9VHJ1ZSk6Cg==
</data>
<flag name="review"
          id="231844"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
          </attachment>
      

    </bug>

</bugzilla>