Bug 187115 - Crash under SWServer::unregisterServiceWorkerClient()
Summary: Crash under SWServer::unregisterServiceWorkerClient()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-27 13:57 PDT by Chris Dumez
Modified: 2019-01-07 15:11 PST (History)
3 users (show)

See Also:


Attachments
Patch (1.97 KB, patch)
2018-06-27 14:02 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2018-06-27 13:57:36 PDT
Crash under SWServer::unregisterServiceWorkerClient():
>  1 com.apple.WebCore              0x016092fa WebCore::SWServer::unregisterServiceWorkerClient(WebCore::ClientOrigin const&, WebCore::ServiceWorkerClientIdentifier) + 1050
   2 com.apple.WebKit               0x0039cf9b WebKit::WebSWServerConnection::~WebSWServerConnection() + 281
   3 com.apple.WebKit               0x0039d0e4 WebKit::WebSWServerConnection::~WebSWServerConnection() + 14
   4 com.apple.WebCore              0x0160055c WebCore::SWServer::~SWServer() + 1644
   5 com.apple.WebKit               0x001db7d0 WTF::KeyValuePairHashTraits<WTF::HashTraits<PAL::SessionID>, WTF::HashTraits<std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > > >::customDeleteBucket(WTF::KeyValuePair<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > >&) + 36
   6 com.apple.WebKit               0x001db773 WTF::HashTable<PAL::SessionID, WTF::KeyValuePair<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > > >, WTF::SessionIDHash, WTF::HashMap<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> >, WTF::SessionIDHash, WTF::HashTraits<PAL::SessionID>, WTF::HashTraits<std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > > >::KeyValuePairTraits, WTF::HashTraits<PAL::SessionID> >::remove(WTF::KeyValuePair<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > >*) + 17
   7 com.apple.WebKit               0x001d8c0a WTF::HashMap<PAL::SessionID, std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> >, WTF::SessionIDHash, WTF::HashTraits<PAL::SessionID>, WTF::HashTraits<std::__1::unique_ptr<WebCore::SWServer, std::__1::default_delete<WebCore::SWServer> > > >::remove(PAL::SessionID const&) + 40
   8 com.apple.WebKit               0x001d8bc6 WebKit::StorageProcess::destroySession(PAL::SessionID) + 36
   9 com.apple.WebKit               0x001de211 WebKit::StorageProcess::didReceiveStorageProcessMessage(IPC::Connection&, IPC::Decoder&) + 1453
  10 com.apple.WebKit               0x000a7e7d IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 119
  11 com.apple.WebKit               0x000aaee7 IPC::Connection::dispatchOneIncomingMessage() + 177
  12 com.apple.JavaScriptCore       0x001ee8d9 WTF::RunLoop::performWork() + 313
  13 com.apple.JavaScriptCore       0x001eeb12 WTF::RunLoop::performWork(void*) + 34
  14 com.apple.CoreFoundation       0x0008442c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreFoundation/Foundation-1542/CoreFoundation/RunLoop.subproj/CFRunLoop.c:1980)
  15 com.apple.CoreFoundation       0x0012055b __CFRunLoopDoSource0 + 108 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreFoundation/Foundation-1542/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2015)
  16 com.apple.CoreFoundation       0x0006ba97 __CFRunLoopDoSources0 + 195 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreFoundation/Foundation-1542/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2051)
  17 com.apple.CoreFoundation       0x0006b03c __CFRunLoopRun + 1219 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreFoundation/Foundation-1542/CoreFoundation/RunLoop.subproj/CFRunLoop.c:2922)
  18 com.apple.CoreFoundation       0x0006a961 CFRunLoopRunSpecific + 463 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreFoundation/Foundation-1542/CoreFoundation/RunLoop.subproj/CFRunLoop.c:3247)
  19 com.apple.Foundation           0x00021185 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1542/Foundation/Soil.subproj/NSRunLoop.m:367)
  20 com.apple.Foundation           0x0002105a -[NSRunLoop(NSRunLoop) run] + 76 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1542/Foundation/Soil.subproj/NSRunLoop.m:389)
  21 libxpc.dylib                   0x00010fd2 _xpc_objc_main + 567 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/libxpc/libxpc-1336.200.80/src/main.m:170)
  22 libxpc.dylib                   0x0000fc26 xpc_main + 443 (/BuildRoot/Library/Caches/com.apple.xbs/Sources/libxpc/libxpc-1336.200.80/src/init.c:1471)
  23 com.apple.WebKit.Storage       0x0000163f  + 0
  24 libdyld.dylib                  0x0000136d start + 1
Comment 1 Chris Dumez 2018-06-27 13:57:51 PDT
<rdar://problem/41539197>
Comment 2 Chris Dumez 2018-06-27 14:02:52 PDT
Created attachment 343750 [details]
Patch
Comment 3 WebKit Commit Bot 2018-06-27 14:43:48 PDT
Comment on attachment 343750 [details]
Patch

Clearing flags on attachment: 343750

Committed r233279: <https://trac.webkit.org/changeset/233279>
Comment 4 WebKit Commit Bot 2018-06-27 14:43:49 PDT
All reviewed patches have been landed.  Closing bug.