Skip to content

baseservices\exceptions\fullpdbstacktrace fails in NativeAOT #130647

Closed

Description

@jakobbotsch

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1506312
Build error leg or test failing: baseservices\exceptions\fullpdbstacktrace\FullPdbThrower\FullPdbThrower.dll
Pull request: #130081

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

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

{
  "ErrorMessage": ["Not found:", "FullPdbThrower"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Test added in #129866, cc @hoyosjs

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1506312
Error message validated: [Not found: "FullPdbThrower.cs"]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 7/13/2026 9:56:53 PM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1506312
Error message validated: [Not found: FullPdbThrower.cs]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 7/13/2026 9:58:21 PM UTC

Report

Summary

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

Report

Build Repository Test Pull Request
1522087 dotnet/runtime baseservices/exceptions/fullpdbstacktrace/FullPdbThrower/FullPdbThrower.cmd #123920
1521923 dotnet/runtime baseservices/exceptions/fullpdbstacktrace/FullPdbThrower/FullPdbThrower.cmd #127297
1507030 dotnet/runtime baseservices\exceptions\fullpdbstacktrace\FullPdbThrower\FullPdbThrower.dll
1506312 dotnet/runtime baseservices\exceptions\fullpdbstacktrace\FullPdbThrower\FullPdbThrower.dll #130081

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 4

Activity

  1. added
    blocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Jul 13, 2026
  2. dotnet-policy-service commented on Jul 13, 2026

    @dotnet-policy-service
    Contributor

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

  3. dotnet-policy-service commented on Jul 13, 2026

    @dotnet-policy-service
    Contributor

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

  4. MichalStrehovsky commented on Jul 14, 2026

    @MichalStrehovsky
    Member

    Fixed in #130654

  5. JulieLeeMSFT commented on Jul 22, 2026

    @JulieLeeMSFT
    Member

    It still failed with the fix. cc @MichalStrehovsky

    Failed in (1):

    Console Log: Console Log
    Source: runtime-coreclr ilasm / coreclr windows x86 Checked ilasmroundtrip @ Windows.10.Amd64.Open / Directed_3

    Failed tests:

    - coreclr windows x64 Checked ilasmroundtrip @ Windows.10.Amd64.Open
    - coreclr windows x86 Checked ilasmroundtrip @ Windows.10.Amd64.Open
      - Directed_3
      - baseservices/exceptions/fullpdbstacktrace/FullPdbThrower/FullPdbThrower.cmd
    
  6. MichalStrehovsky commented on Jul 22, 2026

    @MichalStrehovsky
    Member

    It still failed with the fix. cc @MichalStrehovsky

    A failure in "runtime-coreclr ilasm" leg doesn't sound related to native AOT that this issue was tracking.

  7. lateralusX commented on Jul 23, 2026

    @lateralusX
    Member

    Looks like test triggers some assert in JIT:

    20:57:52.341 Running test: JIT/Directed/refbyref/byref2iu_d/byref2iu_d.dll
    
    Assert failure(PID 11008 [0x00002b00], Thread: 4584 [0x11e8]): Assertion failed 'genActualTypeIsInt(value)' in 'byref2iu:Main():int' during 'Morph - Global' (IL size 189; hash 0x27f1e098; MinOpts)
    
        File: D:\a\_work\1\s\src\coreclr\jit\morph.cpp:3497
        Image: C:\h\w\BB2E09D8\p\corerun.exe
    
    Exit Code: -1073740286
    Expected: 100
    Actual: -1073740286
    END EXECUTION - FAILED
    

    OS Thread Id: 0x11e8
    Child SP       IP Call Site
    00D7A5D0 734D5BB2 coreclr!FailFastOnAssert + 34
    00D7A5E0 734D6F4F coreclr!_DbgBreakCheck + 1327
    00D7B6B0 737F5054 coreclr!CEEInfo::doAssert + 228
    00D7B724 717A77BA clrjit!assertAbort + 234
    00D7D750 71907D47 clrjit!Compiler::fgMorphExpandLocal + 199
    00D7D778 7190B526 clrjit!Compiler::fgMorphSmpOp + 294
    00D7D7C8 7190F2D6 clrjit!Compiler::fgMorphTree + 614
    00D7D7F4 7190E0F5 clrjit!Compiler::fgMorphStmts + 293
    00D7D820 719056FF clrjit!Compiler::fgMorphBlock + 1215
    00D7D858 71905B5F clrjit!Compiler::fgMorphBlocks + 191
    00D7D894 71783104 clrjit!CompilerPhaseWithStatus::DoPhase + 20
    00D7D8A0 71946244 clrjit!Phase::Run + 116
    00D7D8D4 71788079 clrjit!Compiler::compCompile + 2121
    00D7DD98 7178B289 clrjit!Compiler::compCompileHelper + 2425
    00D7DE0C 7178A05A clrjit!Compiler::compCompileAfterInit + 1994
    00D7DEE4 71786AFA clrjit!``jitNativeCode'::`8'::__Body::Run'::`5'::__Body::Run + 170
    00D7DF00 71786B6A clrjit!`jitNativeCode'::`8'::__Body::Run + 90
    00D7DF4C 7178FF13 clrjit!jitNativeCode + 531
    00D7E41C 7179621C clrjit!CILJit::compileMethod + 316
    00D7E4B4 738251F8 coreclr!invokeCompileMethod + 376
    00D7E550 737F0553 coreclr!UnsafeJitFunctionWorker + 691
    00D7E624 737EFF58 coreclr!UnsafeJitFunction + 744
    00D7E820 738CCFCB coreclr!MethodDesc::JitCompileCodeLocked + 475
    00D7E924 738CDB70 coreclr!MethodDesc::JitCompileCodeLockedEventWrapper + 1424
    00D7EA48 738CCCF0 coreclr!MethodDesc::JitCompileCode + 1488
    00D7EB04 738CF3C7 coreclr!MethodDesc::PrepareCode + 887
    00D7EBB0 73731F76 coreclr!CodeVersionManager::PublishVersionableCodeIfNecessary + 1030
    00D7ED20 738C893C coreclr!MethodDesc::DoPrestub + 1660
    00D7EE94 738D26E8 coreclr!PreStubWorker + 1240
    00D7EF98          [PrestubMethodFrame: 00d7ef98] byref2iu_d.dll!byref2iu.Main()
    00D7EFF8 73CDC583 coreclr!ThePreStub + 17
    00D7F01C 08AA8553 Directed_3.dll!Program.<<Main>$>g__TestExecutor6|0_7(System.IO.StreamWriter, System.IO.StreamWriter, <>c__DisplayClass0_0 ByRef) + 379
    00D7F0A0 08AA1B8B 
    00D7F0A4 08AA1B8B Directed_3.dll!Program.<Main>$(System.String[]) + 875
    00D7F0FC 71F618BE System.Private.CoreLib.dll!System.Environment.CallEntryPoint(IntPtr, System.String[]*, Int32*, Boolean, System.Exception*) + 62
    00D7F128 7369488D coreclr!UnmanagedCallersOnlyCaller::InvokeThrowing<int,REF<PtrArray> *,int *,bool> + 525
    00D7F260 736A123F coreclr!RunMainInternal + 863
    00D7F338 736A0ACA coreclr!``RunMain'::`21'::__Body::Run'::`5'::__Body::Run + 138
    00D7F378 736A0C0B coreclr!`RunMain'::`21'::__Body::Run + 187
    00D7F3D0 736A0E07 coreclr!RunMain + 343
    00D7F450 7369B7F8 coreclr!Assembly::ExecuteMainMethod + 712
    00D7F7AC 7373A8CF coreclr!CorHost2::ExecuteAssembly + 1663
    00D7F908 73CF74C3 coreclr!coreclr_execute_assembly + 451
    00D7F97C 00E815A9 corerun + 71081
    00D7FD88 00E846E5 corerun!GetCurrentClrDetails + 549
    00D7FE38 00E8D503 corerun!GetCurrentClrDetails + 36931
    00D7FE58 00E8D3DA corerun!GetCurrentClrDetails + 36634
    00D7FEB4 00E8D27D corerun!GetCurrentClrDetails + 36285
    00D7FEBC 00E8D568 corerun!GetCurrentClrDetails + 37032
    00D7FEC4 771362C4 kernel32!BaseThreadInitThunk + 36
    00D7FED8 77800AA9 ntdll!RtlSubscribeWnfStateChangeNotification + 1081
    00D7FF20 77800A74 ntdll!RtlSubscribeWnfStateChangeNotification + 1028
    

    @JulieLeeMSFT, maybe this should go into a different issue targeting the specific error?

  8. jakobbotsch commented on Jul 23, 2026

    @jakobbotsch
    MemberAuthor

    I think Julie posted the wrong Console log link above, the correct one from the same run is https://helixr1107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-heads-main-7b8d78afe7fc44e3b5/baseservices-exceptions/1/console.65c6545e.log?helixlogtype=result:

    ILASM RoundTrips
    ILASM RoundTrip for FullPdbThrower.dll
    C:\h\w\BB2E09D8\p/ildasm -raweh -unicode -out=IL-RT\FullPdbThrower.il IL-RT\FullPdbThrower.dll
    C:\h\w\BB2E09D8\p\ilasm -output=FullPdbThrower.dll -DET -DEBUG IL-RT\FullPdbThrower.il
    C:\h\w\BB2E09D8\p\ilasm -output=FullPdbThrower.dll -DET -DEBUG IL-RT\FullPdbThrower.il
    ILASM determinism succeeded
    C:\h\w\BB2E09D8\p\ilasm -output=FullPdbThrower.pdb -DET -DEBUG IL-RT\FullPdbThrower.il
    C:\h\w\BB2E09D8\p\ilasm -output=FullPdbThrower.pdb -DET -DEBUG IL-RT\FullPdbThrower.il
    ILASM PDB determinism succeeded
    
    ILASM RoundTrip for TestLibrary.dll
    C:\h\w\BB2E09D8\p/ildasm -raweh -unicode -out=IL-RT\TestLibrary.il IL-RT\TestLibrary.dll
    C:\h\w\BB2E09D8\p\ilasm -output=TestLibrary.dll -DET -DLL IL-RT\TestLibrary.il
    C:\h\w\BB2E09D8\p\ilasm -output=TestLibrary.dll -DET -DLL IL-RT\TestLibrary.il
    ILASM determinism succeeded
    C:\h\w\BB2E09D8\p\ilasm -output=TestLibrary.pdb -DET -DLL -DEBUG IL-RT\TestLibrary.il
    C:\h\w\BB2E09D8\p\ilasm -output=TestLibrary.pdb -DET -DLL -DEBUG IL-RT\TestLibrary.il
    ILASM PDB determinism succeeded
    
    
     "C:\h\w\BB2E09D8\p\corerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  FullPdbThrower.dll 
    Xunit.Sdk.ContainsException: Assert.Contains() Failure: Sub-string not found
    String:    "System.InvalidOperationException: Exception from f"???
    Not found: "FullPdbThrower.cs"
       at Xunit.Assert.Contains(String expectedSubstring, String actualString) in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/StringAsserts.cs:line 35
       at FullPdbThrower.ExceptionToString_FullPdb_IncludesSourceLine()
       at __GeneratedMainWrapper.Main()
    Expected: 100
    Actual: 101
    

    But yes it does not look like a NativeAOT issue and rather something related to ilasm roundtripping.

  9. jakobbotsch commented on Jul 23, 2026

    @jakobbotsch
    MemberAuthor

    I opened #131256 for the JIT assert and #131255 for the fullpdbstacktrace failure

  10. locked and limited conversation to collaborators on Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Diagnostics-coreclrblocking-outerloopBlocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions