WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
247584
[MSVC] ASSERTION FAILED: m_wrapper in WebCore::JSEventListener::ensureJSFunction for fast/workers/worker-gc.html
https://bugs.webkit.org/show_bug.cgi?id=247584
Summary
[MSVC] ASSERTION FAILED: m_wrapper in WebCore::JSEventListener::ensureJSFunct...
Fujii Hironori
Reported
2022-11-07 13:24:28 PST
[WinCairo] ASSERTION FAILED: m_wrapper in WebCore::JSEventListener::ensureJSFunction for fast/workers/worker-gc.html WinCairo Debug WK1 and WK2 is reporting an assertion failure for the following tests. fast/workers/worker-init.html fast/workers/worker-gc.html stderr: ASSERTION FAILED: m_wrapper C:\home\webkit\gb\Source\WebCore\bindings\js\JSEventListener.h(157) : WebCore::JSEventListener::ensureJSFunction 1 00007FFD3C60248B WTFCrash 2 00007FFCD3BBCE7E WTFCrashWithInfo 3 00007FFCD6276227 WebCore::JSEventListener::ensureJSFunction 4 00007FFCD625EAAA WebCore::JSEventListener::handleEvent 5 00007FFCD6B0A201 WebCore::EventTarget::innerInvokeEventListeners 6 00007FFCD6B09AEB WebCore::EventTarget::fireEventListeners 7 00007FFCD6B0938C WebCore::EventTarget::dispatchEvent 8 00007FFCD8765B5F WebCore::Worker::dispatchEvent 9 00007FFCD8773ACF ``WebCore::WorkerMessagingProxy::postMessageToWorkerObject'::`2'::<lambda_1>::operator()<WebCore::ScriptExecutionContext>'::`2'::<lambda_1>::operator() 10 00007FFCD8773E3B WTF::Detail::CallableWrapper<``WebCore::WorkerMessagingProxy::postMessageToWorkerObject'::`2'::<lambda_1>::operator()<WebCore::ScriptExecutionContext>'::`2'::<lambda_1>,void>::call 11 00007FFCD3BC9E34 WTF::Function<void __cdecl(void)>::operator() 12 00007FFCD879366B `WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive<WebCore::Worker>'::`2'::<lambda_1>::operator() 13 00007FFCD879519B WTF::Detail::CallableWrapper<`WebCore::ActiveDOMObject::queueTaskKeepingObjectAlive<WebCore::Worker>'::`2'::<lambda_1>,void>::call 14 00007FFCD3BC9E34 WTF::Function<void __cdecl(void)>::operator() 15 00007FFCD6B3559B WebCore::EventLoopFunctionDispatchTask::execute 16 00007FFCD6B121DE WebCore::EventLoop::run 17 00007FFCD6C7B4D8 WebCore::WindowEventLoop::didReachTimeToRun 18 00007FFCD6C91C4A std::invoke<void (__cdecl WebCore::WindowEventLoop::*&)(void),WebCore::WindowEventLoop * &> 19 00007FFCD6C8ACBE std::_Invoker_ret<std::_Unforced>::_Call<void (__cdecl WebCore::WindowEventLoop::*&)(void),WebCore::WindowEventLoop * &> 20 00007FFCD6C8AD21 std::_Call_binder<std::_Unforced,0,void (__cdecl WebCore::WindowEventLoop::*)(void),std::tuple<WebCore::WindowEventLoop *>,std::tuple<> > 21 00007FFCD6C8A95B std::_Binder<std::_Unforced,void (__cdecl WebCore::WindowEventLoop::*&)(void),WebCore::WindowEventLoop *>::operator()<> 22 00007FFCD6C9A7AB WTF::Detail::CallableWrapper<std::_Binder<std::_Unforced,void (__cdecl WebCore::WindowEventLoop::*&)(void),WebCore::WindowEventLoop *>,void>::call 23 00007FFCD3BC9E34 WTF::Function<void __cdecl(void)>::operator() 24 00007FFCD3BCAD3B WebCore::Timer::fired 25 00007FFCD7A0E2C8 WebCore::ThreadTimers::sharedTimerFiredInternal 26 00007FFCD7A0FC3F `WebCore::ThreadTimers::setSharedTimer'::`8'::<lambda_1>::operator() 27 00007FFCD7A1650B WTF::Detail::CallableWrapper<`WebCore::ThreadTimers::setSharedTimer'::`8'::<lambda_1>,void>::call 28 00007FFCD3BC9E34 WTF::Function<void __cdecl(void)>::operator() 29 00007FFCD79ABD87 WebCore::MainThreadSharedTimer::fired 30 00007FFCD411082A WebCore::TimerWindowWndProc 31 00007FFD7EEDE858 CallWindowProcW
Attachments
WIP patch
(804 bytes, patch)
2022-11-07 23:58 PST
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
repro.cpp
(593 bytes, text/plain)
2022-11-10 23:28 PST
,
Fujii Hironori
no flags
Details
Patch
(2.19 KB, patch)
2022-11-13 21:15 PST
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
Patch
(1.82 KB, patch)
2022-11-14 18:40 PST
,
Fujii Hironori
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2022-11-07 13:28:29 PST
Do we have a regression point?
Fujii Hironori
Comment 2
2022-11-07 13:50:14 PST
This isn't a recent regression. The tests has been skipped for WinCairo since 2018 (
200180@main
).
Fujii Hironori
Comment 3
2022-11-07 13:51:52 PST
Bug 194596
– [ Mac Debug ] ASSERTION FAILED: Layout Test performance-api/performance-observer-basic.html is a flaky crash It looks like a similar problem.
Fujii Hironori
Comment 4
2022-11-07 14:05:17 PST
Both tests started flaky failures for WinCairo Release since
255605@main
.
https://results.webkit.org/?suite=layout-tests&suite=layout-tests&test=fast%2Fworkers%2Fworker-gc.html&test=fast%2Fworkers%2Fworker-init.html&platform=wincairo
This can be a recent regression or just a race condition depending on the bot machine condition.
Fujii Hironori
Comment 5
2022-11-07 23:58:58 PST
Created
attachment 463454
[details]
WIP patch I don't know why this patch fixes the bug. Compiler bug?
Fujii Hironori
Comment 6
2022-11-10 23:28:53 PST
Created
attachment 463489
[details]
repro.cpp
Fujii Hironori
Comment 7
2022-11-10 23:56:02 PST
Reported the bug to MSVC team. -std:c++20 switch generates a wrong program for code with a template and a generic lambda capture
https://developercommunity.visualstudio.com/t/-std:c20-switch-generates-a-wrong-prog/10198407
Fujii Hironori
Comment 8
2022-11-13 21:15:53 PST
Created
attachment 463513
[details]
Patch
Fujii Hironori
Comment 9
2022-11-14 12:08:34 PST
Comment on
attachment 463513
[details]
Patch Thank you for the review.
EWS
Comment 10
2022-11-14 12:41:38 PST
Committed
256669@main
(1c7ad9614acd): <
https://commits.webkit.org/256669@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 463513
[details]
.
Radar WebKit Bug Importer
Comment 11
2022-11-14 12:42:19 PST
<
rdar://problem/102333724
>
Darin Adler
Comment 12
2022-11-14 17:54:24 PST
Comment on
attachment 463513
[details]
Patch Something that occurred to me after the fact is that we usually leave comments behind so that someone doesn’t just change the code back without realizing there’s a special consideration because of the MSVC bug.
Fujii Hironori
Comment 13
2022-11-14 18:40:19 PST
Reopening to attach new patch.
Fujii Hironori
Comment 14
2022-11-14 18:40:30 PST
Created
attachment 463525
[details]
Patch
EWS
Comment 15
2022-11-14 20:22:44 PST
Committed
256684@main
(d5130c84e256): <
https://commits.webkit.org/256684@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 463525
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug