Bug 142912

Summary: http/tests/xmlhttprequest/workers/methods-async.html is flaky
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: aestes, ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=160368

Description Chris Dumez 2015-03-20 10:41:47 PDT
http/tests/xmlhttprequest/workers/methods-async.html is flaky. It sometimes crashes.

I have seen the following traces on the bots:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x00000001053d6473 WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow>::operator=(WTF::Vector<WTF::String, 0ul, WTF::CrashOnOverflow> const&) + 435
1   com.apple.WebCore             	0x000000010553c9da WebCore::ResourceRequestBase::operator=(WebCore::ResourceRequestBase const&) + 298
2   com.apple.WebCore             	0x000000010568b06c WebCore::DocumentLoader::setLastCheckedRequest(WebCore::ResourceRequest const&) + 28
3   com.apple.WebCore             	0x0000000105d056a6 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, WebCore::DocumentLoader*, WTF::PassRefPtr<WebCore::FormState>, std::__1::function<void (WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool)>) + 1558
4   com.apple.WebCore             	0x0000000105683732 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr<WebCore::FormState>, WebCore::AllowNavigationToInvalidURL) + 2114
5   com.apple.WebCore             	0x000000010568095e WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 254
6   com.apple.WebCore             	0x0000000105682e9b WebCore::FrameLoader::load(WebCore::FrameLoadRequest const&) + 1771
7   com.apple.WebKitLegacy        	0x000000010784cb6d -[WebFrame loadRequest:] + 349 (WebFrame.mm:2495)
8   DumpRenderTree                	0x0000000103e498ea runTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 2566
9   DumpRenderTree                	0x0000000103e48cae dumpRenderTree(int, char const**) + 2965
10  DumpRenderTree                	0x0000000103e49ee6 DumpRenderTreeMain(int, char const**) + 1187
11  libdyld.dylib                 	0x00007fff8f97b5c9 start + 1

====

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x000000010693fe05 WTF::StringImpl::createFromLiteral(char const*) + 37
1   com.apple.JavaScriptCore      	0x000000010694cb62 WTF::String::String(WTF::ASCIILiteral) + 18
2   com.apple.WebCore             	0x000000010790af85 WebCore::DiagnosticLoggingKeys::pageLoadedKey() + 21 (DiagnosticLoggingKeys.cpp:93)
3   com.apple.WebCore             	0x0000000107a82259 WebCore::FrameLoader::checkLoadCompleteForThisFrame() + 777 (FrameLoader.cpp:2273)
4   com.apple.WebCore             	0x0000000107a7a02b WebCore::FrameLoader::checkLoadComplete() + 283 (Vector.h:634)
5   com.apple.WebCore             	0x000000010793261c WebCore::DocumentLoader::finishedLoading(double) + 636 (DocumentLoader.cpp:449)
6   com.apple.WebCore             	0x0000000107936245 WebCore::DocumentLoader::maybeLoadEmpty() + 709 (DocumentLoader.cpp:1398)
7   com.apple.WebCore             	0x000000010793635b WebCore::DocumentLoader::startLoadingMainResource() + 219 (DocumentLoader.cpp:1408)
8   com.apple.WebCore             	0x0000000107a7fdf7 WebCore::FrameLoader::continueLoadAfterNavigationPolicy(WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool, WebCore::AllowNavigationToInvalidURL) + 1015 (FrameLoader.cpp:2950)
9   com.apple.WebCore             	0x0000000107a8626f std::__1::__function::__func<WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr<WebCore::FormState>, WebCore::AllowNavigationToInvalidURL)::$_4, std::__1::allocator<WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr<WebCore::FormState>, WebCore::AllowNavigationToInvalidURL)::$_4>, void (WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool)>::operator()(WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>&&, bool&&) + 47 (functional:1370)
10  com.apple.WebCore             	0x0000000108105296 WebCore::PolicyChecker::checkNavigationPolicy(WebCore::ResourceRequest const&, WebCore::DocumentLoader*, WTF::PassRefPtr<WebCore::FormState>, std::__1::function<void (WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool)>) + 1126 (PassRefPtr.h:58)
11  com.apple.WebCore             	0x0000000107a7f264 WebCore::FrameLoader::loadWithDocumentLoader(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr<WebCore::FormState>, WebCore::AllowNavigationToInvalidURL) + 2148 (functional:1703)
12  com.apple.WebCore             	0x0000000107a7c47e WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 254 (PassRefPtr.h:58)
13  com.apple.WebCore             	0x0000000107a7e9ab WebCore::FrameLoader::load(WebCore::FrameLoadRequest const&) + 1771 (FrameLoader.cpp:1315)
14  com.apple.WebKitLegacy        	0x0000000109c4d82d -[WebFrame loadRequest:] + 349 (WebFrame.mm:2509)
15  DumpRenderTree                	0x000000010624a8ea runTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 2566 (DumpRenderTree.mm:1986)
16  DumpRenderTree                	0x0000000106249cae dumpRenderTree(int, char const**) + 2965 (DumpRenderTree.mm:1121)
17  DumpRenderTree                	0x000000010624aee6 DumpRenderTreeMain(int, char const**) + 1187 (DumpRenderTree.mm:1352)
18  libdyld.dylib                 	0x00007fff962af5c9 start + 1