Skip to content

Test failure: profiler/handles/handles/handles.cmd #117918

Open

Description

@SakeTao

Failed in: runtime-coreclr jitstress-isas-x86 20250719.1

Failed tests:

coreclr linux x64 Checked jitstress_isas_1_x86_nolzcnt @ AzureLinux.3.Amd64.Open
    - profiler/handles/handles/handles.cmd

Error message:

Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
   at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
   at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies)
   at Profiler.Tests.HandlesTests.Main(String[] args)
/datadisks/disk1/work/B47F09D0/w/B4BB09D8/e/profiler/profiler/../handles/handles/handles.sh: line 485:  5287 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /datadisks/disk1/work/B47F09D0/w/B4BB09D8/uploads/handles/handles/output.txt
Raw output:
BEGIN EXECUTION
/datadisks/disk1/work/B47F09D0/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
Profiler path: /datadisks/disk1/work/B47F09D0/w/B4BB09D8/e/profiler/handles/handles/libProfiler.so
Profilee STDOUT: Profiler.dll!DllGetClassObject
Profilee STDOUT: Profiler.dll!Profiler::Initialize
Profilee STDOUT: Handles started. Control-C to exit
Profilee STDOUT: Worker thread started
Profilee STDOUT: Allocating Weak
Profilee STDOUT: Allocating Strong
Profilee STDOUT: Allocating Pinned
Profilee STDOUT: weak = 1-W
Profilee STDOUT: strong = 2-S
Profilee STDOUT: weak = 3-P
Profilee STDOUT: Collection #1
Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
Profilee STDOUT: Collection #2
Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
Profilee STDOUT: Collection #3
Profilee STDOUT: Test Passed
Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
Profilee STDOUT: Profiler.dll!Profiler::Shutdown
Profilee STDOUT: PROFILER TEST PASSES
Test failed: Profilee returned exit code 139 instead of expected exit code 100.
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /home/helixbot/dotnetbuild/dumps since 7/19/2025 9:15:01 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /datadisks/disk1/work/B47F09D0/w/B4BB09D8/e/profiler/profiler/../handles/handles/handles.sh

Stack trace:

   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
   at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

Activity

  1. added
    os-linux
    JitStress
    blocking-clean-ci-optional
    on Jul 22, 2025
  2. added
    untriaged
    on Jul 22, 2025
  3. added
    needs-area-label
    on Jul 22, 2025
  4. added and removed
    needs-area-label
    on Jul 22, 2025
  5. jkotas commented on Jul 22, 2025

    @jkotas
    Member

    Null pointer dereference in the profiler test .dll on background tiered compilation thread during shutdown:

    Call Site
    libProfiler!DoPInvokeWithCallbackOnOtherThread+0x1804
    libProfiler!std::_Rb_tree<unsigned long, std::pair<unsigned long const, unsigned long>, std::_Select1st<std::pair<unsigned long const, unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >::_M_emplace_unique<std::pair<unsigned long, unsigned long> >+0x23e
    libcoreclr!EEToProfInterfaceImpl::ObjectAllocated+0x17b [/crossrootfs/x64/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h @ 5246] 
    libcoreclr!ObjectAllocatedHelper+0xc [/__w/1/s/src/coreclr/inc/profilepriv.inl @ 1393] 
    libcoreclr!ProfControlBlock::DoProfilerCallbackHelper<int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), unsigned long, unsigned long>+0x33 [/__w/1/s/src/native/eventpipe/ep-types-forward.h @ 286] 
    libcoreclr!ProfControlBlock::DoOneProfilerIteration<void (*)(ProfilerInfo *, int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), int *, unsigned long, unsigned long), int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), int *, unsigned long, unsigned long>+0x55 [/__w/1/s/src/native/eventpipe/ep-types-forward.h @ 202] 
    libcoreclr!ProfControlBlock::IterateProfilers<void (*)(ProfilerInfo *, int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), int *, unsigned long, unsigned long), int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), int *, unsigned long, unsigned long>+0x55 [/__w/1/s/src/native/eventpipe/ep-types-forward.h @ 210] 
    libcoreclr!ProfControlBlock::DoProfilerCallback<int (*)(ProfilerInfo *), int (*)(EEToProfInterfaceImpl *, unsigned long, unsigned long), unsigned long, unsigned long>+0x55 [/__w/1/s/src/native/eventpipe/ep-types-forward.h @ 298] 
    libcoreclr!ProfControlBlock::ObjectAllocated+0x7d [/crossrootfs/x64/usr/include/x86_64-linux-gnu/bits/types/FILE.h @ 1400] 
    libcoreclr!ProfilerObjectAllocatedCallback+0x8f [/__w/1/s/src/coreclr/vm/proftoeeinterfaceimpl.cpp @ 645] 
    libcoreclr!PublishObjectAndNotify<Object>+0x142 [/__w/1/s/src/coreclr/vm/gchelpers.cpp @ 15732480] 
    libcoreclr!FrozenObjectHeapManager::TryAllocateObject+0x186 [/__w/1/s/src/coreclr/vm/frozenobjectheap.cpp @ 118] 
    libcoreclr!AllocateString+0xa2 [/__w/1/s/src/coreclr/vm/gchelpers.cpp @ 1167] 
    libcoreclr!AllocateStringObject+0x49 [/crossrootfs/x64/usr/include/x86_64-linux-gnu/bits/stdint-intn.h @ 474] 
    libcoreclr!GlobalStringLiteralMap::AddStringLiteral+0x3e [/__w/1/s/src/coreclr/vm/stringliteralmap.cpp @ 504] 
    libcoreclr!GlobalStringLiteralMap::GetStringLiteral+0x3e [/__w/1/s/src/coreclr/vm/stringliteralmap.cpp @ 396] 
    libcoreclr!StringLiteralMap::GetStringLiteral+0xc1 [/__w/1/s/src/coreclr/vm/stringliteralmap.cpp @ 15732480] 
    libcoreclr!ModuleBase::ResolveStringRef+0x55 [/__w/1/s/src/coreclr/vm/ceeload.cpp @ 15732480] 
    libcoreclr!CEECodeGenInfo::constructStringLiteral+0xae [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 12035] 
    libclrjit!Compiler::fgMorphConst+0x30d [/__w/1/s/src/coreclr/jit/morph.cpp @ 15732480] 
    libclrjit!Compiler::fgMorphTree+0x289 [/__w/1/s/src/coreclr/jit/morph.cpp @ 15732480] 
    libclrjit!Compiler::fgMorphArgs+0xfd [/__w/1/s/src/coreclr/jit/morph.cpp @ 2073] 
    libclrjit!Compiler::fgMorphCall+0x441 [/__w/1/s/src/coreclr/jit/morph.cpp @ 6445] 
    libclrjit!Compiler::fgMorphTree+0x5a8 [/__w/1/s/src/coreclr/jit/morph.cpp @ 15732480] 
    libclrjit!Compiler::fgMorphStmts+0x302 [/__w/1/s/src/coreclr/jit/morph.cpp @ 13186] 
    libclrjit!Compiler::fgMorphBlock+0x204 [/__w/1/s/src/coreclr/jit/morph.cpp @ 13545] 
    libclrjit!Compiler::fgMorphBlocks+0x254 [/__w/1/s/src/coreclr/jit/morph.cpp @ 13666] 
    libclrjit!Phase::Run+0x6f [/__w/1/s/src/coreclr/jit/phase.cpp @ 61] 
    libclrjit!DoPhase+0x4b [/__w/1/s/src/coreclr/jit/phase.h @ 143] 
    libclrjit!Compiler::compCompile+0xc39 [/__w/1/s/src/coreclr/inc/corjit.h @ 4568] 
    libclrjit!Compiler::compCompileHelper+0xd4d [/__w/1/s/src/coreclr/inc/corjit.h @ 7089] 
    libclrjit!Compiler::compCompile::$_0::operator()+0x19 [/__w/1/s/src/coreclr/jit/compiler.cpp @ 6274] 
    libclrjit!Compiler::compCompile+0x758 [/__w/1/s/src/coreclr/jit/compiler.cpp @ 15732480] 
    libclrjit!jitNativeCode::$_0::operator()::{lambda(jitNativeCode(CORINFO_METHOD_STRUCT_ *, CORINFO_MODULE_STRUCT_ *, ICorJitInfo *, CORINFO_METHOD_INFO *, void **, unsigned int *, JitFlags *, void *)::$_0::operator()(jitNativeCode(CORINFO_METHOD_STRUCT_ *, CORINFO_MODULE_STRUCT_ *, ICorJitInfo *, CORINFO_METHOD_INFO *, void **, unsigned int *, JitFlags *, void *)::__JITParam *)::__JITParam *)#1}::operator()+0x1a2 [/__w/1/s/src/coreclr/jit/compiler.cpp @ 7732] 
    libclrjit!jitNativeCode::$_0::operator()+0x1bb [/__w/1/s/src/coreclr/inc/corjit.h @ 7756] 
    libclrjit!jitNativeCode+0x35d [/__w/1/s/src/coreclr/inc/corjit.h @ 7758] 
    libclrjit!CILJit::compileMethod+0x12d [/__w/1/s/src/coreclr/jit/ee_il_dll.cpp @ 302] 
    libcoreclr!invokeCompileMethod+0x84 [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 12833] 
    libcoreclr!UnsafeJitFunctionWorker+0x268 [/__w/1/s/src/coreclr/inc/volatile.h @ 13056] 
    libcoreclr!UnsafeJitFunction+0x501 [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 15732480] 
    libcoreclr!MethodDesc::JitCompileCodeLocked+0x156 [/__w/1/s/src/coreclr/vm/prestub.cpp @ 15732480] 
    libcoreclr!MethodDesc::JitCompileCodeLockedEventWrapper+0x422 [/__w/1/s/src/coreclr/vm/prestub.cpp @ 814] 
    libcoreclr!MethodDesc::JitCompileCode+0x21c [/__w/1/s/src/coreclr/vm/prestub.cpp @ 15732480] 
    libcoreclr!MethodDesc::PrepareILBasedCode+0x3f1 [/__w/1/s/src/coreclr/vm/prestub.cpp @ 432] 
    libcoreclr!TieredCompilationManager::CompileCodeVersion+0x186 [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 15732480] 
    libcoreclr!TieredCompilationManager::OptimizeMethod+0x67 [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 933] 
    libcoreclr!TieredCompilationManager::DoBackgroundWork+0x44a [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 820] 
    libcoreclr!TieredCompilationManager::BackgroundWorkerStart+0x145 [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 532] 
    libcoreclr!TieredCompilationManager::BackgroundWorkerBootstrapper1+0x33 [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 15732480] 
    libcoreclr!ManagedThreadBase_DispatchInner+0x6 [/__w/1/s/src/coreclr/vm/threads.cpp @ 6832] 
    libcoreclr!ManagedThreadBase_DispatchMiddle+0xa2 [/__w/1/s/src/coreclr/vm/threads.h @ 6876] 
    libcoreclr!<unnamed-class>::operator()+0xa6 [/__w/1/s/src/coreclr/vm/threads.h @ 7034] 
    libcoreclr!<unnamed-class>::operator()+0x120 [/__w/1/s/src/coreclr/vm/threads.h @ 7036] 
    libcoreclr!ManagedThreadBase_DispatchOuter+0x197 [/__w/1/s/src/coreclr/vm/threads.h @ 7060] 
    libcoreclr!ManagedThreadBase::KickOff+0x1c6 [/__w/1/s/src/coreclr/vm/threads.h @ 7074] 
    libcoreclr!TieredCompilationManager::BackgroundWorkerBootstrapper0+0x72 [/__w/1/s/src/coreclr/vm/tieredcompilation.cpp @ 15732480] 
    libcoreclr!CorUnix::CPalThread::ThreadEntry+0x3b0 [/__w/1/s/src/coreclr/pal/src/thread/thread.cpp @ 1620] 
    libc_so!pthread_condattr_setpshared+0x507
    libc_so!clone+0x1dc
    0xffffffff`ffffffff
    

    Main thread is in the middle of the shutdown:

    Call Site
    libc_so!unlink+0xb
    libcoreclr!TwoWayPipe::Disconnect+0x1b [/__w/1/s/src/coreclr/debug/debug-pal/unix/twowaypipe.cpp @ 170] 
    libcoreclr!EESocketCleanupHelper+0x3c [/crossrootfs/x64/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h @ 585] 
    libcoreclr!PROCNotifyProcessShutdown+0x10 [/__w/1/s/src/coreclr/pal/src/thread/process.cpp @ 1988] 
    libcoreclr!CorUnix::TerminateCurrentProcessNoExit+0x4c
    libcoreclr!coreclr_shutdown_2+0x5b [/__w/1/s/src/coreclr/dlls/mscoree/exports.cpp @ 15732480] 
    corerun!run+0x2311 [/__w/1/s/src/coreclr/hosts/corerun/corerun.cpp @ 518] 
    corerun!main+0x2bcd [/__w/1/s/src/coreclr/hosts/corerun/corerun.cpp @ 713] 
    libc_so!_libc_init_first+0x7b
    libc_so!_libc_start_main+0x8b
    corerun!start+0x2a
    0xffffffff`ffffffff
    
  6. added and removed
    JitStress
    on Jul 22, 2025
  7. dotnet-policy-service commented on Jul 22, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag
    See info in area-owners.md if you want to be subscribed.

  8. SakeTao commented on Jul 28, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr r2r 20250724.1

    Failed tests:

    R2R-CG2 osx arm64 Checked no_tiered_compilation @ OSX.13.Arm64.Open
        - profiler/handles/handles/handles.cmd
    

    Error message:

    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A4B20963/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A4B20963/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A4B20963/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A4B20963/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /private/tmp/helix/working/A4B20963/p/crossgen2/createdump
    /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/profiler/../handles/handles/handles.sh: line 272:  9401 Segmentation fault: 11  $__Command
    
    Return code:      1
    Raw output file:      /tmp/helix/working/A4B20963/w/B71109AF/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    in takeLock
    /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/Microsoft.Diagnostics.NETCore.Client.dll
    02:25:12
    Response file: /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll.rsp
    /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/Microsoft.Diagnostics.NETCore.Client.dll
    -o:/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll
    --targetarch:arm64
    --targetos:osx
    --verify-type-and-field-layout
    --method-layout:random
    -r:/tmp/helix/working/A4B20963/p/System.*.dll
    -r:/tmp/helix/working/A4B20963/p/Microsoft.*.dll
    -r:/tmp/helix/working/A4B20963/p/xunit.*.dll
    -r:/tmp/helix/working/A4B20963/p/mscorlib.dll
    -r:/tmp/helix/working/A4B20963/p/netstandard.dll
    Running CrossGen2:  /tmp/helix/working/A4B20963/p/crossgen2/crossgen2 @/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll.rsp   -r:/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/*.dll
    Emitting R2R PE file: /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll
    Running R2RDump:  dotnet /tmp/helix/working/A4B20963/p/R2RDump/R2RDump.dll --header --sc --in /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll --out /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/Microsoft.Diagnostics.NETCore.Client.dll.r2rdump --val
    02:25:12
    /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/TestLibrary.dll
    02:25:12
    Response file: /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll.rsp
    /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/TestLibrary.dll
    -o:/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll
    --targetarch:arm64
    --targetos:osx
    --verify-type-and-field-layout
    --method-layout:random
    -r:/tmp/helix/working/A4B20963/p/System.*.dll
    -r:/tmp/helix/working/A4B20963/p/Microsoft.*.dll
    -r:/tmp/helix/working/A4B20963/p/xunit.*.dll
    -r:/tmp/helix/working/A4B20963/p/mscorlib.dll
    -r:/tmp/helix/working/A4B20963/p/netstandard.dll
    Running CrossGen2:  /tmp/helix/working/A4B20963/p/crossgen2/crossgen2 @/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll.rsp   -r:/private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/IL-CG2/*.dll
    Emitting R2R PE file: /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll
    Running R2RDump:  dotnet /tmp/helix/working/A4B20963/p/R2RDump/R2RDump.dll --header --sc --in /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll --out /private/tmp/helix/working/A4B20963/w/B71109AF/e/profiler/handles/handles/TestLibrary.dll.r2rdump --val
    02:25:12
    /private/tmp/helix/working/A4
    

    Stack trace:

       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  9. 2 remaining items

  10. SakeTao commented on Aug 4, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr jitstress-isas-arm 20250802.1

    Failed tests:

    coreclr linux arm64 Checked jitstress_isas_nohwintrinsic_nosimd @ (AzureLinux.3.0.ArmArch.Open)[email protected]/dotnet-buildtools/prereqs:azurelinux-3.0-helix-arm64v8
        - profiler/handles/handles/handles.cmd
    

    Error message:

    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    /root/helix/work/workitem/e/profiler/profiler/../handles/handles/handles.sh: line 485:   310 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /root/helix/work/workitem/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /root/helix/work/workitem/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    Expected: 100
    Actual: 134
    END EXECUTION - FAILED
    Test failed. Trying to see if dump file was created in /home/helixbot/dotnetbuild/dumps since 08/02/2025 20:42:32
    Test Harness Exitcode is : 1
    To run the test:
    Set up CORE_ROOT and run.
    > /root/helix/work/workitem/e/profiler/profiler/../handles/handles/handles.sh
    

    Stack trace:

       at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  11. SakeTao commented on Oct 28, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr outerloop 20251027.7

    Failed tests:

    coreclr linux arm64 Checked @ (Alpine.322.Arm64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.22-helix-arm64v8
        - profiler/handles/handles/handles.cmd
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   line 6714 in /__w/1/s/src/coreclr/vm/threads.cpp
    	Function:   CheckRegDisplaySP
    	Process:    389
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /root/helix/work/workitem/e/profiler/profiler/../handles/handles/handles.sh: line 486:   364 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /root/helix/work/workitem/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /root/helix/work/workitem/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 374 corerun
    Profilee STDOUT: [createdump] Crashing thread 0180 signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 364 corerun
    [createdump] Crashing thread 016c signal 6 (0006)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.364.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.364.dmp
    [createdump] Written 45543
    

    Stack trace:

       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  12. SakeTao commented on Nov 13, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr outerloop 20251112.3

    Failed tests:

    coreclr linux arm Checked @ (Alpine.322.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.21-helix-arm32v7@sha256:9def952ab6aefa9d4641b4db38c2b147f1f33fede8540c4a971f3a071d3a44de
        - profiler/handles/handles/handles.cmd
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   line 6298 in /__w/1/s/src/coreclr/vm/threads.cpp
    	Function:   CheckRegDisplaySP
    	Process:    364
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /root/helix/work/workitem/e/profiler/profiler/../handles/handles/handles.sh: line 486:   341 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /root/helix/work/workitem/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /root/helix/work/workitem/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 351 corerun
    Profilee STDOUT: [createdump] Crashing thread 0169 signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 341 corerun
    [createdump] Crashing thread 0155 signal 6 (0006)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.341.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.341.dmp
    [createdump] Written 33316
    

    Stack trace:

       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  13. SakeTao commented on Dec 4, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr outerloop 20251203.7

    Failed tests:

    coreclr linux arm64 Checked @ AzureLinux.3.Arm64.Open
        - profiler/handles/handles/handles.cmd
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   line 6298 in /__w/1/s/src/coreclr/vm/threads.cpp
    	Function:   CheckRegDisplaySP
    	Process:    5107
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf3ee1604caac)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf3ee1604caac)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/97BA0877/w/AA2008FE/e/profiler/profiler/../handles/handles/handles.sh: line 513:  5085 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/97BA0877/w/AA2008FE/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/97BA0877/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /datadisks/disk1/work/97BA0877/w/AA2008FE/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 5096 corerun
    Profilee STDOUT: [createdump] Crashing thread 13ef signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 5085 corerun
    [createdump] Crashing thread 13dd signal 6 (0006)
    [createdump] Writing crash rep
    

    Stack trace:

       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  14. SakeTao commented on Dec 22, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr r2r 20251219.1

    Failed tests:

    R2R-CG2 linux arm64 Checked @ AzureLinux.3.Arm64.Open
        - profiler/handles/handles/handles.cmd
    

    Error message:

    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A1F40945/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A1F40945/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A1F40945/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A1F40945/p/crossgen2/createdump
    DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A1F40945/p/crossgen2/createdump
    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   line 5836 in /__w/1/s/src/coreclr/vm/threads.cpp
    	Function:   CheckRegDisplaySP
    	Process:    34908
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf664ac8055b8)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf664ac8055b8)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/profiler/../handles/handles/handles.sh: line 442: 34887 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/A1F40945/w/AFCE09D9/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    in takeLock
    /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/IL-CG2/eventpipe_common.dll
    07:06:40
    Response file: /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll.rsp
    /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/IL-CG2/eventpipe_common.dll
    -o:/datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll
    -O
    --targetarch:arm64
    --targetos:linux
    --verify-type-and-field-layout
    --method-layout:random
    -r:/datadisks/disk1/work/A1F40945/p/System.*.dll
    -r:/datadisks/disk1/work/A1F40945/p/Microsoft.*.dll
    -r:/datadisks/disk1/work/A1F40945/p/xunit.*.dll
    -r:/datadisks/disk1/work/A1F40945/p/mscorlib.dll
    -r:/datadisks/disk1/work/A1F40945/p/netstandard.dll
    Running CrossGen2:  /datadisks/disk1/work/A1F40945/p/crossgen2/crossgen2 @/datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll.rsp   -r:/datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/IL-CG2/*.dll
    Emitting R2R PE file: /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll
    Running R2RDump:  dotnet /datadisks/disk1/work/A1F40945/p/R2RDump/R2RDump.dll --header --sc --in /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll --out /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/eventpipe_common.dll.r2rdump --val
    07:06:40
    /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/IL-CG2/handles.dll
    07:06:40
    Response file: /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/handles.dll.rsp
    /datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/IL-CG2/handles.dll
    -o:/datadisks/disk1/work/A1F40945/w/AFCE09D9/e/profiler/handles/handles/handles.dll
    -O
    --targetarch:arm64
    --targetos:linux
    --verify-type-and-field-layout
    --method-layout:random
    -r:/datadisks/disk1/work/A1F40945/p/System.*.dll
    -r:/dat
    

    Stack trace:

       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  15. SakeTao commented on Dec 26, 2025

    @SakeTao
    Author

    Failed in: runtime-coreclr outerloop 20251225.3

    Failed tests:

    coreclr linux arm64 Checked @ AzureLinux.3.Arm64.Open
        - profiler/handles/handles/handles.cmd
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   line 5836 in /__w/1/s/src/coreclr/vm/threads.cpp
    	Function:   CheckRegDisplaySP
    	Process:    5562
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf666553d55b8)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xf666553d55b8)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/B44409CB/w/B32C099E/e/profiler/profiler/../handles/handles/handles.sh: line 442:  5539 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/B44409CB/w/B32C099E/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/B44409CB/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /datadisks/disk1/work/B44409CB/w/B32C099E/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 5548 corerun
    Profilee STDOUT: [createdump] Crashing thread 15b4 signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 5539 corerun
    [createdump] Crashing thread 15a3 signal 6 (0006)
    [createdump] Writing crash rep
    

    Stack trace:

       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor16|0_17(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  16. added a commit that references this issue on Feb 21, 2026
    e573475
  17. JulieLeeMSFT commented on Feb 25, 2026

    @JulieLeeMSFT
    Member

    Also failed in: runtime-coreclr jitstress 20260223.1

    Failed tests:

      coreclr linux arm64 Checked jitminopts @ AzureLinux.3.Arm64.Open  
    - JIT/Performance/CodeQuality/BenchmarksGame/binarytrees/binarytrees-2/binarytrees-2.cmd
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) >= pRD->_pThread->GetCachedStackLimit()
    	Location:   /__w/1/s/src/coreclr/vm/threads.cpp:5685
    	Function:   CheckRegDisplaySP
    	Process:    5260
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    /datadisks/disk1/work/C04109CF/w/B589097F/e/JIT/Performance/JIT.performance/../CodeQuality/BenchmarksGame/binarytrees/binarytrees-2/binarytrees-2.sh: line 432:  5248 Segmentation fault      (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/C04109CF/w/B589097F/uploads/CodeQuality/BenchmarksGame/binarytrees/binarytrees-2/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/C04109CF/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true binarytrees-2.dll ''
    stretch tree of depth 7	 check: 255
    64	 trees of depth 4	 check: 1984
    16	 trees of depth 6	 check: 2032
    long lived tree of depth 6	 check: 127
    [createdump] Gathering state for process 5248 corerun
    [createdump] Crashing thread 1480 signal 11 (000b)
    Expected: 100
    Actual: 139
    END EXECUTION - FAILED
    

    Stack trace:

      at Xunit.Assert.True(Nullable`1 condition, String userMessage) in //src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 141  at Xunit.Assert.True(Boolean condition,
      String userMessage) in //src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123  at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String
      testPathPrefix)  at Program.<<Main>$>g__TestExecutor96|0_97(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  18. VincentBu commented on Mar 2, 2026

    @VincentBu
    Contributor

    Failed in runtime-coreclr pgostress 20260227.1

    Failed Tests:

    coreclr linux x64 Checked fullpgo_methodprofiling_always_optimized @ AzureLinux.3.Amd64.Open
     - profiler/handles/handles/handles.cmd
    

    Error Message:

    ASSERT FAILED
    Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    Location:   /__w/1/s/src/coreclr/vm/threads.cpp:5687
    Function:   CheckRegDisplaySP
    Process:    26971
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
    at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
    at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, String envVarProfilerPrefix)
    at Profiler.Tests.HandlesTests.Main(String[] args)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/AE530982/w/9AE408C0/e/profiler/profiler/../handles/handles/handles.sh: line 439: 26952 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/AE530982/w/9AE408C0/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/AE530982/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /datadisks/disk1/work/AE530982/w/9AE408C0/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 26960 corerun
    Profilee STDOUT: [createdump] Crashing thread 6958 signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 26952 corerun
    [createdump] Crashing thread 6948 signal 6 (0006)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.26952.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump wit
    

    Stack Trace:

       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor18|0_19(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  19. VincentBu commented on Mar 12, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr jitstress 20260310.1

    Failed tests:

    coreclr linux arm64 Checked jitstress1_tiered @ AzureLinux.3.Arm64.Open
    - profiler/handles/handles/handles.cmd
    
    

    Error message:

    ASSERT FAILED
    	Expression: pRD->_pThread->IsExecutingOnAltStack() || PTR_VOID(pRD->SP) < pRD->_pThread->GetCachedStackBase()
    	Location:   /__w/1/s/src/coreclr/vm/threads.cpp:5687
    	Function:   CheckRegDisplaySP
    	Process:    7565
    waitpid() returned successfully (wstatus 00000085) WEXITSTATUS 0 WTERMSIG 5
    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xfccf2b01b7a4)
    apply_reg_state: ip and cfa unchanged; stopping here (ip=0xfccf2b01b7a4)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/C1E30A1C/w/B6A40949/e/profiler/profiler/../handles/handles/handles.sh: line 439:  7540 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/C1E30A1C/w/B6A40949/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/C1E30A1C/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /datadisks/disk1/work/C1E30A1C/w/B6A40949/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 7554 corerun
    Profilee STDOUT: [createdump] Crashing thread 1d8a signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 7540 corerun
    [createdump] Crashing thread 1d74 signal 6 (0006)
    [createdump] Writing crash report to f
    

    Stack trace:

       at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 123
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix)
       at Program.<<Main>$>g__TestExecutor18|0_19(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  20. modified the milestones: 11.0.0, Future on Jul 14, 2026
  21. VincentBu commented on Jul 30, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr outerloop 20260729.2

    Failed tests:

    coreclr linux arm64 Checked @ (Alpine.324.Arm64.Open)[email protected]/dotnet-buildtools/prereqs:alpine-3.24-helix-arm64v8@sha256:c0651a184147638e54b2f6a3c8f040274b1bf2deb0bf3e5c4513824598497ae0
    - profiler/handles/handles/handles.cmd
    
    

    Error message:

    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, Boolean appendNotificationSeparator, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /root/helix/work/workitem/e/profiler/profiler/../handles/handles/handles.sh: line 453:   394 Aborted                    (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /root/helix/work/workitem/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /root/helix/work/workitem/e/profiler/handles/handles/libProfiler.so
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 404 corerun
    Profilee STDOUT: [createdump] Crashing thread 019c signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 394 corerun
    [createdump] Crashing thread 018a signal 6 (0006)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.394.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.394.dmp
    [createdump] Written 42426368 bytes (10358 pages) to core file
    [createdump] Target process is alive
    [createdump] Dump successfully written in 123ms
    Expected: 100
    Actual: 134
    END EXECUTION - FAILED
    Test Harness Exitcode is : 1
    To run the test:
    Set up CORE_ROOT and run.
    

    Stack trace:

       at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 135
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix) in /__w/1/s/src/tests/Common/CoreCLRTestLibrary/OutOfProcessTest.cs:line 147
       at Program.<<Main>$>g__TestExecutor19|0_20(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
    
  22. VincentBu commented on Nov 13, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr outerloop 20261112.6

    Failed tests:

    coreclr linux x64 Checked @ AzureLinux.3.Amd64.Open
    - OutOfProcessTest.profiler/handles/handles/handles.cmd
    
    

    Error message:

    Unhandled exception. System.Exception: Profilee returned exit code 139 instead of expected exit code 100.
       at Profiler.Tests.ProfilerTestRunner.FailFastWithMessage(String error)
       at Profiler.Tests.ProfilerTestRunner.Run(String profileePath, String testName, Guid profilerClsid, String profileeArguments, ProfileeOptions profileeOptions, Dictionary`2 envVars, String reverseServerName, Boolean loadAsNotification, Int32 notificationCopies, Boolean appendNotificationSeparator, String envVarProfilerPrefix)
       at Profiler.Tests.HandlesTests.Main(String[] args)
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    /datadisks/disk1/work/B4A009A3/w/AAD20999/e/profiler/profiler/../handles/handles/handles.sh: line 536:  4290 Aborted                 (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /datadisks/disk1/work/B4A009A3/w/AAD20999/uploads/handles/handles/output.txt
    Raw output:
    BEGIN EXECUTION
    /datadisks/disk1/work/B4A009A3/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true handles.dll ''
    Profiler path: /datadisks/disk1/work/B4A009A3/w/AAD20999/e/profiler/handles/handles/libProfiler.so
    Profilee command: "/datadisks/disk1/work/B4A009A3/p/corerun" /datadisks/disk1/work/B4A009A3/w/AAD20999/e/profiler/handles/handles/handles.dll RunTest 
    Profilee environment variables:
      DOTNET_ENABLE_PROFILING=1
      DOTNET_PROFILER={a0f96622-522d-4654-aa56-bf421e79b210}
      DOTNET_PROFILER_PATH=/datadisks/disk1/work/B4A009A3/w/AAD20999/e/profiler/handles/handles/libProfiler.so
      Profiler_Test_Name=Handles
    Profilee STDOUT: Profiler.dll!DllGetClassObject
    Profilee STDOUT: Profiler.dll!Profiler::Initialize
    Profilee STDOUT: Handles started. Control-C to exit
    Profilee STDOUT: Worker thread started
    Profilee STDOUT: Allocating Weak
    Profilee STDOUT: Allocating Strong
    Profilee STDOUT: Allocating Pinned
    Profilee STDOUT: weak = 1-W
    Profilee STDOUT: strong = 2-S
    Profilee STDOUT: weak = 3-P
    Profilee STDOUT: Collection #1
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: weak handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: strong handle created.
    Profilee STDOUT: HandlesProfiler::ObjectAllocated: pinned handle created.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(weak): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #2
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#1): pinned handle object address did not changed as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object alive as expected (Profiler.Tests.TestClassForStrongHandle)
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object alive as expected (Profiler.Tests.TestClassForPinnedHandle)
    Profilee STDOUT: Collection #3
    Profilee STDOUT: Test Passed
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): strong handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#2): pinned handle destroyed.
    Profilee STDOUT: HandlesProfiler::GarbageCollectionFinished(#3): Checking handles:
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(strong): object not alive as expected.
    Profilee STDOUT: HandlesProfiler::CheckIfAlive(pinned): object not alive as expected.
    Profilee STDOUT: Profiler.dll!Profiler::Shutdown
    Profilee STDOUT: PROFILER TEST PASSES
    Profilee STDOUT: [createdump] Gathering state for process 4322 corerun
    Profilee STDOUT: [createdump] Crashing thread 10e8 signal 11 (000b)
    Test failed: Profilee returned exit code 139 instead of expected exit code 100.
    [createdump] Gathering state for process 4290 corerun
    [createdump] Crashing thread 10c2 signal 6 (0006)
    [createdump] Writing crash report to file /data
    

    Stack trace:

    at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/BooleanAsserts.cs:line 135
       at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix) in /__w/1/s/src/tests/Common/CoreCLRTestLibrary/OutOfProcessTest.cs:line 203
       at Program.<<Main>$>g__TestExecutor18|0_19(StreamWriter tempLogSw, StreamWriter statsCsvSw, StreamWriter outOfProcessPlanWriter, <>c__DisplayClass0_0&)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-x64area-Diagnostics-coreclrblocking-clean-ci-optionalos-linux

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions