<?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>242226</bug_id>
          
          <creation_ts>2022-06-30 23:10:57 -0700</creation_ts>
          <short_desc>[mac] WebCoreNSURLSession.mm: ASSERTION FAILED: _dataTasks.contains(task): http/tests/media/modern-media-controls/time-control/10-hours-or-more.html is randomly crashing</short_desc>
          <delta_ts>2022-07-14 12:45: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>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=221698</see_also>
          <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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>hhjalmarsson</cc>
    
    <cc>hi</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1879652</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-06-30 23:10:57 -0700</bug_when>
    <thetext>[mac] WebCoreNSURLSession.mm: ASSERTION FAILED: _dataTasks.contains(task): http/tests/media/modern-media-controls/time-control/10-hours-or-more.html is randomly crashing

https://results.webkit.org/?suite=layout-tests&amp;test=http%2Ftests%2Fmedia%2Fmodern-media-controls%2Ftime-control%2F10-hours-or-more.html

For example,

251950@main
Buildbot: builder Apple-BigSur-Debug-AppleSilicon-WK2-Tests build 6685
https://build.webkit.org/#/builders/103/builds/6685

ASSERTION FAILED: _dataTasks.contains(task)
/Volumes/Data/worker/Apple-BigSur-Debug-Build/build/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm(323) : -[WebCoreNSURLSession taskCompleted:]
1   0x142471fcc WTFCrash
2   0x11c443d20 WebCore::JSHTMLHeadElement::createPrototype(JSC::VM&amp;, WebCore::JSDOMGlobalObject&amp;)
3   0x12150fe10 -[WebCoreNSURLSession taskCompleted:]
4   0x12152fd58 -[WebCoreNSURLSessionDataTask _resource:loadFinishedWithError:metrics:]::$_17::operator()()::&apos;lambda&apos;()::operator()() const
5   0x12152fc18 WTF::Detail::CallableWrapper&lt;-[WebCoreNSURLSessionDataTask _resource:loadFinishedWithError:metrics:]::$_17::operator()()::&apos;lambda&apos;(), void&gt;::call()
6   0x14249ced8 WTF::Function&lt;void ()&gt;::operator()() const
7   0x142535150 WTF::RunLoop::performWork()
8   0x142539f18 WTF::RunLoop::performWork(void*)
9   0x191fa9744 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
10  0x191fa9690 __CFRunLoopDoSource0
11  0x191fa937c __CFRunLoopDoSources0
12  0x191fa7d04 __CFRunLoopRun
13  0x191fa7258 CFRunLoopRunSpecific
14  0x192d52648 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
15  0x192de4b30 -[NSRunLoop(NSRunLoop) run]
16  0x191c1f768 _xpc_objc_main
17  0x191c1ef94 xpc_main
18  0x105442914 WebKit::XPCServiceMain(int, char const**)
19  0x107853834 WKXPCServiceMain
20  0x10406ff18 main
21  0x191ec9430 start
com.apple.WebKit.GPU.Development terminated (pid 45223) for reason: crash
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1879655</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2022-06-30 23:15:39 -0700</bug_when>
    <thetext>251903@main
Buildbot: builder Apple-BigSur-Debug-WK2-Tests build 7339
https://build.webkit.org/#/builders/23/builds/7339</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880561</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-07-04 11:42:02 -0700</bug_when>
    <thetext>&gt; 2   0x11c443d20 WebCore::JSHTMLHeadElement::createPrototype(JSC::VM&amp;, WebCore::JSDOMGlobalObject&amp;)

This would be shocking in the GPU Process - but it seems like incorrect WTF symbolication, as the actual crash log is more reasonable:

0   com.apple.JavaScriptCore      	0x0000000142471fd4 WTFCrash + 20 (Assertions.cpp:328)
1   com.apple.WebCore             	0x000000011c443d20 WTFCrashWithInfo(int, char const*, char const*, int) + 32 (Assertions.h:754)
2   com.apple.WebCore             	0x000000012150fe10 -[WebCoreNSURLSession taskCompleted:] + 176 (WebCoreNSURLSession.mm:323)
3   com.apple.WebCore             	0x000000012152fd58 -[WebCoreNSURLSessionDataTask _resource:loadFinishedWithError:metrics:]::$_17::operator()()::&apos;lambda&apos;()::operator()() const + 80 (WebCoreNSURLSession.mm:998)

Still, no good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880562</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-04 11:42:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/96403450&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883709</commentid>
    <comment_count>4</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-07-14 12:22:39 -0700</bug_when>
    <thetext>http/tests/media/modern-media-controls/time-control/10-hours-or-more.html
http/tests/media/modern-media-controls/time-control/less-than-10-minutes.html
http/tests/media/modern-media-controls/time-control/10-minutes-to-1-hour.html
http/tests/media/modern-media-controls/time-control/1-to-10-hours.html

4X http/tests/media/modern-media-controls/time-control (layout-tests) are very flakily crashing on macOS ToT. I&apos;m not able to update the title.

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=http%2Ftests%2Fmedia%2Fmodern-media-controls%2Ftime-control%2F1-to-10-hours.html&amp;test=http%2Ftests%2Fmedia%2Fmodern-media-controls%2Ftime-control%2F10-hours-or-more.html&amp;test=http%2Ftests%2Fmedia%2Fmodern-media-controls%2Ftime-control%2F10-minutes-to-1-hour.html&amp;test=http%2Ftests%2Fmedia%2Fmodern-media-controls%2Ftime-control%2Fless-than-10-minutes.html

These all appear to share the same/very similar crash stdio output:

ASSERTION FAILED: _dataTasks.contains(task)
/Volumes/Data/worker/Apple-BigSur-Debug-Build/build/Source/WebCore/platform/network/cocoa/WebCoreNSURLSession.mm(323) : -[WebCoreNSURLSession taskCompleted:]
1   0x142471fcc WTFCrash
2   0x11c443d20 WebCore::JSHTMLHeadElement::createPrototype(JSC::VM&amp;, WebCore::JSDOMGlobalObject&amp;)
3   0x12150fe10 -[WebCoreNSURLSession taskCompleted:]
4   0x12152fd58 -[WebCoreNSURLSessionDataTask _resource:loadFinishedWithError:metrics:]::$_17::operator()()::&apos;lambda&apos;()::operator()() const
5   0x12152fc18 WTF::Detail::CallableWrapper&lt;-[WebCoreNSURLSessionDataTask _resource:loadFinishedWithError:metrics:]::$_17::operator()()::&apos;lambda&apos;(), void&gt;::call()
6   0x14249ced8 WTF::Function&lt;void ()&gt;::operator()() const
7   0x142535150 WTF::RunLoop::performWork()
8   0x142539f18 WTF::RunLoop::performWork(void*)
9   0x191fa9744 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
10  0x191fa9690 __CFRunLoopDoSource0
11  0x191fa937c __CFRunLoopDoSources0
12  0x191fa7d04 __CFRunLoopRun
13  0x191fa7258 CFRunLoopRunSpecific
14  0x192d52648 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
15  0x192de4b30 -[NSRunLoop(NSRunLoop) run]
16  0x191c1f768 _xpc_objc_main
17  0x191c1ef94 xpc_main
18  0x105442914 WebKit::XPCServiceMain(int, char const**)
19  0x107853834 WKXPCServiceMain
20  0x10406ff18 main
21  0x191ec9430 start
com.apple.WebKit.GPU.Development terminated (pid 45223) for reason: crash

CRASH LOG URL(s):
https://build.webkit.org/results/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/252322@m[…]dia-controls/time-control/10-minutes-to-1-hour-crash-log.txt
https://build.webkit.org/results/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/252251@m[…]n-media-controls/time-control/10-hours-or-more-crash-log.txt
https://build.webkit.org/results/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/252398@m[…]dia-controls/time-control/less-than-10-minutes-crash-log.txt
https://build.webkit.org/results/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/251263@m[…]dern-media-controls/time-control/1-to-10-hours-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883712</commentid>
    <comment_count>5</comment_count>
    <who name="Hercules Hjalmarsson">hhjalmarsson</who>
    <bug_when>2022-07-14 12:27:11 -0700</bug_when>
    <thetext>I&apos;m able to reproduce this crash on macOS ToT running 1k iterations of command:

run-webkit-tests -f --force http/tests/media/modern-media-controls/time-control/10-hours-or-more.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883718</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-07-14 12:45:32 -0700</bug_when>
    <thetext>Test gardening commit 252471@main (29784aacc481): &lt;https://commits.webkit.org/252471@main&gt;

Reviewed commits have been landed. Closing PR #2422 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>