| Summary: | Concurrency bug in WebAssembly LLInt compilation | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ian Grunert <ian.grunert> | ||||||||||
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||||||
| Status: | NEW --- | ||||||||||||
| Severity: | Normal | CC: | Hironori.Fujii, justin_michaud, keith_miller, mark.lam, max, webkit-bug-importer | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Other | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=267686 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ian Grunert
2023-10-31 07:25:25 PDT
Created attachment 468427 [details]
Stack trace
I spent some time looking at this today. On a release build, I was able to repro this even with a single wasm compiler thread. With the logging enabled for WasmEntryPlan and WasmWorklist, on a single thread it was able to complete wasm compilation - crashed afterwards with the same stack trace as before. Couldn't repro on Gnome Web running under WSL. No problems running JetStream2, I wonder if it's something to do with the number of functions involved (520). Created attachment 469029 [details]
workaround patch
Created attachment 469035 [details]
WIP patch
Created attachment 469050 [details]
WIP patch
@Fujii Hironori Nice catch! r=me I'm not confident this is clang's bug. This might be a JSC bug. JSC may break callee saved registers. |