<?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>65712</bug_id>
          
          <creation_ts>2011-08-04 12:53:14 -0700</creation_ts>
          <short_desc>REGRESSION (91931) - Two LocalStorage threads started, thread unsafe operations can cause crash or other problems later.</short_desc>
          <delta_ts>2011-08-04 13:14:50 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Brady Eidson">beidson</reporter>
          <assigned_to name="Brady Eidson">beidson</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>446701</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-08-04 12:53:14 -0700</bug_when>
    <thetext>REGRESSION (91931) - Two LocalStorage threads started, thread unsafe operations can cause crash or other problems later.

This is as simple as a bool that&apos;s not set correctly before some potentially-thread-launching-operations begin.

Patch coming.

In radar as &lt;rdar://problem/9882581&gt; and &lt;rdar://problem/8186793&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446704</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-08-04 12:54:08 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; In radar as &lt;rdar://problem/9882581&gt; and &lt;rdar://problem/8186793&gt;

That&apos;s actually 9868015 instead of 8186793</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446706</commentid>
    <comment_count>2</comment_count>
      <attachid>102962</attachid>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-08-04 12:56:22 -0700</bug_when>
    <thetext>Created attachment 102962
Patch v1 - Set a bool before it&apos;s value will be needed, not after.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446708</commentid>
    <comment_count>3</comment_count>
      <attachid>102962</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-08-04 12:57:29 -0700</bug_when>
    <thetext>Comment on attachment 102962
Patch v1 - Set a bool before it&apos;s value will be needed, not after.

Any way to do a regression test on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446723</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-08-04 13:14:01 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 102962 [details])
&gt; Any way to do a regression test on this?

AFAIK it was seen precisely once in one of the local storage tests since I originally landed, so one could argue it&apos;s already &quot;covered&quot;

That said, it&apos;s been quite elusive to reproduce even testing under the browser.  It&apos;s only been seen a handful of times there.  Very racy.

I&apos;m open to ideas but don&apos;t think it&apos;s worth holding up landing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>446727</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2011-08-04 13:14:50 -0700</bug_when>
    <thetext>Landed in r92406</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>102962</attachid>
            <date>2011-08-04 12:56:22 -0700</date>
            <delta_ts>2011-08-04 12:57:29 -0700</delta_ts>
            <desc>Patch v1 - Set a bool before it&apos;s value will be needed, not after.</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1728</size>
            <attacher name="Brady Eidson">beidson</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDkyNDAyKQorKysgU291cmNlL1dlYkNvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDgtMDQgIEJyYWR5IEVp
ZHNvbiAgPGJlaWRzb25AYXBwbGUuY29tPgorCisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS85ODgy
NTgxPiwgPHJkYXI6Ly9wcm9ibGVtLzk4NjgwMTU+LCBhbmQgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTY1NzEyCisgICAgICAgIFJFR1JFU1NJT04gKDkxOTMxKSAtIFR3
byBMb2NhbFN0b3JhZ2UgdGhyZWFkcyBzdGFydGVkLCB0aHJlYWQgdW5zYWZlIG9wZXJhdGlvbnMg
Y2FuIGNhdXNlIGNyYXNoIG9yIG90aGVyIHByb2JsZW1zIGxhdGVyLgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogc3RvcmFnZS9TdG9yYWdlVHJhY2tl
ci5jcHA6CisgICAgICAgIChXZWJDb3JlOjpTdG9yYWdlVHJhY2tlcjo6aW50ZXJuYWxJbml0aWFs
aXplKTogU2V0IHRoZSAibmVlZHMgaW5pdGlhbGl6YXRpb24iIGZsYWcgYmVmb3JlIGRvaW5nIGEg
CisgICAgICAgICAgd2hvbGUgYnVuY2ggb2Ygc3R1ZmYgdGhhdCBtaWdodCBuZWVkIHRvIGNoZWNr
IGl0LgorCiAyMDExLTA4LTA0ICBKb2NoZW4gRWlzaW5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YXJ0KCk7ICAKICAgICBz
dG9yYWdlVHJhY2tlci0+aW1wb3J0T3JpZ2luSWRlbnRpZmllcnMoKTsKLSAgICAKLSAgICBtX25l
ZWRzSW5pdGlhbGl6YXRpb24gPSBmYWxzZTsKIH0KIAogU3RvcmFnZVRyYWNrZXImIFN0b3JhZ2VU
cmFja2VyOjp0cmFja2VyKCkK
</data>
<flag name="review"
          id="98378"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="98379"
          type_id="3"
          status="-"
          setter="beidson"
    />
          </attachment>
      

    </bug>

</bugzilla>