Skip to content

mimalloc v3.3.0 / v3.3.1 fails on Windows ARM 64 #1277

Closed

Description

I noticed after upgrading from 3.2.8 to 3.3.0 Windows ARM 64 build started failing runtime:

2026-04-20T05:39:29.2859426Z �[1m�[91merror�[0m: test failed, to rerun pass `-p gitcomet --bin gitcomet`
2026-04-20T05:39:29.2859757Z 
2026-04-20T05:39:29.2859877Z Caused by:
2026-04-20T05:39:29.2860438Z   process didn't exit successfully: `C:\a\GitComet\GitComet\target\debug\deps\gitcomet-9b4087f497118505.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION

Intrestingly other environment / operating system combinations passed in our GitComet CI environment: https://github.com/Auto-Explore/GitComet/actions/runs/24650226264/job/72071266850

Activity

  1. daanx commented on Apr 21, 2026

    @daanx
    Collaborator

    Can you try again with v3.3.1 ? maybe the issue has been fixed.

  2. Havunen commented on Apr 22, 2026

    @Havunen
    Author
  3. changed the title [-]mimalloc v3.3.0 fails on Windows ARM 64[/-] [+]mimalloc v3.3.0 / v3.3.1 fails on Windows ARM 64[/+] on Apr 22, 2026
  4. daanx commented on Apr 22, 2026

    @daanx
    Collaborator

    Without a stack trace it is difficult to say what is causing this. Is there a trace that I missed?

    Maybe you can you try to compile mimalloc with -DMI_WIN_INIT_USE_TLS_DLLMAIN=1 ? (there is also a cmake switch with the same name). We switched to a new init/finalize on windows which maybe causes trouble on arm? (but the mimalloc workflow also tests on windows arm and it works, so, just guessing?).

  5. Havunen commented on Apr 23, 2026

    @Havunen
    Author

    I believe I have captured the trace for Windows 11 ARM failure here: https://github.com/Auto-Explore/GitComet/actions/runs/24823983257/job/72655202854?pr=168

    Also the full dump file is available for download. Here is summary

    Name                                              Length LastWriteTime
    ----                                              ------ -------------
    gitcomet-5e0245ab8a6fea4a.exe_260423_081204.dmp 33869347 4/23/2026 8:12:05 AM
    procdump.stderr.log                                  155 4/23/2026 8:12:01 AM
    procdump.stdout.log                                 1204 4/23/2026 8:12:05 AM
    
    ProcDump stdout:
    Process:               gitcomet-5e0245ab8a6fea4a.exe (10508)
    CPU threshold:         n/a
    Performance counter:   n/a
    Commit threshold:      n/a
    Threshold seconds:     n/a
    Hung window check:     Disabled
    Log debug strings:     Disabled
    Exception monitor:     Unhandled
    Exception filter:      [Includes]
                           *
                           [Excludes]
    Terminate monitor:     Disabled
    Cloning type:          Disabled
    Concurrent limit:      n/a
    Avoid outage:          n/a
    Number of dumps:       1
    Dump folder:           C:\CrashDumps\
    Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
    Queue to WER:          Disabled
    Kill after dump:       Disabled
    
    
    Press Ctrl-C to end monitoring without terminating the process.
    
    
    running 209 tests
    [08:12:03]Exception: C0000005.ACCESS_VIOLATION
    [08:12:04]Exception: C0000005.ACCESS_VIOLATION
    [08:12:04]Unhandled: C0000005.ACCESS_VIOLATION
    [08:12:04]Dump 1 info: Available space: 129416912896
    [08:12:04]Dump 1 initiated: C:\CrashDumps\gitcomet-5e0245ab8a6fea4a.exe_260423_081204.dmp
    [08:12:04]Dump 1 writing: Estimated dump file size is 34 MB.
    [08:12:05]Dump 1 complete: 34 MB written in 0.3 seconds
    [08:12:05]Dump count reached.
    
    ProcDump stderr:
    
    ProcDump v11.1 - Sysinternals process dump utility
    Copyright (C) 2009-2025 Mark Russinovich and Andrew Richards
    Sysinternals - www.sysinternals.com
    
    Analyzing gitcomet-5e0245ab8a6fea4a.exe_260423_081204.dmp with C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\cdb.exe
    
    ************* Preparing the environment for Debugger Extensions Gallery repositories **************
       ExtensionRepository : Implicit
       UseExperimentalFeatureForNugetShare : true
       AllowNugetExeUpdate : true
       NonInteractiveNuget : true
       AllowNugetMSCredentialProviderInstall : true
       AllowParallelInitializationOfLocalRepositories : true
    
       EnableRedirectToV8JsProvider : false
    
       -- Configuring repositories
          ----> Repository : LocalInstalled, Enabled: true
          ----> Repository : UserExtensions, Enabled: true
    
    >>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.031 seconds
    
    ************* Waiting for Debugger Extensions Gallery to Initialize **************
    
    >>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.297 seconds
       ----> Repository : UserExtensions, Enabled: true, Packages count: 0
       ----> Repository : LocalInstalled, Enabled: true, Packages count: 27
    
    Microsoft (R) Windows Debugger Version 10.0.26100.6584 ARM64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    
    Loading Dump File [C:\CrashDumps\gitcomet-5e0245ab8a6fea4a.exe_260423_081204.dmp]
    User Mini Dump File with Full Memory: Only application data is available
    
    Comment: '
    *** "C:\a\_temp\procdump\procdump64a.exe" -accepteula -ma -e -n 1 -x C:\CrashDumps C:\a\GitComet\GitComet\target\debug\deps\gitcomet-5e0245ab8a6fea4a.exe --nocapture
    *** Unhandled exception: C0000005.ACCESS_VIOLATION'
    
    ************* Path validation summary **************
    Response                         Time (ms)     Location
    OK                                             C:\a\GitComet\GitComet\target\debug
    OK                                             C:\a\GitComet\GitComet\target\debug\deps
    
    ************* Path validation summary **************
    Response                         Time (ms)     Location
    Deferred                                       srv*C:\a\_temp\symbols*https://msdl.microsoft.com/download/symbols
    OK                                             C:\a\GitComet\GitComet\target\debug\deps
    OK                                             C:\a\GitComet\GitComet\target\debug
    Symbol search path is: srv*C:\a\_temp\symbols*[https://msdl.microsoft.com/download/symbols;C:\a\GitComet\GitComet\target\debug\deps;C:\a\GitComet\GitComet\target\debug](https://msdl.microsoft.com/download/symbols;C:/a/GitComet/GitComet/target/debug/deps;C:/a/GitComet/GitComet/target/debug)
    Executable search path is: C:\a\GitComet\GitComet\target\debug;C:\a\GitComet\GitComet\target\debug\deps
    Windows 10 Version 26200 MP (4 procs) Free ARM 64-bit (AArch64)
    Product: WinNt, suite: SingleUserTS
    Edition build lab: 26100.1.arm64fre.ge_release.240331-1435
    Debug session time: Thu Apr 23 08:12:04.000 2026 (UTC + 0:00)
    System Uptime: 0 days 2:36:02.914
    Process Uptime: 0 days 0:00:03.000
    .............
    This dump file has an exception of interest stored in it.
    The stored exception information can be accessed via .ecxr.
    (290c.71c): Access violation - code c0000005 (first/second chance not available)
    For analysis of this file, run !analyze -v
    *** WARNING: Unable to verify checksum for gitcomet-5e0245ab8a6fea4a.exe
    gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc:
    00007ff7`43e5e8fc c8e2fc01 casal       x2,x1,[x0]
    0:004> cdb: Reading initial command '!analyze -v; .ecxr; kb; ~*kb; q'
    *******************************************************************************
    *                                                                             *
    *                        Exception Analysis                                   *
    *                                                                             *
    *******************************************************************************
    
    
    KEY_VALUES_STRING: 1
    
        Key  : AV.Fault
        Value: Write
    
        Key  : Analysis.CPU.mSec
        Value: 1250
    
        Key  : Analysis.Elapsed.mSec
        Value: 1884
    
        Key  : Analysis.IO.Other.Mb
        Value: 0
    
        Key  : Analysis.IO.Read.Mb
        Value: 0
    
        Key  : Analysis.IO.Write.Mb
        Value: 25
    
        Key  : Analysis.Init.CPU.mSec
        Value: 327
    
        Key  : Analysis.Init.Elapsed.mSec
        Value: 3025
    
        Key  : Analysis.Memory.CommitPeak.Mb
        Value: 138
    
        Key  : Failure.Bucket
        Value: INVALID_POINTER_WRITE_c0000005_gitcomet-5e0245ab8a6fea4a.exe!_InterlockedCompareExchange64
    
        Key  : Failure.Hash
        Value: {097aae0a-43d1-b15e-c93b-1d7ffb66b7ab}
    
        Key  : Timeline.OS.Boot.DeltaSec
        Value: 9362
    
        Key  : Timeline.Process.Start.DeltaSec
        Value: 3
    
        Key  : WER.OS.Branch
        Value: ge_release
    
        Key  : WER.OS.Version
        Value: 10.0.26100.1
    
    
    FILE_IN_CAB:  gitcomet-5e0245ab8a6fea4a.exe_260423_081204.dmp
    
    COMMENT:  
    *** "C:\a\_temp\procdump\procdump64a.exe" -accepteula -ma -e -n 1 -x C:\CrashDumps C:\a\GitComet\GitComet\target\debug\deps\gitcomet-5e0245ab8a6fea4a.exe --nocapture
    *** Unhandled exception: C0000005.ACCESS_VIOLATION
    
    NTGLOBALFLAG:  70
    
    APPLICATION_VERIFIER_FLAGS:  0
    
    CONTEXT:  (.ecxr)
     x0=00007ff743eb4b88   x1=0000000000000000   x2=0000000000000000   x3=0000000000000000
     x4=0000000000000000   x5=0000000000000000   x6=0000000000000000   x7=0000000000000000
     x8=0000000000000000   x9=0000000000000180  x10=0000000000000003  x11=0000000000000003
    x12=000000000000000f  x13=000000000000006d  x14=615f656c7974735f  x15=00007ff743e37c54
    x16=0000000080000001  x17=0000000000000000  x18=00000012dc0eb000  x19=0000000000000000
    x20=00007ff743eb4b80  x21=00007ff743eb4b80  x22=000000000000007c  x23=0000000000000000
    x24=0000000000000000  x25=0000000000000000  x26=0000000000000000  x27=0000000000000000
    x28=0000000000000000   fp=00000012de3ff8e0   lr=00007ff743e61644   sp=00000012de3ff770
     pc=00007ff743e5e8fc  psr=60000040 -ZC- EL0
    gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc:
    00007ff7`43e5e8fc c8e2fc01 casal       x2,x1,[x0]
    Resetting default scope
    
    EXCEPTION_RECORD:  (.exr -1)
    ExceptionAddress: 00007ff743e5e8fc (gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0x000000000000000c)
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 0000000000000001
       Parameter[1]: 00007ff743eb4b88
    Attempt to write to address 00007ff743eb4b88
    
    PROCESS_NAME:  gitcomet-5e0245ab8a6fea4a.exe
    
    WRITE_ADDRESS:  00007ff743eb4b88 
    
    ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
    
    EXCEPTION_CODE_STR:  c0000005
    
    EXCEPTION_PARAMETER1:  0000000000000001
    
    EXCEPTION_PARAMETER2:  00007ff743eb4b88
    
    STACK_TEXT:  
    00000012`de3ff770 00007ff7`43e61644     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc
    00000012`de3ff770 00007ff7`43e67900     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_mi_malloc_generic+0x44
    00000012`de3ff7c0 00007ff7`43e77530     : 00007ff7`43eb4b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero+0xd8
    00000012`de3ff810 00007ff7`43e77358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00000012`de3ff850 00007ff7`43e36300     : 00000012`de3ff948 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at+0x120
    00000012`de3ff880 00007ff7`43e37d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::pal::windows::to_u16s::inner+0x60
    00000012`de3ff900 00007ffa`0fc38740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00000012`de3ff9a0 00007ffa`134a4714     : 00000012`de3ff9b0 e0297ffa`134a4714 00000000`00000000 683a8000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000012`de3ff9b0 00000000`00000000     : 00000000`00000000 683a8000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
    
    STACK_COMMAND:  ~4s; .ecxr ; kb
    
    FAULTING_SOURCE_LINE:  D:\a\_work\1\s\Intermediate\crt\vcstartup\build\md\msvcrt_md_kernel32.vcxproj\objr\arm64\atomics.i
    
    FAULTING_SOURCE_FILE:  D:\a\_work\1\s\Intermediate\crt\vcstartup\build\md\msvcrt_md_kernel32.vcxproj\objr\arm64\atomics.i
    
    FAULTING_SOURCE_LINE_NUMBER:  5106
    
    SYMBOL_NAME:  gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+c
    
    MODULE_NAME: gitcomet_5e0245ab8a6fea4a
    
    IMAGE_NAME:  gitcomet-5e0245ab8a6fea4a.exe
    
    FAILURE_BUCKET_ID:  INVALID_POINTER_WRITE_c0000005_gitcomet-5e0245ab8a6fea4a.exe!_InterlockedCompareExchange64
    
    OS_VERSION:  10.0.26100.1
    
    BUILDLAB_STR:  ge_release
    
    OSPLATFORM_TYPE:  arm64
    
    OSNAME:  Windows 10
    
    FAILURE_ID_HASH:  {097aae0a-43d1-b15e-c93b-1d7ffb66b7ab}
    
    Followup:     MachineOwner
    ---------
    
     x0=00007ff743eb4b88   x1=0000000000000000   x2=0000000000000000   x3=0000000000000000
     x4=0000000000000000   x5=0000000000000000   x6=0000000000000000   x7=0000000000000000
     x8=0000000000000000   x9=0000000000000180  x10=0000000000000003  x11=0000000000000003
    x12=000000000000000f  x13=000000000000006d  x14=615f656c7974735f  x15=00007ff743e37c54
    x16=0000000080000001  x17=0000000000000000  x18=00000012dc0eb000  x19=0000000000000000
    x20=00007ff743eb4b80  x21=00007ff743eb4b80  x22=000000000000007c  x23=0000000000000000
    x24=0000000000000000  x25=0000000000000000  x26=0000000000000000  x27=0000000000000000
    x28=0000000000000000   fp=00000012de3ff8e0   lr=00007ff743e61644   sp=00000012de3ff770
     pc=00007ff743e5e8fc  psr=60000040 -ZC- EL0
    gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc:
    00007ff7`43e5e8fc c8e2fc01 casal       x2,x1,[x0]
      *** Stack trace for last set context - .thread/.cxr resets it
    RetAddr               : Args to Child                                                           : Call Site
    00007ff7`43e61644     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_is_initialized+0x18
    00007ff7`43e67900     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero_ex+0xb4
    00007ff7`43e77530     : 00007ff7`43eb4b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff7`43e77358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00007ff7`43e36300     : 00000012`de3ff948 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity+0x3c
    00007ff7`43e37d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`0fc38740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`134a4714     : 00000012`de3ff9b0 e0297ffa`134a4714 00000000`00000000 683a8000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 683a8000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       0  Id: 290c.1c74 Suspend: 0 Teb: 00000012`dc0e3000 Unfrozen "main"
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`1340bdd4     : 00000012`dc9fe810 09787ffa`0f1184d4 000001d9`7012dee8 00000000`00001c74 : ntdll!NtWaitForAlertByThreadId+0x4
    00007ffa`0f1184d4     : 00000012`dc9fe810 09787ffa`0f1184d4 000001d9`7012dee8 00000000`00001c74 : ntdll!RtlWaitOnAddress+0x1b4
    00007ff7`43e41e08     : 00000012`dc9fe848 3e51fff7`43e41e08 ffffffff`dc3cba00 00007ff7`43e49b90 : KERNELBASE!WaitOnAddress+0x34
    00007ff7`43d7cbac     : 00000012`dc9fe8f0 00000012`dc9fe8c0 00007ff7`43d7cbac ff007ff7`43d7cb94 : gitcomet_5e0245ab8a6fea4a!std::thread::thread::Thread::park_timeout+0xa0
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::context::Context::wait_until+0xdc
    00007ff7`43d7c6d4     : 000001d9`7012dec0 000001d9`701096c0 000001d9`70109700 00000012`dc9fefd0 : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::list::impl$3::recv::closure$1<test::event::CompletedTest>+0x16c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::context::impl$0::with::closure$0+0x28
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::context::impl$0::with::closure$1+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::thread::local::LocalKey::try_with+0x58
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::context::Context::with+0x64
    00007ff7`43d99118     : 00007ff7`43e75354 000001d9`002d0640 00000000`000024cd 000001d9`334c5a6c : gitcomet_5e0245ab8a6fea4a!std::sync::mpmc::list::Channel::recv<test::event::CompletedTest>+0x1ec
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!test::run_tests+0x1330
    00007ff7`43da1784     : 000001d9`0002cc00 00000000`00000000 000001d9`00000000 00000001`0000003e : gitcomet_5e0245ab8a6fea4a!test::console::run_tests_console+0x15c8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!test::test_main_with_exit_callback+0xf8
    00007ff7`43d8c9e8     : 00000000`00000000 00000000`00000000 00000000`00000008 00000012`dc9ff6e8 : gitcomet_5e0245ab8a6fea4a!test::test_main+0x130
    00007ff7`43d56098     : 00000000`00000004 000001d9`002b0000 00000000`00000002 000001d9`002900a0 : gitcomet_5e0245ab8a6fea4a!test::test_main_static+0x60
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!core::ops::function::FnOnce::call_once+0x4
    00007ff7`43d56080     : 00000012`dc9ff750 00007ff7`43d56080 00000012`dc9ff790 00007ff7`43e2ffe4 : gitcomet_5e0245ab8a6fea4a!std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >+0xc
    00007ff7`43e2ffe4     : 00000012`dc9ff790 00007ff7`43e2ffe4 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::rt::lang_start::closure$0<tuple$<> >+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::rt::lang_start_internal::closure$0+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::panicking::catch_unwind::do_call+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::panicking::catch_unwind+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!std::panic::catch_unwind+0xdc
    00007ff7`43d5a09c     : 00000000`00000000 00000000`00000000 00000012`dc9ff790 87367ffa`00000000 : gitcomet_5e0245ab8a6fea4a!std::rt::lang_start_internal+0xf0
    00007ff7`43e7993c     : 00000012`dc9ff7e0 00007ff7`43d5a058 00000012`dc9ff7e0 00007ff7`43e7993c : gitcomet_5e0245ab8a6fea4a!main+0x34
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!invoke_main+0x24
    00007ff7`43e799d4     : 00000012`dc9ff820 d723fff7`43e799d4 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!__scrt_common_main_seh+0x11c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!__scrt_common_main+0x8
    00007ffa`0fc38740     : 00000012`dc9ff830 a718fffa`0fc38740 00000012`dc9ff840 fd46fffa`134a4714 : gitcomet_5e0245ab8a6fea4a!mainCRTStartup+0x14
    00007ffa`134a4714     : 00000012`dc9ff840 fd46fffa`134a4714 00000000`00000000 f8278000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 f8278000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       1  Id: 290c.1d40 Suspend: 0 Teb: 00000012`dc0e5000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`1347fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`0fc38740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`134a4714     : 00000012`dd1fff40 9a58fffa`134a4714 00000000`00000000 23050000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 23050000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       2  Id: 290c.11c4 Suspend: 0 Teb: 00000012`dc0e7000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`1347fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`0fc38740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`134a4714     : 00000012`dd9ffa20 e872fffa`134a4714 00000000`00000000 dd2a0000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 dd2a0000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       3  Id: 290c.11dc Suspend: 0 Teb: 00000012`dc0e9000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`1347fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`0fc38740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`134a4714     : 00000012`de1ffbe0 9229fffa`134a4714 00000000`00000000 92010000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 92010000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
    #  4  Id: 290c.71c Suspend: 0 Teb: 00000012`dc0eb000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ff7`43e61644     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_is_initialized+0x18
    00007ff7`43e67900     : 00000000`00000000 00007ff7`43eb4ac0 00000000`0000007c 00000000`00000074 : gitcomet_5e0245ab8a6fea4a!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero_ex+0xb4
    00007ff7`43e77530     : 00007ff7`43eb4b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff7`43e77358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00007ff7`43e36300     : 00000012`de3ff948 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity+0x3c
    00007ff7`43e37d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`0fc38740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`134a4714     : 00000012`de3ff9b0 e0297ffa`134a4714 00000000`00000000 683a8000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 683a8000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       5  Id: 290c.2554 Suspend: 0 Teb: 00000012`dc0ed000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`134144d4     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlpCallVectoredHandlers+0x4
    00007ffa`13534404     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlDispatchException+0xb4
    00007ff7`43e5e8fc     : 60001040`0040002f 00007ff7`43eb4b88 00000000`00000000 00000000`00000000 : ntdll!KiUserExceptionDispatch+0x24
    00007ff7`43e61644     : 00000000`00000000 00007ff7`43eb4ac0 00000000`00000061 00000000`00000059 : gitcomet_5e0245ab8a6fea4a!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_is_initialized+0x18
    00007ff7`43e67900     : 00000000`00000000 00007ff7`43eb4ac0 00000000`00000061 00000000`00000059 : gitcomet_5e0245ab8a6fea4a!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero_ex+0xb4
    00007ff7`43e77740     : 00000000`00000001 00000000`00000000 00000000`00000000 00000000`00000002 : gitcomet_5e0245ab8a6fea4a!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff7`43e77570     : 00000000`00000000 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at_overalloc+0x140
    00007ff7`43e77358     : 00000000`00000000 00000000`00000002 00000000`00000058 00000000`0000002c : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at_generic+0x120
    00007ff7`43e36300     : 00000012`de5ffd98 00000000`00000058 00000000`00000002 00000000`0000002c : gitcomet_5e0245ab8a6fea4a!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_5e0245ab8a6fea4a!alloc::vec::Vec::with_capacity+0x3c
    00007ff7`43e37d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`0fc38740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_5e0245ab8a6fea4a!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`134a4714     : 00000012`de5ffe00 fa34fffa`134a4714 00000000`00000000 ac5d0000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 ac5d0000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       6  Id: 290c.2a84 Suspend: 0 Teb: 00000012`dc0ef000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`0f0e7034     : 00000000`00000000 00000000`00000000 00000002`01000008 00000000`00000000 : ntdll!NtDeviceIoControlFile+0x4
    00007ffa`0f0f93d8     : 00000000`00000000 00000000`00000000 00000002`01000008 00000000`00000000 : KERNELBASE!ConsoleThreadAttach+0xb4
    00007ffa`0f0f8f8c     : 0000290c`de7ff500 dc787ffa`13464714 000001d9`700002c0 000001d9`7010f180 : KERNELBASE!_KernelBaseBaseDllInitialize+0x3f8
    00007ffa`0f01c188     : 00000012`de7ff7d0 286efffa`0f01c188 00000000`00000002 00000000`00000000 : KERNELBASE!KernelBaseBaseDllInitialize+0x4c
    00007ffa`1352d128     : 00000012`de7ff7f0 8a05fffa`1352d128 00000000`7ffe0384 00000000`00000002 : KERNELBASE!KernelBaseDllInitialize+0x18
    00007ffa`13498858     : 00000012`de7ff810 5d3cfffa`13498858 00000012`de7ff900 b277fffa`13494428 : ntdll!LdrpCallInitRoutineInternal+0x30
    00007ffa`1349443c     : 00000012`de7ff9c0 1c047ffa`1349443c 00000002`7010a000 00007ffa`0f010000 : ntdll!LdrpCallInitRoutine+0x70
    00007ffa`134952b0     : 00000000`00000000 00000000`00000000 00000000`00000048 00000000`00000001 : ntdll!LdrpInitializeThread+0x21c
    00007ffa`1348f870     : 00000012`de7ffa90 332e7ffa`1348f870 00000000`00000000 00000000`00000000 : ntdll!LdrpInitialize+0xc0
    00007ffa`1348e908     : 00000012`de7ffae0 e336fffa`1348e908 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeInternal+0x58
    00007ffa`134af398     : 00000012`de7ffb00 957d7ffa`134af398 00000012`de7ffb20 00000000`00000000 : ntdll!LdrpInitialize+0x30
    00000000`00000000     : 00000000`00000000 da1f0000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0x18
    
       7  Id: 290c.a40 Suspend: 0 Teb: 00000012`dc0f1000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`134a57b4     : 00000012`de9ff690 c7377ffa`134942ec 00000000`0000005c 000001d9`7010dba8 : ntdll!NtWaitForSingleObject+0x4
    00007ffa`134942ec     : 00000012`de9ff690 c7377ffa`134942ec 00000000`0000005c 000001d9`7010dba8 : ntdll!LdrpDrainWorkQueue+0x17c
    00007ffa`134952b0     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeThread+0xcc
    00007ffa`1348f870     : 00000012`de9ff760 b74afffa`1348f870 00000000`00000000 00000000`00000000 : ntdll!LdrpInitialize+0xc0
    00007ffa`1348e908     : 00000012`de9ff7b0 3f65fffa`1348e908 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeInternal+0x58
    00007ffa`134af398     : 00000012`de9ff7d0 7a03fffa`134af398 00000012`de9ff7f0 00000000`00000000 : ntdll!LdrpInitialize+0x30
    00000000`00000000     : 00000000`00000000 e1768000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0x18
    quit:
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\atlmfc.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\ObjectiveC.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\concurrency.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\cpp_rest.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\stl.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Data.Json.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Devices.Geolocation.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Devices.Sensors.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Media.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\windows.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\winrt.natvis'
    
  6. Havunen commented on Apr 23, 2026

    @Havunen
    Author

    I will now test using -DMI_WIN_INIT_USE_TLS_DLLMAIN=1

  7. Havunen commented on Apr 23, 2026

    @Havunen
    Author

    enabling -DMI_WIN_INIT_USE_TLS_DLLMAIN=1 did not help. ( Assuming I enabled it correctly here: purpleprotocol/mimalloc_rust@a035c86 )

    Summary:

    Name                                              Length LastWriteTime
    ----                                              ------ -------------
    gitcomet-a87f0a41738f2140.exe_260423_083210.dmp 33861107 4/23/2026 8:32:11 AM
    procdump.stderr.log                                  155 4/23/2026 8:32:08 AM
    procdump.stdout.log                                 1204 4/23/2026 8:32:11 AM
    
    ProcDump stdout:
    Process:               gitcomet-a87f0a41738f2140.exe (10828)
    CPU threshold:         n/a
    Performance counter:   n/a
    Commit threshold:      n/a
    Threshold seconds:     n/a
    Hung window check:     Disabled
    Log debug strings:     Disabled
    Exception monitor:     Unhandled
    Exception filter:      [Includes]
                           *
                           [Excludes]
    Terminate monitor:     Disabled
    Cloning type:          Disabled
    Concurrent limit:      n/a
    Avoid outage:          n/a
    Number of dumps:       1
    Dump folder:           C:\CrashDumps\
    Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
    Queue to WER:          Disabled
    Kill after dump:       Disabled
    
    
    Press Ctrl-C to end monitoring without terminating the process.
    
    
    running 209 tests
    [08:32:10]Exception: C0000005.ACCESS_VIOLATION
    [08:32:10]Exception: C0000005.ACCESS_VIOLATION
    [08:32:10]Unhandled: C0000005.ACCESS_VIOLATION
    [08:32:10]Dump 1 info: Available space: 129538306048
    [08:32:10]Dump 1 initiated: C:\CrashDumps\gitcomet-a87f0a41738f2140.exe_260423_083210.dmp
    [08:32:11]Dump 1 writing: Estimated dump file size is 34 MB.
    [08:32:11]Dump 1 complete: 34 MB written in 0.4 seconds
    [08:32:11]Dump count reached.
    
    ProcDump stderr:
    
    ProcDump v11.1 - Sysinternals process dump utility
    Copyright (C) 2009-2025 Mark Russinovich and Andrew Richards
    Sysinternals - www.sysinternals.com
    
    Analyzing gitcomet-a87f0a41738f2140.exe_260423_083210.dmp with C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\cdb.exe
    
    ************* Preparing the environment for Debugger Extensions Gallery repositories **************
       ExtensionRepository : Implicit
       UseExperimentalFeatureForNugetShare : true
       AllowNugetExeUpdate : true
       NonInteractiveNuget : true
       AllowNugetMSCredentialProviderInstall : true
       AllowParallelInitializationOfLocalRepositories : true
    
       EnableRedirectToV8JsProvider : false
    
       -- Configuring repositories
          ----> Repository : LocalInstalled, Enabled: true
          ----> Repository : UserExtensions, Enabled: true
    
    >>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.031 seconds
    
    ************* Waiting for Debugger Extensions Gallery to Initialize **************
    
    >>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.203 seconds
       ----> Repository : UserExtensions, Enabled: true, Packages count: 0
       ----> Repository : LocalInstalled, Enabled: true, Packages count: 27
    
    Microsoft (R) Windows Debugger Version 10.0.26100.6584 ARM64
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    
    Loading Dump File [C:\CrashDumps\gitcomet-a87f0a41738f2140.exe_260423_083210.dmp]
    User Mini Dump File with Full Memory: Only application data is available
    
    Comment: '
    *** "C:\a\_temp\procdump\procdump64a.exe" -accepteula -ma -e -n 1 -x C:\CrashDumps C:\a\GitComet\GitComet\target\debug\deps\gitcomet-a87f0a41738f2140.exe --nocapture
    *** Unhandled exception: C0000005.ACCESS_VIOLATION'
    
    ************* Path validation summary **************
    Response                         Time (ms)     Location
    OK                                             C:\a\GitComet\GitComet\target\debug
    OK                                             C:\a\GitComet\GitComet\target\debug\deps
    
    ************* Path validation summary **************
    Response                         Time (ms)     Location
    Deferred                                       srv*C:\a\_temp\symbols*https://msdl.microsoft.com/download/symbols
    OK                                             C:\a\GitComet\GitComet\target\debug\deps
    OK                                             C:\a\GitComet\GitComet\target\debug
    Symbol search path is: srv*C:\a\_temp\symbols*[https://msdl.microsoft.com/download/symbols;C:\a\GitComet\GitComet\target\debug\deps;C:\a\GitComet\GitComet\target\debug](https://msdl.microsoft.com/download/symbols;C:/a/GitComet/GitComet/target/debug/deps;C:/a/GitComet/GitComet/target/debug)
    Executable search path is: C:\a\GitComet\GitComet\target\debug;C:\a\GitComet\GitComet\target\debug\deps
    Windows 10 Version 26200 MP (4 procs) Free ARM 64-bit (AArch64)
    Product: WinNt, suite: SingleUserTS
    Edition build lab: 26100.1.arm64fre.ge_release.240331-1435
    Debug session time: Thu Apr 23 08:32:11.000 2026 (UTC + 0:00)
    System Uptime: 0 days 0:52:22.874
    Process Uptime: 0 days 0:00:03.000
    .............
    This dump file has an exception of interest stored in it.
    The stored exception information can be accessed via .ecxr.
    (2a4c.1710): Access violation - code c0000005 (first/second chance not available)
    For analysis of this file, run !analyze -v
    *** WARNING: Unable to verify checksum for gitcomet-a87f0a41738f2140.exe
    gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc:
    00007ff6`cb00e8fc c8e2fc01 casal       x2,x1,[x0]
    0:004> cdb: Reading initial command '!analyze -v; .ecxr; kb; ~*kb; q'
    *******************************************************************************
    *                                                                             *
    *                        Exception Analysis                                   *
    *                                                                             *
    *******************************************************************************
    
    
    KEY_VALUES_STRING: 1
    
        Key  : AV.Fault
        Value: Write
    
        Key  : Analysis.CPU.mSec
        Value: 1202
    
        Key  : Analysis.Elapsed.mSec
        Value: 2666
    
        Key  : Analysis.IO.Other.Mb
        Value: 0
    
        Key  : Analysis.IO.Read.Mb
        Value: 0
    
        Key  : Analysis.IO.Write.Mb
        Value: 25
    
        Key  : Analysis.Init.CPU.mSec
        Value: 374
    
        Key  : Analysis.Init.Elapsed.mSec
        Value: 3367
    
        Key  : Analysis.Memory.CommitPeak.Mb
        Value: 137
    
        Key  : Failure.Bucket
        Value: INVALID_POINTER_WRITE_c0000005_gitcomet-a87f0a41738f2140.exe!_InterlockedCompareExchange64
    
        Key  : Failure.Hash
        Value: {9cdfa897-7aa2-b03a-30a3-ed56a59cd815}
    
        Key  : Timeline.OS.Boot.DeltaSec
        Value: 3142
    
        Key  : Timeline.Process.Start.DeltaSec
        Value: 3
    
        Key  : WER.OS.Branch
        Value: ge_release
    
        Key  : WER.OS.Version
        Value: 10.0.26100.1
    
    
    FILE_IN_CAB:  gitcomet-a87f0a41738f2140.exe_260423_083210.dmp
    
    COMMENT:  
    *** "C:\a\_temp\procdump\procdump64a.exe" -accepteula -ma -e -n 1 -x C:\CrashDumps C:\a\GitComet\GitComet\target\debug\deps\gitcomet-a87f0a41738f2140.exe --nocapture
    *** Unhandled exception: C0000005.ACCESS_VIOLATION
    
    NTGLOBALFLAG:  70
    
    APPLICATION_VERIFIER_FLAGS:  0
    
    CONTEXT:  (.ecxr)
     x0=00007ff6cb064b88   x1=0000000000000000   x2=0000000000000000   x3=0000000000000000
     x4=0000000000000000   x5=0000000000000000   x6=0000000000000000   x7=0000000000000000
     x8=0000000000000000   x9=0000000000000180  x10=0000000000000003  x11=0000000000000003
    x12=000000000000000f  x13=000000000000006d  x14=615f656c7974735f  x15=00007ff6cafe7c54
    x16=0000000080000001  x17=0000000000000000  x18=00000059701a0000  x19=0000000000000000
    x20=00007ff6cb064b80  x21=00007ff6cb064b80  x22=000000000000007c  x23=0000000000000000
    x24=0000000000000000  x25=0000000000000000  x26=0000000000000000  x27=0000000000000000
    x28=0000000000000000   fp=00000059723ffa80   lr=00007ff6cb011644   sp=00000059723ff910
     pc=00007ff6cb00e8fc  psr=60000040 -ZC- EL0
    gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc:
    00007ff6`cb00e8fc c8e2fc01 casal       x2,x1,[x0]
    Resetting default scope
    
    EXCEPTION_RECORD:  (.exr -1)
    ExceptionAddress: 00007ff6cb00e8fc (gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0x000000000000000c)
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
    NumberParameters: 2
       Parameter[0]: 0000000000000001
       Parameter[1]: 00007ff6cb064b88
    Attempt to write to address 00007ff6cb064b88
    
    PROCESS_NAME:  gitcomet-a87f0a41738f2140.exe
    
    WRITE_ADDRESS:  00007ff6cb064b88 
    
    ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
    
    EXCEPTION_CODE_STR:  c0000005
    
    EXCEPTION_PARAMETER1:  0000000000000001
    
    EXCEPTION_PARAMETER2:  00007ff6cb064b88
    
    STACK_TEXT:  
    00000059`723ff910 00007ff6`cb011644     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc
    00000059`723ff910 00007ff6`cb017900     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_mi_malloc_generic+0x44
    00000059`723ff960 00007ff6`cb027530     : 00007ff6`cb064b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero+0xd8
    00000059`723ff9b0 00007ff6`cb027358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00000059`723ff9f0 00007ff6`cafe6300     : 00000059`723ffae8 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at+0x120
    00000059`723ffa20 00007ff6`cafe7d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::pal::windows::to_u16s::inner+0x60
    00000059`723ffaa0 00007ffa`045e8740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00000059`723ffb40 00007ffa`083a4714     : 00000059`723ffb50 dd737ffa`083a4714 00000000`00000000 a5258000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000059`723ffb50 00000000`00000000     : 00000000`00000000 a5258000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
    
    STACK_COMMAND:  ~4s; .ecxr ; kb
    
    FAULTING_SOURCE_LINE:  D:\a\_work\1\s\Intermediate\crt\vcstartup\build\md\msvcrt_md_kernel32.vcxproj\objr\arm64\atomics.i
    
    FAULTING_SOURCE_FILE:  D:\a\_work\1\s\Intermediate\crt\vcstartup\build\md\msvcrt_md_kernel32.vcxproj\objr\arm64\atomics.i
    
    FAULTING_SOURCE_LINE_NUMBER:  5106
    
    SYMBOL_NAME:  gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+c
    
    MODULE_NAME: gitcomet_a87f0a41738f2140
    
    IMAGE_NAME:  gitcomet-a87f0a41738f2140.exe
    
    FAILURE_BUCKET_ID:  INVALID_POINTER_WRITE_c0000005_gitcomet-a87f0a41738f2140.exe!_InterlockedCompareExchange64
    
    OS_VERSION:  10.0.26100.1
    
    BUILDLAB_STR:  ge_release
    
    OSPLATFORM_TYPE:  arm64
    
    OSNAME:  Windows 10
    
    FAILURE_ID_HASH:  {9cdfa897-7aa2-b03a-30a3-ed56a59cd815}
    
    Followup:     MachineOwner
    ---------
    
     x0=00007ff6cb064b88   x1=0000000000000000   x2=0000000000000000   x3=0000000000000000
     x4=0000000000000000   x5=0000000000000000   x6=0000000000000000   x7=0000000000000000
     x8=0000000000000000   x9=0000000000000180  x10=0000000000000003  x11=0000000000000003
    x12=000000000000000f  x13=000000000000006d  x14=615f656c7974735f  x15=00007ff6cafe7c54
    x16=0000000080000001  x17=0000000000000000  x18=00000059701a0000  x19=0000000000000000
    x20=00007ff6cb064b80  x21=00007ff6cb064b80  x22=000000000000007c  x23=0000000000000000
    x24=0000000000000000  x25=0000000000000000  x26=0000000000000000  x27=0000000000000000
    x28=0000000000000000   fp=00000059723ffa80   lr=00007ff6cb011644   sp=00000059723ff910
     pc=00007ff6cb00e8fc  psr=60000040 -ZC- EL0
    gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc:
    00007ff6`cb00e8fc c8e2fc01 casal       x2,x1,[x0]
      *** Stack trace for last set context - .thread/.cxr resets it
    RetAddr               : Args to Child                                                           : Call Site
    00007ff6`cb011644     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_is_initialized+0x18
    00007ff6`cb017900     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero_ex+0xb4
    00007ff6`cb027530     : 00007ff6`cb064b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff6`cb027358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00007ff6`cafe6300     : 00000059`723ffae8 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity+0x3c
    00007ff6`cafe7d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`045e8740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`083a4714     : 00000059`723ffb50 dd737ffa`083a4714 00000000`00000000 a5258000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 a5258000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       0  Id: 2a4c.1f8c Suspend: 0 Teb: 00000059`70198000 Unfrozen "main"
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`0830bdd4     : 00000059`709fef10 d3547ffa`026684d4 0000021a`8612cfd8 00000000`00001f8c : ntdll!NtWaitForAlertByThreadId+0x4
    00007ffa`026684d4     : 00000059`709fef10 d3547ffa`026684d4 0000021a`8612cfd8 00000000`00001f8c : ntdll!RtlWaitOnAddress+0x1b4
    00007ff6`caff1e08     : 00000059`709fef48 775cfff6`caff1e08 ffffffff`dc51c8a0 00007ff6`caff9b90 : KERNELBASE!WaitOnAddress+0x34
    00007ff6`caf2cbac     : 00000059`709feff0 00000059`709fefc0 00007ff6`caf2cbac ff007ff6`caf2cb94 : gitcomet_a87f0a41738f2140!std::thread::thread::Thread::park_timeout+0xa0
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::sync::mpmc::context::Context::wait_until+0xdc
    00007ff6`caf2c6d4     : 0000021a`8612cfb0 0000021a`86109660 0000021a`861096a0 00000059`709ff6d0 : gitcomet_a87f0a41738f2140!std::sync::mpmc::list::impl$3::recv::closure$1<test::event::CompletedTest>+0x16c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::sync::mpmc::context::impl$0::with::closure$0+0x28
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::sync::mpmc::context::impl$0::with::closure$1+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::thread::local::LocalKey::try_with+0x58
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::sync::mpmc::context::Context::with+0x64
    00007ff6`caf49118     : 00007ff6`cb025354 0000021a`872d0640 00000000`00000c81 0000021a`2e0c97b0 : gitcomet_a87f0a41738f2140!std::sync::mpmc::list::Channel::recv<test::event::CompletedTest>+0x1ec
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!test::run_tests+0x1330
    00007ff6`caf51784     : 0000021a`8702cc00 00000000`00000000 0000021a`87000000 00000001`0000003e : gitcomet_a87f0a41738f2140!test::console::run_tests_console+0x15c8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!test::test_main_with_exit_callback+0xf8
    00007ff6`caf3c9e8     : 00000000`00000000 00000000`00000000 00000000`00000008 00000059`709ffde8 : gitcomet_a87f0a41738f2140!test::test_main+0x130
    00007ff6`caf06098     : 00000000`00000004 0000021a`872b0000 00000000`00000002 0000021a`872900a0 : gitcomet_a87f0a41738f2140!test::test_main_static+0x60
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!core::ops::function::FnOnce::call_once+0x4
    00007ff6`caf06080     : 00000059`709ffe50 00007ff6`caf06080 00000059`709ffe90 00007ff6`cafdffe4 : gitcomet_a87f0a41738f2140!std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >+0xc
    00007ff6`cafdffe4     : 00000059`709ffe90 00007ff6`cafdffe4 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::rt::lang_start::closure$0<tuple$<> >+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::rt::lang_start_internal::closure$0+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::panicking::catch_unwind::do_call+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::panicking::catch_unwind+0xdc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!std::panic::catch_unwind+0xdc
    00007ff6`caf0a0a4     : 00000000`00000000 00000000`00000000 00000059`709ffe90 7e057ffa`00000000 : gitcomet_a87f0a41738f2140!std::rt::lang_start_internal+0xf0
    00007ff6`cb02993c     : 00000059`709ffee0 00007ff6`caf0a060 00000059`709ffee0 00007ff6`cb02993c : gitcomet_a87f0a41738f2140!main+0x34
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!invoke_main+0x24
    00007ff6`cb0299d4     : 00000059`709fff20 5d37fff6`cb0299d4 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!__scrt_common_main_seh+0x11c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!__scrt_common_main+0x8
    00007ffa`045e8740     : 00000059`709fff30 f0097ffa`045e8740 00000059`709fff40 a30f7ffa`083a4714 : gitcomet_a87f0a41738f2140!mainCRTStartup+0x14
    00007ffa`083a4714     : 00000059`709fff40 a30f7ffa`083a4714 00000000`00000000 d1268000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 d1268000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       1  Id: 2a4c.1250 Suspend: 0 Teb: 00000059`7019a000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`0837fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`045e8740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`083a4714     : 00000059`711ffcd0 3e1d7ffa`083a4714 00000000`00000000 2f4a8000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 2f4a8000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       2  Id: 2a4c.1608 Suspend: 0 Teb: 00000059`7019c000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`0837fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`045e8740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`083a4714     : 00000059`719ffb60 e035fffa`083a4714 00000000`00000000 8c550000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 8c550000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       3  Id: 2a4c.1a6c Suspend: 0 Teb: 00000059`7019e000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`0837fc28     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!NtWaitForWorkViaWorkerFactory+0x4
    00007ffa`045e8740     : 00010101`01000101 00000000`00000100 00000000`00000000 00000010`00000000 : ntdll!TppWorkerThread+0x568
    00007ffa`083a4714     : 00000059`721ffee0 4a557ffa`083a4714 00000000`00000000 5f780000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 5f780000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
    #  4  Id: 2a4c.1710 Suspend: 0 Teb: 00000059`701a0000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ff6`cb011644     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_is_initialized+0x18
    00007ff6`cb017900     : 00000000`00000000 00007ff6`cb064ac0 00000000`0000007c 00000000`00000074 : gitcomet_a87f0a41738f2140!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero_ex+0xb4
    00007ff6`cb027530     : 00007ff6`cb064b80 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff6`cb027358     : 00000000`00000000 00000000`00000002 00000000`00000074 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at_generic+0xe0
    00007ff6`cafe6300     : 00000059`723ffae8 00000000`00000074 00000000`00000002 00000000`0000003a : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity+0x3c
    00007ff6`cafe7d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`045e8740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`083a4714     : 00000059`723ffb50 dd737ffa`083a4714 00000000`00000000 a5258000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 a5258000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       5  Id: 2a4c.2838 Suspend: 0 Teb: 00000059`701a2000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ff6`cb011644     : 00000000`00000000 00007ff6`cb064ac0 00000000`00000061 00000000`00000059 : gitcomet_a87f0a41738f2140!_InterlockedCompareExchange64+0xc
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_strong_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_compare_exchange_weak_explicit+0x10
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_atomic_load_explicit+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_heap+0x14
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_is_initialized+0x18
    00007ff6`cb017900     : 00000000`00000000 00007ff6`cb064ac0 00000000`00000061 00000000`00000059 : gitcomet_a87f0a41738f2140!_mi_malloc_generic+0x44
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_page_malloc_zero+0x4c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_small_zero_nonnull+0xa8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero_ex+0xb4
    00007ff6`cb027740     : 00000000`00000001 00000000`00000000 00000000`00000000 00000000`00000002 : gitcomet_a87f0a41738f2140!_mi_theap_malloc_zero+0xd8
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_no_guarded+0x2c
    00007ff6`cb027570     : 00000000`00000000 00000000`00000001 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at_overalloc+0x140
    00007ff6`cb027358     : 00000000`00000000 00000000`00000002 00000000`00000058 00000000`0000002c : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at_generic+0x120
    00007ff6`cafe6300     : 00000059`725ff8e8 00000000`00000058 00000000`00000002 00000000`0000002c : gitcomet_a87f0a41738f2140!mi_theap_malloc_zero_aligned_at+0x120
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::alloc+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl_runtime+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::Global::alloc_impl+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::alloc::impl$1::allocate+0x1c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::try_allocate_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVecInner::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::raw_vec::RawVec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity_in+0x3c
    (Inline Function)     : --------`-------- --------`-------- --------`-------- --------`-------- : gitcomet_a87f0a41738f2140!alloc::vec::Vec::with_capacity+0x3c
    00007ff6`cafe7d80     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::pal::windows::to_u16s::inner+0x60
    00007ffa`045e8740     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : gitcomet_a87f0a41738f2140!std::sys::thread::windows::impl$0::new::thread_start+0x12c
    00007ffa`083a4714     : 00000059`725ff950 f55efffa`083a4714 00000000`00000000 86040000`00000000 : kernel32!BaseThreadInitThunk+0x40
    00000000`00000000     : 00000000`00000000 86040000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x44
    
       6  Id: 2a4c.27e0 Suspend: 0 Teb: 00000059`701a4000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`02637034     : 00000000`00000000 00000000`00000000 00000002`01000008 00000000`00000000 : ntdll!NtDeviceIoControlFile+0x4
    00007ffa`026493d8     : 00000000`00000000 00000000`00000000 00000002`01000008 00000000`00000000 : KERNELBASE!ConsoleThreadAttach+0xb4
    00007ffa`02648f8c     : 00002a4c`727ff400 1d1a7ffa`08364714 0000021a`860002c0 0000021a`8610e2e0 : KERNELBASE!_KernelBaseBaseDllInitialize+0x3f8
    00007ffa`0256c188     : 00000059`727ff6c0 cb437ffa`0256c188 00000000`00000002 00000000`00000000 : KERNELBASE!KernelBaseBaseDllInitialize+0x4c
    00007ffa`0842d128     : 00000059`727ff6e0 db24fffa`0842d128 00000000`7ffe0384 00000000`00000002 : KERNELBASE!KernelBaseDllInitialize+0x18
    00007ffa`08398858     : 00000059`727ff700 b479fffa`08398858 00000059`727ff800 406ffffa`08394428 : ntdll!LdrpCallInitRoutineInternal+0x30
    00007ffa`0839443c     : 00000059`727ff8b0 751e7ffa`0839443c 00000002`86109f00 00007ffa`02560000 : ntdll!LdrpCallInitRoutine+0x70
    00007ffa`083952b0     : 00000000`00000000 00000000`00000000 00000000`00000048 00000000`00000001 : ntdll!LdrpInitializeThread+0x21c
    00007ffa`0838f870     : 00000059`727ff980 ef5c7ffa`0838f870 00000000`00000000 00000000`00000000 : ntdll!LdrpInitialize+0xc0
    00007ffa`0838e908     : 00000059`727ff9d0 d0677ffa`0838e908 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeInternal+0x58
    00007ffa`083af398     : 00000059`727ff9f0 687f7ffa`083af398 00000059`727ffa10 00000000`00000000 : ntdll!LdrpInitialize+0x30
    00000000`00000000     : 00000000`00000000 ed020000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0x18
    
       7  Id: 2a4c.1498 Suspend: 0 Teb: 00000059`701a6000 Unfrozen
    RetAddr               : Args to Child                                                           : Call Site
    00007ffa`083a57b4     : 00000059`729ff820 de0efffa`083942ec 00000000`0000005c 0000021a`8610db48 : ntdll!NtWaitForSingleObject+0x4
    00007ffa`083942ec     : 00000059`729ff820 de0efffa`083942ec 00000000`0000005c 0000021a`8610db48 : ntdll!LdrpDrainWorkQueue+0x17c
    00007ffa`083952b0     : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeThread+0xcc
    00007ffa`0838f870     : 00000059`729ff8f0 e10ffffa`0838f870 00000000`00000000 00000000`00000000 : ntdll!LdrpInitialize+0xc0
    00007ffa`0838e908     : 00000059`729ff940 365ffffa`0838e908 00000000`00000000 00000000`00000000 : ntdll!LdrpInitializeInternal+0x58
    00007ffa`083af398     : 00000059`729ff960 c5757ffa`083af398 00000059`729ff980 00000000`00000000 : ntdll!LdrpInitialize+0x30
    00000000`00000000     : 00000000`00000000 787e0000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0x18
    quit:
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\atlmfc.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\ObjectiveC.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\concurrency.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\cpp_rest.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\stl.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Data.Json.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Devices.Geolocation.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Devices.Sensors.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\Windows.Media.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\windows.natvis'
    NatVis script unloaded from 'C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64\Visualizers\winrt.natvis'
    

    Dump: https://github.com/Auto-Explore/GitComet/actions/runs/24824865830/artifacts/6597217147
    Symbols: https://github.com/Auto-Explore/GitComet/actions/runs/24824865830/artifacts/6597226071

    Daan (@daanx) are these helpful for fixing the issue? Is there anything else I can provide to help fixing this problem

  8. Havunen commented on Apr 23, 2026

    @Havunen
    Author

    I used AI to find the root cause for this issue. I tested the change in GitComet repository test harness and it now pass.

    I opened a PR to fix this issue #1283. The issue seems to come from plain C - compilation on windows arm platform, see the PR

  9. Havunen commented on Apr 24, 2026

    @Havunen
    Author

    Daan (@daanx) This issue seems to occur when mimalloc is compiled using plain C compiler on Windows ARM platform.

    We can workaround this in rust crate by adjusting the build process so Windows ARM also compiles using C++ compiler. When atomic.h is compiled using plain C compiler, it does write operation on readonly memory and fails to "access violation". When the program is compiled using C++ that atomic implementation is not used.

    This is the part of code that requires writable memory:

    while (!mi_atomic_compare_exchange_weak_explicit((_Atomic(uintptr_t)*)p, &x, x, mo, mi_memory_order_relaxed)) { /* nothing */ };

    However, in older version this used to work so there is some change. Shouldn't the atomic implementation be fixed regardless? There might be other variants also that fallback into that implementation?

  10. daanx commented on Apr 24, 2026

    @daanx
    Collaborator

    Ah, I already suspected this yesterday but I didn't get around to it -- great to see you confirmed the issue.
    I am a bit torn -- the recommendation is really to use C++ compilation with MSVC on Windows as it just doesn't support the C standard well. The whole C atomics layer for atomics with MSVC in C mode was intended to be temporary... :-)
    I see though that nowadays there are new __iso_volatile_load/store primitives that do emit load_acquire/store_release for MSVC so I think I will revise the layer with those instead. TBC.

  11. daanx commented on Apr 24, 2026

    @daanx
    Collaborator

    I updated the MSVC C compilation wrapper using both the new(ish) __iso_volatile_load/store and more optimal arm instructions for load_acquire and store_release. Also added #warning directives for any new platforms so we no longer silently use (wrong) compare_and_swap instructions for readonly memory. Can you try this with the latest dev3 branch ?

  12. Havunen commented on Apr 24, 2026

    @Havunen
    Author

    I just re-run the GitComet test suite here with latest changes from dev3 branch without any other changes and tests are green. ✔️

    Auto-Explore/GitComet#176

    Is it still the recommendation to use C++ compilation with MSVC on windows even after these fixes implemented? I'm wondering if this PR should be merged: purpleprotocol/mimalloc_rust#160

  13. daanx commented on Apr 26, 2026

    @daanx
    Collaborator

    I just re-run the GitComet test suite here with latest changes from dev3 branch without any other changes and tests are green. ✔️

    Great!

    Is it still the recommendation to use C++ compilation with MSVC on windows even after these fixes implemented? I'm wondering if this PR should be merged: purpleprotocol/mimalloc_rust#160

    Well, technically msvc nowadays supports C11 and C17 -- but atomics are not quite supported yet (but available behind an experimental flag, I will try this out as well). So, generally I would still recommend using C++ mode.

    However, now that the updated C wrapper has special cases for arm systems, the performance should actually be quite good I think, so I think it is fine to compile in C mode with msvc as well. And once msvc supports atomics properly in C11 mode we can switch to that anyways.

    (I took a quick look at the PR and it looks good to me; maybe not worth it to add all the extra stuff just to compile with msvc in C++ mode).

  14. Havunen commented on Apr 27, 2026

    @Havunen
    Author

    Any plans for 3.3.2 release? Would be nice to have this fixed

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions