Bug 201684

Summary: [Win] ASSERT(isMainThread()) is failing in MIMETypeRegistry::getMIMETypeForExtension
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap, bfulgham
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=47700
Attachments:
Description Flags
webkitdirectory-open-panel-crash-log.txt none

Description Fujii Hironori 2019-09-11 03:12:10 PDT
Created attachment 378551 [details]
webkitdirectory-open-panel-crash-log.txt

[Win] ASSERT(isMainThread()) is faling in MIMETypeRegistry::getMIMETypeForExtension

fast/forms/file/entries-api/webkitdirectory-open-panel.html
is crashing in WinCairo WK2 Debug builds.

Callstack:

> [WTF!WTFCrash+0xe]
> [WebKit2!WTFCrashWithInfo+0x20]
> [WebKit2!WebCore::MIMETypeRegistry::getMIMETypeForExtension+0x8a]
> [WebKit2!WebCore::File::computeNameAndContentType+0xed]
> [WebKit2!WebCore::File::create+0x84]
> [WebKit2!WebCore::File::createWithRelativePath+0x87]
> [WebKit2!WebCore::appendDirectoryFiles+0x222]
> [WebKit2!WebCore::appendDirectoryFiles+0x1d0]
> [WebKit2!WebCore::FileListCreator::createFileList<WebCore::FileListCreator::ShouldResolveDirectories::Yes>+0xe3]
> [WebKit2!WebCore::FileListCreator::FileListCreator::<unnamed-tag>::operator+0x68]
> [WebKit2!WTF::Detail::CallableWrapper<`lambda at ..\..\Source\WebCore\html/FileListCreator.cpp:68:31',void>::call+0x17]
> [WTF!WTF::Function<void +0x90]
> [WTF!WTF::WorkQueue::performWorkOnRegisteredWorkThread+0x131]
> [WTF!WTF::WorkQueue::workThreadCallback+0x75]
> [ntdll!RtlpTpWorkCallback+0x165]
> [ntdll!TppWorkerThread+0x8d4]
> [KERNEL32!BaseThreadInitThunk+0x14]
> [ntdll!RtlUserThreadStart+0x21]
Comment 1 Fujii Hironori 2019-09-11 03:18:28 PDT
This assertion was introduced by:
Bug 47700 – Make mime type lookup in File::create(path) thread-safe
Comment 2 Fujii Hironori 2022-05-22 23:42:09 PDT
I don't see this problem nowadays.