| Summary: | [MSVC] ASSERTION FAILED: m_wrapper in WebCore::JSEventListener::ensureJSFunction for fast/workers/worker-gc.html | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||||||||
| Component: | Bindings | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | cdumez, darin, don.olmstead, esprehn+autocc, ews-watchlist, kangil.han, ross.kirsling, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | WebKit Nightly Build | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Fujii Hironori
2022-11-07 13:24:28 PST
Do we have a regression point? This isn't a recent regression. The tests has been skipped for WinCairo since 2018 (200180@main). Bug 194596 – [ Mac Debug ] ASSERTION FAILED: Layout Test performance-api/performance-observer-basic.html is a flaky crash It looks like a similar problem. 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. Created attachment 463454 [details]
WIP patch
I don't know why this patch fixes the bug. Compiler bug?
Created attachment 463489 [details]
repro.cpp
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 Created attachment 463513 [details]
Patch
Comment on attachment 463513 [details]
Patch
Thank you for the review.
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]. 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.
Reopening to attach new patch. Created attachment 463525 [details]
Patch
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]. |