[Webkit-unassigned] [Bug 221564] New: ASSERT(m_timeOrigin) in Performance::Performance() under link preloading

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 8 12:09:21 PST 2021


https://bugs.webkit.org/show_bug.cgi?id=221564

            Bug ID: 221564
           Summary: ASSERT(m_timeOrigin) in Performance::Performance()
                    under link preloading
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

Loading yahoo.com in iPhone simulator:

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xbbadbeef)
  * frame #0: 0x000000056bcb1b0e JavaScriptCore`::WTFCrash() at Assertions.cpp:295:35
    frame #1: 0x000000057339830b WebCore`WTFCrashWithInfo((null)=64, (null)="./page/Performance.cpp", (null)="WebCore::Performance::Performance(WebCore::ScriptExecutionContext *, WTF::MonotonicTime)", (null)=1493) at Assertions.h:671:5
    frame #2: 0x0000000576c78672 WebCore`WebCore::Performance::Performance(this=0x00007ffe964de2c0, context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, timeOrigin=(m_value = 0)) at Performance.cpp:64:5
    frame #3: 0x0000000576c78d67 WebCore`WebCore::Performance::Performance(this=0x00007ffe964de2c0, context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, timeOrigin=(m_value = 0)) at Performance.cpp:63:1
    frame #4: 0x0000000576b2ff5d WebCore`WebCore::Performance::create(context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, timeOrigin=(m_value = 0)) at Performance.h:68:118
    frame #5: 0x0000000576b2fde0 WebCore`WebCore::DOMWindow::performance(this=0x00007ffdc7092d50) const at DOMWindow.cpp:732:25
    frame #6: 0x0000000576a172ff WebCore`WebCore::ResourceTimingInformation::addResourceTiming(this=0x00007ffe96566e80, resource=0x00007ffeb673eee0, document={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, resourceTiming=0x00007ffee4c54bd0) at ResourceTimingInformation.cpp:84:22
    frame #7: 0x0000000576ab45c9 WebCore`WebCore::CachedResourceLoader::requestResource(this=0x00007ffe96566db0, type=Script, request=0x00007ffee4c559c0, forPreload=Yes, imageLoading=Immediate) at CachedResourceLoader.cpp:1020:42
    frame #8: 0x0000000576abb568 WebCore`WebCore::CachedResourceLoader::preload(this=0x00007ffe96566db0, type=Script, request=0x00007ffee4c559c0) at CachedResourceLoader.cpp:1492:21
    frame #9: 0x00000005769bf5be WebCore`WebCore::LinkLoader::preloadIfNeeded(params=0x00007ffee4c55d70, document={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, loader=0x0000000000000000) at LinkLoader.cpp:269:63
    frame #10: 0x000000057699fa1a WebCore`WebCore::LinkLoader::loadLinksFromHeader(headerValue={ length = 2863, contents = '<https://s.yimg.com/rq/darla/4-6-0/js/g-r-min.js>; rel=preload; as=script, <https://s.yimg.com/ss/rapid-3.53.17.js>; rel=preload; as=script, <https://s.yimg.com/os/yc/css/bundle.c60a6d54.css>; rel=preload; as=style, <https://s.yimg.com/nn/lib/metro/g/myy/caas-viewer_0.0.95.css>; rel=preload; as=style, <https://s.yimg.com/nn/lib/metro/g/myy/video-manager-standalone_0.0.49.css>; rel=preload; as=style, <https://s.yimg.com/nn/lib/metro/g/myy/cards_sm_0.0.143.css>; rel=preload; as=style, <https://s.yimg.com/nn/lib/metro/g/myy/font_yahoosans_0.0.45.css>; rel=preload; as=style, <https://s.yimg.com/nn/lib/metro/g/sda/sda_adlite_0.0.7.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-user-intent/atomic.smartphone.ltr.5a4d4f48.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-adfeedback/atomic.ltr.0dbed62f.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/react-wafer-featurebar/atomic.ltr.d0ff188f.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-ntk/atomic.smartphone.ltr.04972083.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-featuredvideo/atomic.ltr.023f03e7.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-stream/atomic.smartphone.ltr.397480d1.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-footer/atomic.ltr.4695d533.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-applet-promo/atomic.ltr.e402d7ac.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-promo/atomic.smartphone.ltr.f381fbd7.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-header/atomic.ltr.8da5fc8d.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-applet-cards/common.smartphone.f8911da1.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-stream/common.smartphone.cceb13b3.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-applet-cards/custom.smartphone.76000599.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-stream/custom.smartphone.1c5f3e1a.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-header/custom.smartphone.40f4ed1c.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-wafer-ntk/custom.smartphone.88db38e5.css>; rel=preload; as=style, <https://s.yimg.com/aaq/fp/css/tdv2-applet-native-ads/atomic.ltr.6ea8e1ea.css>; rel=preload; as=style, <https://s.yimg.com/aaq/c/d656f94.caas-home2.min.css>; rel=preload; as=style, <https://www.yahoo.com/sy/os/fontserver/YahooSans/Regular.woff2>; rel=preload; as=font; type=font/woff2; crossorigin, <https://www.yahoo.com/sy/os/fontserver/YahooSans/Bold.woff2>; rel=preload; as=font; type=font/woff2; crossorigin, <https://www.yahoo.com/sy/os/fontserver/YahooSans/ExtraBold.woff2>; rel=preload; as=font; type=font/woff2; crossorigin' }, baseURL={  }, document={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = Detached, backForwardCacheState = NotInBackForwardCache }, mediaAttributeCheck=SkipMediaAttributeCheck) at LinkLoader.cpp:116:9
    frame #11: 0x0000000576a33660 WebCore`WebCore::SubresourceLoader::didReceiveResponse(this=0x00007ffeb7c90a00, response=0x00007ffee4c56940, policyCompletionHandler=0x00007ffee4c56758)>&&) at SubresourceLoader.cpp:450:9
    frame #12: 0x0000000559b06226 WebKit`WebKit::WebResourceLoader::didReceiveResponse(this=0x00007ffdc670c460, response=0x00007ffee4c56940, needsContinueDidReceiveResponseMessage=false) at WebResourceLoader.cpp:189:19
    frame #13: 0x000000055a11273e WebKit`void IPC::callMemberFunctionImpl<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::__1::tuple<WebCore::ResourceResponse, bool>, 0ul, 1ul>(object=0x00007ffdc670c460, function=10 5c b0 59 05 00 00 00 00 00 00 00 00 00 00 00, args=size=2, (null)=std::__1::index_sequence<0UL, 1UL> @ 0x00007ffee4c56878)(WebCore::ResourceResponse const&, bool), std::__1::tuple<WebCore::ResourceResponse, bool>&&, std::__1::integer_sequence<unsigned long, 0ul, 1ul>) at HandleMessage.h:42:5
    frame #14: 0x000000055a112670 WebKit`void IPC::callMemberFunction<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool), std::__1::tuple<WebCore::ResourceResponse, bool>, std::__1::integer_sequence<unsigned long, 0ul, 1ul> >(args=size=2, object=0x00007ffdc670c460, function=10 5c b0 59 05 00 00 00 00 00 00 00 00 00 00 00)(WebCore::ResourceResponse const&, bool)) at HandleMessage.h:48:5
    frame #15: 0x000000055a11052e WebKit`void IPC::handleMessage<Messages::WebResourceLoader::DidReceiveResponse, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&, bool)>(decoder=0x00007ffdc7542460, object=0x00007ffdc670c460, function=10 5c b0 59 05 00 00 00 00 00 00 00 00 00 00 00)(WebCore::ResourceResponse const&, bool)) at HandleMessage.h:120:5
    frame #16: 0x000000055a10ff66 WebKit`WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(this=0x00007ffdc670c460, connection=0x00007ffe96405b30, decoder=0x00007ffdc7542460) at WebResourceLoaderMessageReceiver.cpp:56:9
    frame #17: 0x0000000559af8e30 WebKit`WebKit::NetworkProcessConnection::didReceiveMessage(this=0x00007ffe96405ad0, connection=0x00007ffe96405b30, decoder=0x00007ffdc7542460) at NetworkProcessConnection.cpp:93:32
    frame #18: 0x000000055812733a WebKit`IPC::Connection::dispatchMessage(this=0x00007ffe96405b30, decoder=0x00007ffdc7542460) at Connection.cpp:1038:14
    frame #19: 0x0000000558128480 WebKit`IPC::Connection::dispatchMessage(this=0x00007ffe96405b30, message=IPC::Decoder @ 0x00007ffdc7542460) at Connection.cpp:1138:9
    frame #20: 0x0000000558128ae0 WebKit`IPC::Connection::dispatchOneIncomingMessage(this=0x00007ffe96405b30) at Connection.cpp:1207:5
    frame #21: 0x0000000558148c18 WebKit`IPC::Connection::enqueueIncomingMessage(this=0x00007ffdc75424a8)::$_8::operator()() at Connection.cpp:1001:28
    frame #22: 0x0000000558148b2e WebKit`WTF::Detail::CallableWrapper<IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_8, void>::call(this=0x00007ffdc75424a0) at Function.h:52:39
    frame #23: 0x000000056bcd9d92 JavaScriptCore`WTF::Function<void ()>::operator(this=0x00007ffee4c56ed8)() const at Function.h:83:35
    frame #24: 0x000000056bd50055 JavaScriptCore`WTF::RunLoop::performWork(this=0x00007ffeb67041e0) at RunLoop.cpp:128:9
    frame #25: 0x000000056bd539a1 JavaScriptCore`WTF::RunLoop::performWork(context=0x00007ffeb67041e0) at RunLoopCF.cpp:46:37
    frame #26: 0x00007fff2039038a CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #27: 0x00007fff20390282 CoreFoundation`__CFRunLoopDoSource0 + 180
    frame #28: 0x00007fff2038f764 CoreFoundation`__CFRunLoopDoSources0 + 248
    frame #29: 0x00007fff20389f2f CoreFoundation`__CFRunLoopRun + 878
    frame #30: 0x00007fff203896d6 CoreFoundation`CFRunLoopRunSpecific + 567
    frame #31: 0x00007fff208307b9 Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 209
    frame #32: 0x00007fff208309cd Foundation`-[NSRunLoop(NSRunLoop) run] + 76
    frame #33: 0x00007fff2005e176 libxpc.dylib`_xpc_objc_main + 591
    frame #34: 0x00007fff20060115 libxpc.dylib`xpc_main + 143
    frame #35: 0x0000000558c933d2 WebKit`WebKit::XPCServiceMain(argc=1, argv=0x00007ffee4c57fa8) at XPCServiceMain.mm:208:5
    frame #36: 0x000000055a2226bb WebKit`WKXPCServiceMain(argc=1, argv=0x00007ffee4c57fa8) at WKMain.mm:33:12
    frame #37: 0x000000010afa6d42 com.apple.WebKit.WebContent.Development`main(argc=1, argv=0x00007ffee4c57fa8) at AuxiliaryProcessMain.cpp:30:12
    frame #38: 0x00007fff2025a3e9 libdyld.dylib`start + 1
    frame #39: 0x00007fff2025a3e9 libdyld.dylib`start + 1
(lldb)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210208/de7dd963/attachment-0001.htm>


More information about the webkit-unassigned mailing list