<?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>158639</bug_id>
          
          <creation_ts>2016-06-10 16:24:41 -0700</creation_ts>
          <short_desc>[Yosemite Release WK2] imported/blink/storage/indexeddb/blob-delete-objectstore-db.html is a flaky timeout</short_desc>
          <delta_ts>2016-07-12 10:07: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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=158640</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=159677</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>154968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1201429</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-06-10 16:24:41 -0700</bug_when>
    <thetext>imported/blink/storage/indexeddb/blob-delete-objectstore-db.html is a flaky timeout

Most recent timeout:
&lt;https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20(Tests)/builds/15230.

Flakiness dashboard:
&lt;https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=imported%2Fblink%2Fstorage%2Findexeddb%2Fblob-delete-objectstore-db.html&gt;

--- /Volumes/Data/slave/yosemite-release-tests-wk2/build/layout-test-results/imported/blink/storage/indexeddb/blob-delete-objectstore-db-expected.txt
+++ /Volumes/Data/slave/yosemite-release-tests-wk2/build/layout-test-results/imported/blink/storage/indexeddb/blob-delete-objectstore-db-actual.txt
@@ -1,30 +1,2 @@
-Test that deleting an object store and a database containing blobs doesn&apos;t crash.
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
-
-
-dbname = &quot;blob-delete-objectstore-db.html&quot;
-indexedDB.deleteDatabase(dbname)
-indexedDB.open(dbname, 1)
-store0 = db.createObjectStore(&apos;store0&apos;)
-store1 = db.createObjectStore(&apos;store1&apos;)
-store0.put(blobA, key)
-db.close()
-
-reopen():
-request = indexedDB.open(dbname, 2)
-
-deleteObjectStore():
-db.deleteObjectStore(&apos;store0&apos;)
-
-didDeleteObjectStore():
-trans = db.transaction(&apos;store1&apos;, &apos;readwrite&apos;)
-store1 = trans.objectStore(&apos;store1&apos;)
-store1.put(blobB, key)
-db.close()
-request = indexedDB.deleteDatabase(dbname)
-Database deleted.
-PASS successfullyParsed is true
-
-TEST COMPLETE
-</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1201430</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2016-06-10 16:29:02 -0700</bug_when>
    <thetext>Per the flakiness dashboard, this was the first timeout @ r201541, but I&apos;m not sure the change is directly related.

https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20(Tests)/builds/14945</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1207718</commentid>
    <comment_count>2</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-07-04 14:47:40 -0700</bug_when>
    <thetext>This has been mostly fine for QUITE awhile on the Mac ports where it&apos;s expected to be fine.

The LONE exception is a crash on Yosemite debug wk2 a few builds ago.

Trying to get the stack trace from the results dashboard is not working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1207719</commentid>
    <comment_count>3</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-07-04 14:51:23 -0700</bug_when>
    <thetext>NM, here:

https://build.webkit.org/results/Apple Yosemite Debug WK2 (Tests)/r202806 (13221)/imported/blink/storage/indexeddb/blob-delete-objectstore-db-crash-log.txt

Thread 2 Crashed:: IndexedDatabase Server
0   com.apple.JavaScriptCore      	0x000000011258acd7 WTFCrash + 39
1   com.apple.WebCore             	0x0000000116d0be4c WebCore::TimerBase::stop() + 76
2   com.apple.WebCore             	0x0000000116d0bda9 WebCore::TimerBase::~TimerBase() + 41
3   com.apple.WebCore             	0x0000000114906a91 WebCore::Timer::~Timer() + 65
4   com.apple.WebCore             	0x0000000114906a25 WebCore::Timer::~Timer() + 21
5   com.apple.WebCore             	0x0000000116d2f51e WebCore::IDBServer::UniqueIDBDatabase::~UniqueIDBDatabase() + 1038
6   com.apple.WebCore             	0x0000000116d2fa45 WebCore::IDBServer::UniqueIDBDatabase::~UniqueIDBDatabase() + 21
7   com.apple.WebCore             	0x00000001156bf039 WTF::ThreadSafeRefCounted&lt;WebCore::IDBServer::UniqueIDBDatabase&gt;::deref() + 73
8   com.apple.WebCore             	0x00000001156befe0 WTF::Ref&lt;WebCore::IDBServer::UniqueIDBDatabase&gt;::~Ref() + 48
9   com.apple.WebCore             	0x00000001156bbda5 WTF::Ref&lt;WebCore::IDBServer::UniqueIDBDatabase&gt;::~Ref() + 21
10  com.apple.WebCore             	0x0000000116d3ba84 WebCore::IDBServer::UniqueIDBDatabase::executeNextDatabaseTask() + 660
11  com.apple.WebCore             	0x0000000116d71243 void WTF::callMemberFunctionForCrossThreadTaskImpl&lt;WebCore::IDBServer::UniqueIDBDatabase, void (WebCore::IDBServer::UniqueIDBDatabase::*)(), std::__1::tuple&lt;&gt; &gt;(WebCore::IDBServer::UniqueIDBDatabase*, void (WebCore::IDBServer::UniqueIDBDatabase::*)(), std::__1::tuple&lt;&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long&gt;) + 131
12  com.apple.WebCore             	0x0000000116d71199 void WTF::callMemberFunctionForCrossThreadTask&lt;WebCore::IDBServer::UniqueIDBDatabase, void (WebCore::IDBServer::UniqueIDBDatabase::*)(), std::__1::tuple&lt;&gt;, std::__1::integer_sequence&lt;unsigned long&gt; &gt;(WebCore::IDBServer::UniqueIDBDatabase*, void (WebCore::IDBServer::UniqueIDBDatabase::*)(), std::__1::tuple&lt;&gt;&amp;&amp;) + 73
13  com.apple.WebCore             	0x0000000116d71140 WTF::CrossThreadTask WTF::createCrossThreadTask&lt;WebCore::IDBServer::UniqueIDBDatabase&gt;(WebCore::IDBServer::UniqueIDBDatabase&amp;, void (WebCore::IDBServer::UniqueIDBDatabase::*)())::&apos;lambda&apos;()::operator()() + 80
14  com.apple.WebCore             	0x0000000116d710bc WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WTF::CrossThreadTask WTF::createCrossThreadTask&lt;WebCore::IDBServer::UniqueIDBDatabase&gt;(WebCore::IDBServer::UniqueIDBDatabase&amp;, void (WebCore::IDBServer::UniqueIDBDatabase::*)())::&apos;lambda&apos;()&gt;::call() + 28
15  com.apple.WebCore             	0x0000000114920e23 WTF::Function&lt;void ()&gt;::operator()() const + 99
16  com.apple.WebCore             	0x000000011564e535 WTF::CrossThreadTask::performTask() + 21
17  com.apple.WebCore             	0x00000001156b9e7e WebCore::IDBServer::IDBServer::databaseRunLoop() + 174
18  com.apple.WebCore             	0x00000001156b7934 WebCore::IDBServer::IDBServer::databaseThreadEntry(void*) + 84
19  com.apple.JavaScriptCore      	0x00000001125f3c39 WTF::createThread(void (*)(void*), void*, char const*)::$_0::operator()() const + 25
20  com.apple.JavaScriptCore      	0x00000001125f3c0d void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&gt;(WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&amp;&amp;) + 45
21  com.apple.JavaScriptCore      	0x00000001125f3bac std::__1::__function::__func&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0, std::__1::allocator&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&gt;, void ()&gt;::operator()() + 44
22  com.apple.JavaScriptCore      	0x0000000111c2b48a std::__1::function&lt;void ()&gt;::operator()() const + 26
23  com.apple.JavaScriptCore      	0x00000001125f280e WTF::threadEntryPoint(void*) + 158
24  com.apple.JavaScriptCore      	0x00000001125f42b1 WTF::wtfThreadEntryPoint(void*) + 289
25  libsystem_pthread.dylib       	0x00007fff87cbb05a _pthread_body + 131
26  libsystem_pthread.dylib       	0x00007fff87cbafd7 _pthread_start + 176
27  libsystem_pthread.dylib       	0x00007fff87cb83ed thread_start + 13

The assert is *probably*:
    ASSERT(canAccessThreadLocalDataForThread(m_thread));

Which sucks, but is also likely a different issue than the flakiness previously seen here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1210063</commentid>
    <comment_count>4</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-07-12 10:06:07 -0700</bug_when>
    <thetext>This is not reproducing any longer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1210065</commentid>
    <comment_count>5</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2016-07-12 10:07:27 -0700</bug_when>
    <thetext>Filed https://bugs.webkit.org/show_bug.cgi?id=159677 for the UniqueIDBDatabase being torn down on the wrong thread.

Closing this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>