[Webkit-unassigned] [Bug 193374] New: Performance constructor can get a zero timeOrigin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 18:03:09 PST 2019


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

            Bug ID: 193374
           Summary: Performance constructor can get a zero timeOrigin
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

Debug WebKit/Safari. I loaded yahoo.com then switched to iPhone user agent. WebContent process asserted:

ASSERT(m_timeOrigin);

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xbbadbeef)
    frame #0: 0x00000005bedd68c0 JavaScriptCore`::WTFCrash() at Assertions.cpp:255
  * frame #1: 0x00000005a7a3765b WebCore`WTFCrashWithInfo((null)=58, (null)="./page/Performance.cpp", (null)="WebCore::Performance::Performance(WebCore::ScriptExecutionContext *, WTF::MonotonicTime)", (null)=1808) at Assertions.h:559
    frame #2: 0x00000005aa8f62cd WebCore`WebCore::Performance::Performance(this=0x00000005c6361290, context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = 1, pageCacheState = NotInPageCache }, timeOrigin=(m_value = 0)) at Performance.cpp:58
    frame #3: 0x00000005aa8f68b7 WebCore`WebCore::Performance::Performance(this=0x00000005c6361290, context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = 1, pageCacheState = NotInPageCache }, timeOrigin=(m_value = 0)) at Performance.cpp:57
    frame #4: 0x00000005aa7edf18 WebCore`WebCore::Performance::create(context={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = 1, pageCacheState = NotInPageCache }, timeOrigin=(m_value = 0)) at Performance.h:56
    frame #5: 0x00000005aa7ede4f WebCore`WebCore::DOMWindow::performance(this=0x00000005c635f000) const at DOMWindow.cpp:729
    frame #6: 0x00000005aa6e631d WebCore`WebCore::ResourceTimingInformation::addResourceTiming(this=0x00000005c63610f8, resource=0x00000005cb209a00, document={ origin = https://www.yahoo.com, url = https://www.yahoo.com/service-worker.js, inMainFrame = 1, pageCacheState = NotInPageCache }, resourceTiming=0x00007ffee3e29728) at ResourceTimingInformation.cpp:87
    frame #7: 0x00000005aa6ee017 WebCore`WebCore::SubresourceLoader::reportResourceTiming(this=0x00000005c70d8b00, networkLoadMetrics=0x00000005cb209bd0) at SubresourceLoader.cpp:810
    frame #8: 0x00000005aa6eb82a WebCore`WebCore::SubresourceLoader::didFinishLoading(this=0x00000005c70d8b00, networkLoadMetrics=0x00007ffee3e29a70) at SubresourceLoader.cpp:647
    frame #9: 0x00000005a0ddf00f WebKit`WebKit::WebResourceLoader::didReceiveResource(this=0x00000005cb2064c0, handle=0x00007ffee3e29d08) at WebResourceLoader.cpp:224
    frame #10: 0x00000005a117c07a WebKit`void IPC::callMemberFunctionImpl<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebKit::ShareableResource::Handle const&), std::__1::tuple<WebKit::ShareableResource::Handle>, 0ul>(object=0x00000005cb2064c0, function=30 eb dd a0 05 00 00 00 00 00 00 00 00 00 00 00, args=size=1, (null)=std::__1::index_sequence<0UL> @ 0x00007ffee3e29c48)(WebKit::ShareableResource::Handle const&), std::__1::tuple<WebKit::ShareableResource::Handle>&&, std::__1::integer_sequence<unsigned long, 0ul>) at HandleMessage.h:41
    frame #11: 0x00000005a117be10 WebKit`void IPC::callMemberFunction<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebKit::ShareableResource::Handle const&), std::__1::tuple<WebKit::ShareableResource::Handle>, std::__1::integer_sequence<unsigned long, 0ul> >(args=size=1, object=0x00000005cb2064c0, function=30 eb dd a0 05 00 00 00 00 00 00 00 00 00 00 00)(WebKit::ShareableResource::Handle const&)) at HandleMessage.h:47
    frame #12: 0x00000005a117a795 WebKit`void IPC::handleMessage<Messages::WebResourceLoader::DidReceiveResource, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebKit::ShareableResource::Handle const&)>(decoder=0x00000005c63db8c0, object=0x00000005cb2064c0, function=30 eb dd a0 05 00 00 00 00 00 00 00 00 00 00 00)(WebKit::ShareableResource::Handle const&)) at HandleMessage.h:133
    frame #13: 0x00000005a1179d84 WebKit`WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(this=0x00000005cb2064c0, connection=0x00000005c63e21c0, decoder=0x00000005c63db8c0) at WebResourceLoaderMessageReceiver.cpp:81
    frame #14: 0x00000005a0dd3f06 WebKit`WebKit::NetworkProcessConnection::didReceiveMessage(this=0x00000005c63f1180, connection=0x00000005c63e21c0, decoder=0x00000005c63db8c0) at NetworkProcessConnection.cpp:78
    frame #15: 0x00000005a0046e29 WebKit`IPC::Connection::dispatchMessage(this=0x00000005c63e21c0, decoder=0x00000005c63db8c0) at Connection.cpp:978
    frame #16: 0x00000005a003f132 WebKit`IPC::Connection::dispatchMessage(this=0x00000005c63e21c0, message=unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> > @ 0x00007ffee3e2a2b0) at Connection.cpp:1005
    frame #17: 0x00000005a00475e3 WebKit`IPC::Connection::dispatchOneIncomingMessage(this=0x00000005c63e21c0) at Connection.cpp:1074
    frame #18: 0x00000005a006928b WebKit`IPC::Connection::enqueueIncomingMessage(this=0x00000005c63dc168)::$_14::operator()() at Connection.cpp:956
    frame #19: 0x00000005a00691a9 WebKit`WTF::Function<void ()>::CallableWrapper<IPC::Connection::enqueueIncomingMessage(this=0x00000005c63dc160)::$_14>::call() at Function.h:101
    frame #20: 0x00000005bee028ba JavaScriptCore`WTF::Function<void ()>::operator(this=0x00007ffee3e2a3a0)() const at Function.h:56
    frame #21: 0x00000005bee73045 JavaScriptCore`WTF::RunLoop::performWork(this=0x00000005c63f9000) at RunLoop.cpp:123
    frame #22: 0x00000005bee7431e JavaScriptCore`WTF::RunLoop::performWork(context=0x00000005c63f9000) at RunLoopCF.cpp:38
    frame #23: 0x00007fff5100b843 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #24: 0x00007fff5100b7e9 CoreFoundation`__CFRunLoopDoSource0 + 108
    frame #25: 0x00007fff50fef17c CoreFoundation`__CFRunLoopDoSources0 + 195
    frame #26: 0x00007fff50fee726 CoreFoundation`__CFRunLoopRun + 1210
    frame #27: 0x00007fff50fee01a CoreFoundation`CFRunLoopRunSpecific + 455
    frame #28: 0x00007fff5332845f Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
    frame #29: 0x00007fff53328334 Foundation`-[NSRunLoop(NSRunLoop) run] + 76
    frame #30: 0x00007fff7da2a1e3 libxpc.dylib`_xpc_objc_main + 552
    frame #31: 0x00007fff7da29ce5 libxpc.dylib`xpc_main + 433
    frame #32: 0x000000010bdd5025 com.apple.WebKit.WebContent.Development`WebKit::XPCServiceMain((null)=1, (null)=0x00007ffee3e2b598) at XPCServiceMain.mm:157
    frame #33: 0x000000010bdd5312 com.apple.WebKit.WebContent.Development`main(argc=1, argv=0x00007ffee3e2b598) at XPCServiceMain.mm:165
    frame #34: 0x00007fff7d7f53f1 libdyld.dylib`start + 1
    frame #35: 0x00007fff7d7f53f1 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/20190112/8b07f42f/attachment.html>


More information about the webkit-unassigned mailing list