Skip to content

[MSAN] MemorySanitizer: use-of-uninitialized-value in dartaotruntime_msan on 3.14.0-112.0.dev #64049

Closed as duplicate

Description

@kevmoo

Running tests against the vm-msan runtime using dartaotruntime_msan on Linux x64 (3.14.0-112.0.dev) crashes with a MemorySanitizer uninitialized-value read during process execution, causing test runner timeouts and exit failures (SIGKILL / exit code -9).

References & Context

Environment

  • Dart SDK: 3.14.0-112.0.dev (dev)
  • OS: Linux x64 (ubuntu-24.04)
  • Binary: /opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)

Reproduction Steps

  1. In dart-lang/test (under pkgs/test), run tests targeting the vm-msan runtime:
    dart test test/runner/sanitizer_test.dart
    # or
    dart test test/runner/compiler_runtime_matrix_test.dart -p vm-msan -c exe
  2. Observe dartaotruntime_msan encountering MemorySanitizer: use-of-uninitialized-value upon loading the test.

Stack Trace / Error Output

00:00 +0: loading test.dart
[e] ==4096==WARNING: MemorySanitizer: use-of-uninitialized-value
[e]     #0 0x55658603f9bc  (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0xaab9bc) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
[e]     #1 0x55658602f96a  (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0xa9b96a) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
[e]     #2 0x556585995be3  (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0x401be3) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
[e]     #3 0x556585994a7c  (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0x400a7c) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
[e]     #4 0x7f49bda2a1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 328820b908de8ea1ef79afa8995e302e819163d7)
[e]     #5 0x7f49bda2a28a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 328820b908de8ea1ef79afa8995e302e819163d7)
[e]     #6 0x556585907984  (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0x373984) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
[e] 
[e] SUMMARY: MemorySanitizer: use-of-uninitialized-value (/opt/hostedtoolcache/dart/3.14.0-112.0.dev/x64/bin/dartaotruntime_msan+0xaab9bc) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8) 
[e] Exiting

Activity

  1. kevmoo commented on Aug 13, 2026

    @kevmoo
    MemberAuthor

    Confirmed locally with the downloaded 3.14.0-112.0.dev prebuilt Linux x64 SDK.

    The crash occurs immediately during binary initialization without running any test framework code — even invoking --version on the MSAN binaries reproduces it directly:

    $ /tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan --version
    ==2186372==WARNING: MemorySanitizer: use-of-uninitialized-value
        #0 0x55f254fe99bc  (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0xaab9bc) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
        #1 0x55f254fd996a  (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0xa9b96a) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
        #2 0x55f25493fbe3  (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0x401be3) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
        #3 0x55f25493ea7c  (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0x400a7c) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
        #4 0x7f1efc40ff76  (/usr/lib/x86_64-linux-gnu/libc.so.6+0x29f76) (BuildId: 6da52175e8398119d2aaec121f7ff07e20c8b322)
        #5 0x7f1efc410026  (/usr/lib/x86_64-linux-gnu/libc.so.6+0x2a026) (BuildId: 6da52175e8398119d2aaec121f7ff07e20c8b322)
        #6 0x55f2548b1984  (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0x373984) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8)
    
    SUMMARY: MemorySanitizer: use-of-uninitialized-value (/tmp/dart-sdk-dev/dart-sdk/bin/dartaotruntime_msan+0xaab9bc) (BuildId: 577631e0234e91bd245eb81794c719d4f0cf25f8) 
    Exiting

    Both dartaotruntime_msan and dartcliruntime_msan are affected.

  2. simolus3 commented on Aug 15, 2026

    @simolus3
  3. added
    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
    on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions