Skip to content

AF: *(_UNCHECKED_OBJECTREF *)handle == NULL (HndCreateHandle called by getJitHandleForObject) #117138

Open

Description

@SakeTao

Failed in: runtime-coreclr gcstress-extra 20250629.1

Failed tests:

coreclr osx arm64 Checked gcstress0xc_disabler2r @ OSX.13.Arm64.Open
    - JIT/Regression/JitBlue/DevDiv_461649/DevDiv_461649/DevDiv_461649.cmd

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1081377&view=results
Build error leg or test failing:

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "*(_UNCHECKED_OBJECTREF *)handle == NULL",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.
Validation performed at: 9/28/2025 6:05:32 PM UTC

Report

Build Repository Test Pull Request
1672437 dotnet/runtime System.IO.Compression.Brotli.Tests.WorkItemExecution
1669975 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution #137045
1669923 dotnet/runtime System.Reflection.Tests.WorkItemExecution #136937
1669845 dotnet/runtime System.Reflection.Tests.WorkItemExecution
1666610 dotnet/runtime OutOfProcessTest.readytorun\DynamicMethodGCStress\DynamicMethodGCStress\DynamicMethodGCStress.cmd #137046
1663485 dotnet/runtime System.Linq.Tests.WorkItemExecution #133483
1663305 dotnet/runtime OutOfProcessTest.JIT/opt/OSR/tailrecurse/tailrecurse.cmd #135794
1661405 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution #136166
1661110 dotnet/runtime System.Memory.Tests.WorkItemExecution #136847
1659594 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution #136830
1658811 dotnet/runtime OutOfProcessTest.JIT/Directed/tls/TestTLSWithLoadedDlls/TestTLSWithLoadedDlls.cmd #135794
1658693 dotnet/runtime System.Private.Xml.Tests.WorkItemExecution #136784
1657880 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #136755
1656429 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution #136562
1655664 dotnet/runtime System.Threading.Tasks.Parallel.Tests.WorkItemExecution #136513
1653325 dotnet/runtime JIT\opt\OSR\pinnedlocal\pinnedlocal.cmd #136606
1653154 dotnet/runtime ComInterfaceGenerator.Unit.Tests.WorkItemExecution #136593
1651259 dotnet/runtime System.Runtime.Numerics.Tests.WorkItemExecution
1649854 dotnet/runtime JIT/opt/OSR/doublestackalloc/doublestackalloc.cmd #136412
1649816 dotnet/runtime Loader.WorkItemExecution
1649869 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #136438
1649189 dotnet/runtime System.Reflection.Tests.WorkItemExecution #129506
1648931 dotnet/runtime System.Reflection.Tests.WorkItemExecution
1648535 dotnet/runtime System.Text.Json.Tests.WorkItemExecution #136450
1646052 dotnet/runtime System.IO.Compression.Tests.WorkItemExecution #134983
1645041 dotnet/runtime JIT\opt\OSR\pinnedlocal\pinnedlocal.cmd #136248
1643958 dotnet/runtime System.Private.Xml.Tests.WorkItemExecution #135794
1642735 dotnet/runtime Microsoft.Extensions.Options.SourceGeneration.Unit.Tests.WorkItemExecution #135902
1639173 dotnet/runtime JIT/opt/OSR/mainloop/mainloop.cmd
1638556 dotnet/runtime JIT\opt\OSR\pinnedlocal\pinnedlocal.cmd #135794
1637911 dotnet/runtime System.Private.Xml.Tests.WorkItemExecution #135924
1637356 dotnet/runtime System.Reflection.Tests.WorkItemExecution
1636393 dotnet/runtime readytorun\DynamicMethodGCStress\DynamicMethodGCStress\DynamicMethodGCStress.cmd #129683
1635944 dotnet/runtime System.Private.Xml.Tests.WorkItemExecution #132637
1635393 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution #125436
1634540 dotnet/runtime System.Reflection.Tests.WorkItemExecution #133659
1633828 dotnet/runtime JIT\opt\OSR\pinnedlocal\pinnedlocal.cmd #135653

Summary

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

Activity

  1. added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jun 30, 2025
  2. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Jul 7, 2025
  3. removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Jul 7, 2025
  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 14, 2025
  5. added this to the 10.0.0 milestone on Jul 14, 2025
  6. amanasifkhalid commented on Jul 28, 2025

    @amanasifkhalid
    Contributor

    This hasn't hit in the last few runs. Removing blocking-optional tag.

  7. 21 remaining items

  8. modified the milestones: 10.0.0, 11.0.0 on May 1, 2026
  9. JulieLeeMSFT commented on Jul 9, 2026

    @JulieLeeMSFT
    Member

    Failed in (1):

    Console Log: Console Log
    Source: runtime-coreclr libraries-pgo / net11.0-windows-Release-x64-jitosr_stress-Windows.10.Amd64.Open / System.Runtime.Numerics.Tests

    Failed tests:

    - net11.0-windows-Release-x64-jitosr_stress-Windows.10.Amd64.Open
      - System.Runtime.Numerics.Tests
    

    Error Message:

    Assert failure(PID 9492 [0x00002514], Thread: 11336 [0x2c48]): *(_UNCHECKED_OBJECTREF *)handle == NULL
    
    CORECLR! HndCreateHandle + 0x21D (0x00007ffe`3767566d)
    CORECLR! GCHandleStore::CreateHandleOfType + 0xBF (0x00007ffe`3768191f)
    CORECLR! Thread::SetLastThrownObject + 0x3CD (0x00007ffe`3724be6d)
    CORECLR! Thread::SafeSetThrowables + 0x207 (0x00007ffe`3724a6f7)
    CORECLR! NotifyExceptionPassStarted + 0xB2 (0x00007ffe`3765c8c2)
    CORECLR! SfiInitWorker + 0x165 (0x00007ffe`3765de85)
    CORECLR! SfiInit + 0x23F (0x00007ffe`37661b2f)
    SYSTEM.PRIVATE.CORELIB! <no symbol> + 0x0 (0x00007ffe`359819d7)
    SYSTEM.PRIVATE.CORELIB! <no symbol> + 0x0 (0x00007ffe`359817cb)
    CORECLR! UnmanagedCallersOnlyCaller::InvokeDirect<unsigned long,ExInfo *> + 0x1E8 (0x00007ffe`37075eb8)
        File: D:\a\_work\1\s\src\coreclr\gc\handletable.cpp:306
        Image: C:\h\w\AC280905\p\dotnet.exe
    
  10. VincentBu commented on Jul 13, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr libraries-jitstress2-jitstressregs 20260711.1

    Failed tests:

    net11.0-linux-Release-x64-jitstress2_jitstressregs0x10-AzureLinux.3.Amd64.Open
    - System.Reflection.MetadataLoadContext.Tests Work Item
    
    

    Error message:

    ASSERT FAILED
    	Expression: *(_UNCHECKED_OBJECTREF *)handle == NULL
    	Location:   /__w/1/s/src/coreclr/gc/handletable.cpp:306
    	Function:   HndCreateHandle
    	Process:    38944
    [createdump] Gathering state for process 38944 dotnet
    [createdump] Crashing thread 9837 signal 5 (0005)
    [createdump] Writing crash report to file /datadisks/disk1/dumps/coredump.38944.dmp.crashreport.json
    [createdump] Crash report successfully written
    [createdump] Writing minidump with heap to file /datadisks/disk1/dumps/coredump.38944.dmp
    [createdump] Written 201654272 bytes (49232 pages) to core file
    [createdump] Target process is alive
    [createdump] Dump successfully written in 1063ms
    waitpid() returned successfully (wstatus 00000000) WEXITSTATUS 0 WTERMSIG 0
    ./RunTests.sh: line 175: 38944 Aborted                 (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Reflection.MetadataLoadContext.Tests.runtimeconfig.json --depsfile System.Reflection.MetadataLoadContext.Tests.deps.json xunit.console.dll System.Reflection.MetadataLoadContext.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
    /datadisks/disk1/work/BD7C09D2/w/ACBC094D/e
    ----- end Sat Jul 11 09:59:51 AM UTC 2026 ----- exit code 134 ----------------------------------------------------------
    
  11. VincentBu commented on Sep 8, 2026

    @VincentBu
    Contributor

    Failed in: runtime-coreclr gcstress-extra 20260906.1

    Failed tests:

    coreclr osx arm64 Checked gcstress0xc_jitstress2 @ OSX.26.Arm64.Open
    - JIT/Regression/JitBlue/DevDiv_461649/DevDiv_461649/DevDiv_461649.cmd
    
    

    Error message:

    ASSERT FAILED
    	Expression: *(_UNCHECKED_OBJECTREF *)handle == NULL
    	Location:   /Users/runner/work/1/s/src/coreclr/gc/handletable.cpp:301
    	Function:   HndCreateHandle
    	Process:    2120
    /private/tmp/helix/working/B09D09D3/w/9FB30918/e/JIT/Regression/Regression_3/../JitBlue/DevDiv_461649/DevDiv_461649/DevDiv_461649.sh: line 462:  2120 Trace/BPT trap: 5       (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"
    
    Return code:      1
    Raw output file:      /tmp/helix/working/B09D09D3/w/9FB30918/uploads/JitBlue/DevDiv_461649/DevDiv_461649/output.txt
    Raw output:
    BEGIN EXECUTION
    /tmp/helix/working/B09D09D3/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true DevDiv_461649.dll ''
    Expected: 100
    Actual: 133
    END EXECUTION - FAILED
    Test Harness Exitcode is : 1
    To run the test:
    Set up CORE_ROOT and run.
    > /private/tmp/helix/working/B09D09D3/w/9FB30918/e/JIT/Regression/Regression_3/../JitBlue/DevDiv_461649/DevDiv_461649/DevDiv_461649.sh
    

    Stack trace:

    at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath, String testPathPrefix) in /__w/1/s/src/tests/Common/CoreCLRTestLibrary/OutOfProcessTest.cs:line 82
       at Program.<<Main>$>g__TestExecutor108|0_109(StreamWriter tempLogSw, StreamWriter statsCsvSw, StreamWriter outOfProcessPlanWriter, <>c__DisplayClass0_0&)
    
  12. added
    Priority:1Work that is critical for the release, but we could probably ship without
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GCStressKnown Build ErrorUse this to report build issues in the .NET Helix tabPriority:1Work that is critical for the release, but we could probably ship withoutarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'blocking-clean-ci-optionalBlocking optional rolling runs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions