Crash in ServiceWorkerContainer::ready as seen in https://build.webkit.org/results/Apple%20Sierra%20Debug%20WK2%20(Tests)/r229308%20(5496)/imported/w3c/web-platform-tests/service-workers/service-worker/register-default-scope.https-crash-log.txt Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.WebCore 0x0000000118bb5c33 WebCore::ScriptExecutionContext& auto WebCore::ServiceWorkerContainer::ready()::$_1::operator()()::'lambda'(WebCore::ScriptExecutionContext&&)::operator()<WebCore::ServiceWorkerRegistrationData>(WebCore::ScriptExecutionContext&&) const::'lambda'(WebCore::ScriptExecutionContext&)::operator()<WebCore::ScriptExecutionContext>('lambda'(WebCore::ScriptExecutionContext&)) + 67 (ServiceWorkerContainer.cpp:97) 1 com.apple.WebCore 0x0000000118bb5b54 WTF::Function<void (WebCore::ScriptExecutionContext&)>::CallableWrapper<auto WebCore::ServiceWorkerContainer::ready()::$_1::operator()()::'lambda'(auto WebCore::ServiceWorkerContainer::ready()::$_1::operator()()::'lambda'(T_&&)::operator()<WebCore::ServiceWorkerRegistrationData>(T_&&) const::'lambda'(T_&)&&)::operator()<WebCore::ServiceWorkerRegistrationData>(auto WebCore::ServiceWorkerContainer::ready()::$_1::operator()()::'lambda'(T_&&)::operator()<WebCore::ServiceWorkerRegistrationData>(T_&&) const::'lambda'(T_&)&&) const::'lambda'(auto WebCore::ServiceWorkerContainer::ready()::$_1::operator()()::'lambda'(T_&&)::operator()<WebCore::ServiceWorkerRegistrationData>(T_&&) const::'lambda'(T_&)&)>::call(WebCore::ScriptExecutionContext&) + 52 (Function.h:101) 2 com.apple.WebCore 0x000000011700f50e WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const + 158 (Function.h:56) 3 com.apple.WebCore 0x00000001177891dd auto WebCore::ScriptExecutionContext::postTaskTo(WTF::Variant<WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>, WTF::ObjectIdentifier<WebCore::ServiceWorkerIdentifierType> > const&, WTF::Function<void (WebCore::ScriptExecutionContext&)>&&)::$_0::operator()(WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>) const::'lambda'(WebCore::ScriptExecutionContext&)::operator()<WebCore::ScriptExecutionContext>(WebCore::ScriptExecutionContext&) const + 29 (ScriptExecutionContext.cpp:574) 4 com.apple.WebCore 0x0000000117789134 WTF::Function<void (WebCore::ScriptExecutionContext&)>::CallableWrapper<WebCore::ScriptExecutionContext::postTaskTo(WTF::Variant<WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>, WTF::ObjectIdentifier<WebCore::ServiceWorkerIdentifierType> > const&, WTF::Function<void (WebCore::ScriptExecutionContext&)>&&)::$_0::operator()(WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>) const::'lambda'(WebCore::ScriptExecutionContext::postTaskTo(WTF::Variant<WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>, WTF::ObjectIdentifier<WebCore::ServiceWorkerIdentifierType> > const&, WTF::Function<void (WebCore::ScriptExecutionContext&)>&&)::$_0::operator()(WTF::ObjectIdentifier<WebCore::DocumentIdentifierType>) const::'lambda'(T_&)&)>::call(WebCore::ScriptExecutionContext&) + 52 (Function.h:101) 5 com.apple.WebCore 0x000000011700f50e WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const + 158 (Function.h:56) 6 com.apple.WebCore 0x0000000116ffcced WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&) + 29 (ScriptExecutionContext.h:184) 7 com.apple.WebCore 0x000000011767af86 WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&&)::$_2::operator()() + 278 (Document.cpp:5829) 8 com.apple.WebCore 0x000000011767adc9 WTF::Function<void ()>::CallableWrapper<WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&&)::$_2>::call() + 25 (Function.h:101) 9 com.apple.JavaScriptCore 0x0000000125faf04b WTF::Function<void ()>::operator()() const + 139 (Function.h:56) 10 com.apple.JavaScriptCore 0x0000000125fd2284 WTF::dispatchFunctionsFromMainThread() + 324 (MainThread.cpp:129) 11 com.apple.JavaScriptCore 0x0000000125fd5421 WTF::timerFired(__CFRunLoopTimer*, void*) + 49 (MainThreadMac.mm:111) 12 com.apple.CoreFoundation 0x00007fff9305be04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 13 com.apple.CoreFoundation 0x00007fff9305ba93 __CFRunLoopDoTimer + 1075 14 com.apple.CoreFoundation 0x00007fff9305b5ea __CFRunLoopDoTimers + 298 15 com.apple.CoreFoundation 0x00007fff93052fc1 __CFRunLoopRun + 2081 16 com.apple.CoreFoundation 0x00007fff93052544 CFRunLoopRunSpecific + 420 17 com.apple.HIToolbox 0x00007fff925b1ebc RunCurrentEventLoopInMode + 240 18 com.apple.HIToolbox 0x00007fff925b1cf1 ReceiveNextEventCommon + 432 19 com.apple.HIToolbox 0x00007fff925b1b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 20 com.apple.AppKit 0x00007fff90b48a54 _DPSNextEvent + 1120 21 com.apple.AppKit 0x00007fff912c47ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 22 com.apple.AppKit 0x00007fff90b3d3db -[NSApplication run] + 926 23 com.apple.AppKit 0x00007fff90b07e0e NSApplicationMain + 1237 24 libxpc.dylib 0x00007fffa8fe58c7 _xpc_objc_main + 775 25 libxpc.dylib 0x00007fffa8fe42e4 xpc_main + 494 26 com.apple.WebKit.WebContent 0x000000010fed7145 main + 1189 (XPCServiceMain.mm:148) 27 libdyld.dylib 0x00007fffa8d8c235 start + 1
Created attachment 335132 [details] Patch
Comment on attachment 335132 [details] Patch Clearing flags on attachment: 335132 Committed r229492: <https://trac.webkit.org/changeset/229492>
All reviewed patches have been landed. Closing bug.
<rdar://problem/38397750>
<rdar://problem/38397751>