Repository navigation
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-threading-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-browserBrowser variant of arch-wasm
Milestone
Description
Error Blob
{
"ErrorMessage": "RangeError: Invalid atomic access index",
"BuildRetry": false,
"ErrorPattern": "",
"ExcludeConsoleLog": false
}Reproduction Steps
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=513268
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=513268
Error message validated: RangeError: Invalid atomic access index
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/5/2024 12:40:40 PM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 1 | 10 | 21 |
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-threading-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-browserBrowser variant of arch-wasm
Activity
pavelsavara commentedon Jan 23, 2024
Log
lambdageek commentedon Jan 26, 2024
Not getting very far with trying to repro this locally. See #96191 (comment) for my methodology
pavelsavara commentedon Feb 7, 2024
Log
Build
pavelsavara commentedon Feb 7, 2024
Log
Build
pavelsavara commentedon Feb 7, 2024
In both last cases it's the setup of await for next SAB emscripten messsage.
It seems from the message prefix, that the thread is not attached to mono and possibly not even yet pthread.
So this could be during worker becoming pthread.
Simplified emscripten code
The method is updating the memory view via
GROWABLE_HEAP_I32(), so this is not memory growth problem.The pthread_id in out console message prefix could be obsolete, from the last run of the worker as a pthread.
We are trying to await adress
_pthread_self(). I wonder how that could become un-aligned ?Especially with
pthread_ptr >> 2being there.pavelsavara commentedon Feb 7, 2024
The memory allocation for the pthread is (latest version, not the one we have)
https://github.com/emscripten-core/emscripten/blob/21f25339df9c6aa8c288297de73236e6aaa79582/system/lib/pthread/pthread_create.c#L165-L172
There is some ASAN dance above it and I'm not sure if this is ASAN opt-out ?
pavelsavara commentedon Feb 17, 2024
Again, this seems to be thread which is not currently attached. Probably memory growth ?
try to fix dotnet#96545
try to fix dotnet/runtime#96545 (#98608)