Bug 201684 - [Win] ASSERT(isMainThread()) is failing in MIMETypeRegistry::getMIMETypeForExtension
Summary: [Win] ASSERT(isMainThread()) is failing in MIMETypeRegistry::getMIMETypeForEx...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-11 03:12 PDT by Fujii Hironori
Modified: 2022-05-22 23:42 PDT (History)
2 users (show)

See Also:


Attachments
webkitdirectory-open-panel-crash-log.txt (44.93 KB, text/plain)
2019-09-11 03:12 PDT, Fujii Hironori
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.