Skip to content

[browser][MT] MutexTests - operation does not support unaligned accesses #96191

Open

Description

@pavelsavara

Error Blob

{
  "ErrorMessage": "RuntimeError: operation does not support unaligned accesses",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904&view=logs&jobId=63c2d0c8-fec2-5788-81c8-f3ac95e8841f

[15:41:29] warn: worker sent an error! http://127.0.0.1:46177/_framework/dotnet.native.worker.js:1: Uncaught RuntimeError: operation does not support unaligned accesses
[15:41:29] fail: MONO_WASM: Error
                     at He (http://127.0.0.1:46177/_framework/dotnet.js:3:19726)
                     at e (http://127.0.0.1:46177/_framework/dotnet.js:3:33700)
                     at http://127.0.0.1:46177/_framework/dotnet.js:3:33845
[15:41:29] fail: Error: [MONO] /__w/1/s/src/mono/mono/mini/interp/transform.c:1136 <disabled>
                     at Rt (http://127.0.0.1:46177/_framework/dotnet.runtime.js:3:13935)
                     at ud (http://127.0.0.1:46177/_framework/dotnet.runtime.js:3:208105)
                     at wasm_trace_logger (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[199]:0x148b6)
                     at eglib_log_adapter (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[683]:0x48f8e)
                     at monoeg_g_logv_nofree (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[604]:0x4739b)
                     at monoeg_g_log (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[606]:0x4745e)
                     at monoeg_g_log_disabled (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[607]:0x47491)
                     at store_local (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[410]:0x3467b)
                     at generate_code (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[407]:0x2d6da)
                     at mono_interp_transform_method (http://127.0.0.1:46177/_framework/dotnet.native.wasm:wasm-function[451]:0x39737)
[15:41:29] fail: [out of order message from the browser]: http://127.0.0.1:46177/_framework/dotnet.native.worker.js 0 Uncaught RuntimeError: operation does not support unaligned accesses

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=556904
Error message validated: RuntimeError: operation does not support unaligned accesses
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/7/2024 4:03:46 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    arch-wasm
    os-browser
    on Dec 19, 2023
  2. added this to the 9.0.0 milestone on Dec 19, 2023
  3. pavelsavara commented on Dec 19, 2023

    @pavelsavara
    MemberAuthor
  4. pavelsavara commented on Dec 19, 2023

    @pavelsavara
    MemberAuthor

    here is one more

    [11:01:33] info: [2023-12-17T11:01:33.762Z] [PASS] System.Threading.Tests.MutexTests.OpenExisting(name: "ada314549e444c7da1055fc1741a507e")
    [11:01:33] warn: worker sent an error! http://127.0.0.1:38575/_framework/dotnet.native.worker.js:1: Uncaught RuntimeError: operation does not support unaligned accesses
    [11:01:33] fail: MONO_WASM: Error
                         at Qe (http://127.0.0.1:38575/_framework/dotnet.js:3:19749)
                         at e (http://127.0.0.1:38575/_framework/dotnet.js:3:33736)
                         at http://127.0.0.1:38575/_framework/dotnet.js:3:33881
    [11:01:33] warn: MONO_WASM: mono_wasm_exit failed {}
    [11:01:33] fail: [out of order message from the browser]: http://127.0.0.1:38575/_framework/dotnet.native.worker.js 0 Uncaught RuntimeError: operation does not support unaligned accesses
    

    Log

  5. kg commented on Dec 19, 2023

    @kg
    Contributor

    I don't see any atomics in store_local, so the stack trace must be wrong

  6. kg commented on Dec 19, 2023

    @kg
    Contributor

    Ah, if so we'd need to run it under a debugger and hope it will pause there

  7. pavelsavara commented on Dec 21, 2023

    @pavelsavara
    Author
  8. pavelsavara commented on Dec 21, 2023

    @pavelsavara
    MemberAuthor

    @lambdageek any thoughts ?

  9. lambdageek commented on Dec 21, 2023

    @lambdageek
    Member

    It's either us or emscripten libc, right?

    Maybe we can instrument all our atomic ops with an alignment check?

  10. pavelsavara commented on Jan 3, 2024

    @pavelsavara
    Author
  11. added
    Known Build Error
    on Jan 5, 2024
  12. 15 remaining items

  13. locked and limited conversation to collaborators on May 23, 2024
  14. lewing commented on Jul 30, 2024

    @lewing
    Member

    This could be just another manifestation of the MT corruption we're seeing other places where the invalid address is unaligned

  15. ilonatommy commented on Aug 5, 2024

    @ilonatommy
    Member

    Log with dumped worker info:

    [08:57:13] fail: [0x000fb4f8--UI- 08:57:13.153] MONO_WASM: Unhandled error: RuntimeError: operation does not support unaligned accesses
    [08:57:13] info: [0x000fb4f8--UI- 08:57:13.155] MONO_WASM: Dumping web worker info as seen by UI thread, it could be stale:
    [08:57:13] info: 000 | 0x000fb4f8--UI-: isRunning: true isAttached: true isEventLoop:false reuseCount:  0 - UI Thread
    [08:57:13] info: 001 | 0x00d25070-dpty: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 -
    [08:57:13] info: 002 | 0x02bda650--IO-: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 -
    [08:57:13] info: 003 | 0x030e2908-norm: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 - Finalizer
    [08:57:13] info: 005 | 0x04c08030-gate: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 - .NET TP Gate
    [08:57:13] info: 007 |           -    : isRunning:false isAttached:false isEventLoop:false reuseCount:  0 - emscripten-pool
    [08:57:13] info: 008 | --05cc8030-emsc: isRunning:false isAttached:false isEventLoop:false reuseCount:  1 - unregistered:(.NET Long Running Task)
    [08:57:13] info: 006 | --056a5268-emsc: isRunning:false isAttached:false isEventLoop:false reuseCount:  1 - unregistered:(.NET Long Running Task)
    [08:57:13] info: 004 | --045e5e68-emsc: isRunning:false isAttached:false isEventLoop:false reuseCount:  1 - unregistered:(.NET TP Worker)
    [08:57:13] fail: [0x000fb4f8--UI- 08:57:13.168] MONO_WASM: operation does not support unaligned accesses
                     RuntimeError: operation does not support unaligned accesses
                         at a_cas (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8617]:0x223689)
                         at __private_cond_signal (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8733]:0x228591)
                         at pthread_cond_signal (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8726]:0x228011)
                         at call_then_finish_task (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8715]:0x2273be)
                         at call_with_ctx (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8712]:0x227350)
                         at em_task_queue_execute (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8697]:0x226ce9)
                         at receive_notification (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8703]:0x226ed5)
                         at em_task_queue_execute (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8697]:0x226ce9)
                         at _emscripten_check_mailbox (http://127.0.0.1:44717/_framework/dotnet.native.wasm:wasm-function[8841]:0x22ecf3)
                         at callUserCallback (http://127.0.0.1:44717/_framework/dotnet.native.js:8:98666)
                         at checkMailbox (http://127.0.0.1:44717/_framework/dotnet.native.js:8:99197)
    
  16. assigned and unassigned on Aug 15, 2024
  17. modified the milestones: 9.0.0, 10.0.0 on Aug 15, 2024
  18. pavelsavara commented on Sep 24, 2024

    @pavelsavara
    MemberAuthor

    Log

    [19:48:09] fail: [0x000fbca8--UI- 19:48:09.020] MONO_WASM: operation does not support unaligned accesses
                     RuntimeError: operation does not support unaligned accesses
                         at a_cas (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8611]:0x224a75)
                         at __private_cond_signal (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8725]:0x2297d7)
                         at pthread_cond_signal (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8718]:0x229257)
                         at call_then_finish_task (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8707]:0x228604)
                         at call_with_ctx (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8704]:0x228596)
                         at em_task_queue_execute (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8689]:0x227f2f)
                         at receive_notification (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8695]:0x22811b)
                         at em_task_queue_execute (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8689]:0x227f2f)
                         at _emscripten_check_mailbox (http://127.0.0.1:37677/_framework/dotnet.native.wasm:wasm-function[8833]:0x22ff6b)
                         at callUserCallback (http://127.0.0.1:37677/_framework/dotnet.native.js:8:98666)
                         at checkMailbox (http://127.0.0.1:37677/_framework/dotnet.native.js:8:99197)
    
  19. modified the milestones: 10.0.0, Future on Jul 18, 2025
  20. pavelsavara commented on Jul 30, 2025

    @pavelsavara
    MemberAuthor

    Log

    [10:04:09] fail: [0x000ec878--UI- 10:04:09.814] MONO_WASM: Unhandled error: RuntimeError: operation does not support unaligned accesses
    [10:04:09] info: [0x000ec878--UI- 10:04:09.816] MONO_WASM: Dumping web worker info as seen by UI thread, it could be stale:
    [10:04:09] info: 000 | 0x000ec878--UI-: isRunning: true isAttached: true isEventLoop:false reuseCount:  0 - UI Thread
    [10:04:09] info: 001 | 0x00ed74f0-dpty: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 -
    [10:04:09] info: 002 | 0x028324f0--IO-: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 -
    [10:04:09] info: 003 | 0x02d327a0-norm: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 - Finalizer
    [10:04:09] info: 004 | 0x03ae6ac0-pool: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 - .NET TP Worker
    [10:04:09] info: 005 | 0x04100048-gate: isRunning: true isAttached: true isEventLoop:false reuseCount:  1 - .NET TP Gate
    [10:04:09] info: 007 |           -    : isRunning:false isAttached:false isEventLoop:false reuseCount:  0 - emscripten-pool
    [10:04:09] info: 006 | --04b416a0-emsc: isRunning:false isAttached:false isEventLoop:false reuseCount:  1 - unregistered:(.NET Long Running Task)
    [10:04:09] info: 008 | --05147970-emsc: isRunning:false isAttached:false isEventLoop:false reuseCount:  1 - unregistered:(.NET Long Running Task)
    [10:04:09] fail: [0x000ec878--UI- 10:04:09.850] MONO_WASM: operation does not support unaligned accesses
                     RuntimeError: operation does not support unaligned accesses
                         at a_cas (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8607]:0x2295e6)
                         at __private_cond_signal (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8721]:0x22e35f)
                         at pthread_cond_signal (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8714]:0x22ddd5)
                         at call_then_finish_task (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8703]:0x22d17f)
                         at call_with_ctx (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8700]:0x22d111)
                         at em_task_queue_execute (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8685]:0x22caa8)
                         at receive_notification (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8691]:0x22cc94)
                         at em_task_queue_execute (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8685]:0x22caa8)
                         at _emscripten_check_mailbox (http://127.0.0.1:38305/_framework/dotnet.native.wasm:wasm-function[8828]:0x234ad8)
                         at callUserCallback (http://127.0.0.1:38305/_framework/dotnet.native.js:8:98666)
                         at checkMailbox (http://127.0.0.1:38305/_framework/dotnet.native.js:8:99197)
    [10:04:09] info: WASM EXIT 1
    
  21. added
    disabled-test
    and removed
    Known Build Error
    on Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-VM-threading-monodisabled-testos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions