Bug 155649 - ASSERTION FAILED: !memoryCache.resourceForRequest(request.resourceRequest(), sessionID()) in WebCore::CachedResourceLoader::loadResource
Summary: ASSERTION FAILED: !memoryCache.resourceForRequest(request.resourceRequest(), ...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified OS X 10.11
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 116980
  Show dependency treegraph
 
Reported: 2016-03-18 10:22 PDT by Renata Hodovan
Modified: 2016-08-05 09:38 PDT (History)
8 users (show)

See Also:


Attachments
Test case (207 bytes, text/html)
2016-03-18 10:22 PDT, Renata Hodovan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Renata Hodovan 2016-03-18 10:22:57 PDT
Created attachment 274426 [details]
Test case

Load the attached test with minibrowser:

<script src="spotify://IBPGNEgtkkRtSJeACJMmJJhqLtvjhpOBpGHQHAxPVkgQtxSVIK.wgKxAOfJCtUBCnUPw.foundation:"></script>
<script src="z39.50://..."></script>
<audio autoplay="" src="z39.50://...:" preload="none">

OS: Mac OS X 10.11.1 (x86_64), x86_64
Checked build: ASAN debug
Checked version: 5e169ea

Backtrace:

ASSERTION FAILED: !memoryCache.resourceForRequest(request.resourceRequest(), sessionID())
/Users/reni/work/WebKit/Source/WebCore/loader/cache/CachedResourceLoader.cpp(674) : CachedResourceHandle<WebCore::CachedResource> WebCore::CachedResourceLoader::loadResource(CachedResource::Type, WebCore::CachedResourceRequest &)
1   0x10fdb80d4 WTFCrash
2   0x1140fde65 WebCore::CachedResourceLoader::loadResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&)
3   0x1140f944e WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&)
4   0x1140fad4d WebCore::CachedResourceLoader::requestMedia(WebCore::CachedResourceRequest&)
5   0x11a078b4e WebCore::WebCoreAVFResourceLoader::startLoading()
6   0x117b86144 WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource(AVAssetResourceLoadingRequest*)
7   0x117bda886 -[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11::operator()() const
8   0x117bda7bd void std::__1::__invoke_void_return_wrapper<void>::__call<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11&>(-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11&&&)
9   0x117bda55c std::__1::__function::__func<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11, std::__1::allocator<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11>, void ()>::operator()()
10  0x10ebf09fb std::__1::function<void ()>::operator()() const
11  0x10fe4b86f WTF::dispatchFunctionsFromMainThread()
12  0x10fe4e1c5 -[JSWTFMainThreadCaller call]
13  0x7fff8d4d641e __NSThreadPerformPerform
14  0x7fff888498b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
15  0x7fff888290ac __CFRunLoopDoSources0
16  0x7fff888285cf __CFRunLoopRun
17  0x7fff88827fc8 CFRunLoopRunSpecific
18  0x7fff86540d55 RunCurrentEventLoopInMode
19  0x7fff86540b8f ReceiveNextEventCommon
20  0x7fff865409cf _BlockUntilNextEventMatchingListInModeWithFilter
21  0x7fff97bc6d96 _DPSNextEvent
22  0x7fff97bc61c5 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
23  0x7fff97bbad28 -[NSApplication run]
24  0x7fff97b83fbe NSApplicationMain
25  0x7fff9408b4f2 _xpc_objc_main
26  0x7fff94089f1e xpc_main
27  0x106ce21cc main
28  0x7fff908b05ad start
29  0x1
ASAN:SIGSEGV
=================================================================
==52511==ERROR: AddressSanitizer: SEGV on unknown address 0x0000bbadbeef (pc 0x00010fdb810c bp 0x7fff58f1bed0 sp 0x7fff58f1bec0 T0)
    #0 0x10fdb810b in WTFCrash (/Users/reni/work/WebKit/WebKitBuild/Debug/JavaScriptCore.framework/Versions/A/JavaScriptCore+0x2b2110b)
    #1 0x1140fde64 in WebCore::CachedResourceLoader::loadResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&) (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x649e64)
    #2 0x1140f944d in WebCore::CachedResourceLoader::requestResource(WebCore::CachedResource::Type, WebCore::CachedResourceRequest&) (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x64544d)
    #3 0x1140fad4c in WebCore::CachedResourceLoader::requestMedia(WebCore::CachedResourceRequest&) (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x646d4c)
    #4 0x11a078b4d in WebCore::WebCoreAVFResourceLoader::startLoading() (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x65c4b4d)
    #5 0x117b86143 in WebCore::MediaPlayerPrivateAVFoundationObjC::shouldWaitForLoadingOfResource(AVAssetResourceLoadingRequest*) (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x40d2143)
    #6 0x117bda885 in -[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11::operator()() const (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x4126885)
    #7 0x117bda7bc in void std::__1::__invoke_void_return_wrapper<void>::__call<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11&>(-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11&&&) (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x41267bc)
    #8 0x117bda55b in std::__1::__function::__func<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11, std::__1::allocator<-[WebCoreAVFLoaderDelegate resourceLoader:shouldWaitForLoadingOfRequestedResource:]::$_11>, void ()>::operator()() (/Users/reni/work/WebKit/WebKitBuild/Debug/WebCore.framework/Versions/A/WebCore+0x412655b)
    #9 0x10ebf09fa in std::__1::function<void ()>::operator()() const (/Users/reni/work/WebKit/WebKitBuild/Debug/JavaScriptCore.framework/Versions/A/JavaScriptCore+0x19599fa)
    #10 0x10fe4b86e in WTF::dispatchFunctionsFromMainThread() (/Users/reni/work/WebKit/WebKitBuild/Debug/JavaScriptCore.framework/Versions/A/JavaScriptCore+0x2bb486e)
    #11 0x10fe4e1c4 in -[JSWTFMainThreadCaller call] (/Users/reni/work/WebKit/WebKitBuild/Debug/JavaScriptCore.framework/Versions/A/JavaScriptCore+0x2bb71c4)
    #12 0x7fff8d4d641d in __NSThreadPerformPerform (/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation+0x7741d)
    #13 0x7fff888498b0 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+0xaa8b0)
    #14 0x7fff888290ab in __CFRunLoopDoSources0 (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+0x8a0ab)
    #15 0x7fff888285ce in __CFRunLoopRun (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+0x895ce)
    #16 0x7fff88827fc7 in CFRunLoopRunSpecific (/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation+0x88fc7)
    #17 0x7fff86540d54 in RunCurrentEventLoopInMode (/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox+0x30d54)
    #18 0x7fff86540b8e in ReceiveNextEventCommon (/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox+0x30b8e)
    #19 0x7fff865409ce in _BlockUntilNextEventMatchingListInModeWithFilter (/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox+0x309ce)
    #20 0x7fff97bc6d95 in _DPSNextEvent (/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x49d95)
    #21 0x7fff97bc61c4 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x491c4)
    #22 0x7fff97bbad27 in -[NSApplication run] (/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x3dd27)
    #23 0x7fff97b83fbd in NSApplicationMain (/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit+0x6fbd)
    #24 0x7fff9408b4f1 in _xpc_objc_main (/usr/lib/system/libxpc.dylib+0x114f1)
    #25 0x7fff94089f1d in xpc_main (/usr/lib/system/libxpc.dylib+0xff1d)
    #26 0x106ce21cb in main (/Users/reni/work/WebKit/WebKitBuild/Debug/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.Development.xpc/Contents/MacOS/com.apple.WebKit.WebContent.Development+0x1000021cb)
    #27 0x7fff908b05ac in start (/usr/lib/system/libdyld.dylib+0x35ac)
    #28 0x0  (<unknown module>)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 WTFCrash
==52511==ABORTING
Comment 1 Brent Fulgham 2016-08-05 09:38:48 PDT
This issue does not reproduce under r204037. If you believe there is still an issue, please reopen the bug and provide a revised test case.