<?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>187269</bug_id>
          
          <creation_ts>2018-07-02 14:35:25 -0700</creation_ts>
          <short_desc>ASSERT(m_state != DONE) on imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort.html</short_desc>
          <delta_ts>2018-08-07 16:35:51 -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>NEW</bug_status>
          <resolution></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="Dawei Fenton (:realdawei)">realdawei</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>ryanhaddad</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1438637</commentid>
    <comment_count>0</comment_count>
    <who name="Dawei Fenton (:realdawei)">realdawei</who>
    <bug_when>2018-07-02 14:35:25 -0700</bug_when>
    <thetext>Test imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort.html crashes frequently on iOS Simulator Debug Wk2

Flakiness Dashboard:
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=imported%2Fw3c%2Fweb-platform-tests%2FFileAPI%2Freading-data-section%2Ffilereader_abort.html

Curiously enough the crash log reports CRASHING TEST as &quot;imported/mozilla/svg/smil/style/anim-css-fontsize-1-from-to-px-px-expected.svg&quot;

Sample CrashLog:
https://build.webkit.org/results/Apple%20iOS%2011%20Simulator%20Debug%20WK2%20(Tests)/r233426%20(5169)/imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort-crash-log.txt

Process:               com.apple.WebKit.WebContent.Development [4229]
Path:                  /Volumes/VOLUME/*/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent.Development
Identifier:            com.apple.WebKit.WebContent.Development
Version:               606+ (606.1.20+)
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [96672]
Responsible:           com.apple.WebKit.WebContent.Development [4229]
User ID:               501

Date/Time:             2018-07-02 11:25:31.940 -0700
OS Version:            Mac OS X 10.13.4 (17E202)
Report Version:        12
Anonymous UUID:        628480A6-E7E2-AA80-1638-0BF1D7734AC5


Time Awake Since Boot: 5800000 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000bbadbeef
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0xbbadbeef:
--&gt; 
    __TEXT                 000000010db74000-000000010db77000 [   12K] r-x/rwx SM=COW  /Volumes/VOLUME/*/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent.Development

Application Specific Information:
CRASHING TEST: imported/mozilla/svg/smil/style/anim-css-fontsize-1-from-to-px-px-expected.svg
CoreSimulator 518.19 - Device: Managed 4 - Runtime: iOS 11.3 (15E217) - DeviceType: iPhone 5s

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   JavaScriptCore                	0x000000011bc71080 WTFCrash + 16 (Assertions.cpp:267)
1   com.apple.WebCore             	0x00000001214712f0 WebCore::FileReader::abort()::$_8::operator()(WebCore::ScriptExecutionContext&amp;) const + 80 (FileReader.cpp:157)
2   com.apple.WebCore             	0x0000000121471274 WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::CallableWrapper&lt;WebCore::FileReader::abort()::$_8&gt;::call(WebCore::ScriptExecutionContext&amp;) + 52 (Function.h:101)
3   com.apple.WebCore             	0x0000000120b769ce WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const + 158 (Function.h:56)
4   com.apple.WebCore             	0x0000000120b643dd WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;) + 29 (ScriptExecutionContext.h:188)
5   com.apple.WebCore             	0x0000000121201796 WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_3::operator()() + 278 (Document.cpp:5853)
6   com.apple.WebCore             	0x00000001212015d9 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_3&gt;::call() + 25 (Function.h:101)
7   JavaScriptCore                	0x000000011bc961cb WTF::Function&lt;void ()&gt;::operator()() const + 139 (Function.h:56)
8   JavaScriptCore                	0x000000011bcc11ab WTF::dispatchFunctionsFromMainThread() + 331 (MainThread.cpp:129)
9   JavaScriptCore                	0x000000011bcc3db5 -[JSWTFMainThreadCaller call] + 21 (MainThreadMac.mm:55)
10  com.apple.Foundation          	0x000000010dc66d5e __NSThreadPerformPerform + 330
11  com.apple.CoreFoundation      	0x0000000113214bb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
12  com.apple.CoreFoundation      	0x00000001131f94af __CFRunLoopDoSources0 + 271
13  com.apple.CoreFoundation      	0x00000001131f8a6f __CFRunLoopRun + 1263
14  com.apple.CoreFoundation      	0x00000001131f830b CFRunLoopRunSpecific + 635
15  com.apple.Foundation          	0x000000010dc21b4a -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
16  com.apple.Foundation          	0x000000010dc21a25 -[NSRunLoop(NSRunLoop) run] + 76
17  libxpc.dylib                  	0x0000000114e208c9 _xpc_objc_main + 460
18  libxpc.dylib                  	0x0000000114e22d73 xpc_main + 143
19  com.apple.WebKit.WebContent   	0x000000010db75c0e main + 894
20  libdyld.dylib                 	0x0000000114a68955 start + 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438639</commentid>
    <comment_count>1</comment_count>
    <who name="Dawei Fenton (:realdawei)">realdawei</who>
    <bug_when>2018-07-02 14:36:05 -0700</bug_when>
    <thetext>*** Bug 187265 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1438790</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-07-03 02:23:17 -0700</bug_when>
    <thetext>&gt; CRASHING TEST: imported/mozilla/svg/smil/style/anim-css-fontsize-1-from-to-px-px-expected.svg

This crash log blames a different test. Which one is the actual culprit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1439032</commentid>
    <comment_count>3</comment_count>
    <who name="Dawei Fenton (:realdawei)">realdawei</who>
    <bug_when>2018-07-03 15:49:18 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; &gt; CRASHING TEST: imported/mozilla/svg/smil/style/anim-css-fontsize-1-from-to-px-px-expected.svg
&gt; 
&gt; This crash log blames a different test. Which one is the actual culprit?

We suspect the imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort.html test is in fact the actual failure because it showed up as such in the stderr.  

But I did find it curious that the log referenced a different test, one theory is that there&apos;s a flaw in the test runner related to state.  (possibly not reporting what test we are running early enough)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1439077</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-07-03 17:15:38 -0700</bug_when>
    <thetext>It looks like the crashes with that FileAPI test started on 6/8, which may line up with this WPT repo sync (which included other FileAPI tests): https://trac.webkit.org/changeset/232641/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1439964</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-07-06 15:57:06 -0700</bug_when>
    <thetext>David, can you try to reproduce this? If we can narrow it down to a particular test, we can go ahead and skip it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1439967</commentid>
    <comment_count>6</comment_count>
    <who name="Dawei Fenton (:realdawei)">realdawei</who>
    <bug_when>2018-07-06 15:59:03 -0700</bug_when>
    <thetext>(In reply to Ryan Haddad from comment #5)
&gt; David, can you try to reproduce this? If we can narrow it down to a
&gt; particular test, we can go ahead and skip it.

okay working on this now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1443161</commentid>
    <comment_count>7</comment_count>
    <who name="Dawei Fenton (:realdawei)">realdawei</who>
    <bug_when>2018-07-18 14:24:11 -0700</bug_when>
    <thetext>Attempted to repro this locally and it crashed with different errors each time...continuing to investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447847</commentid>
    <comment_count>8</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-08-03 17:31:58 -0700</bug_when>
    <thetext>I went ahead and skipped imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort.html in https://trac.webkit.org/changeset/234565/webkit because we keep seeing it come up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1448630</commentid>
    <comment_count>9</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2018-08-07 16:35:51 -0700</bug_when>
    <thetext>We are seeing this with multiple tests, or perhaps I didn&apos;t skip the real culprit.

Example with imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_error.html:

https://build.webkit.org/results/Apple%20iOS%2011%20Simulator%20Debug%20WK2%20(Tests)/r234614%20(5755)/results.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>