Skip to content

Segmentation fault running System.Security.Cryptography.Tests #113785

Closed

Description

@MichalStrehovsky

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=988802
Build error leg or test failing: System.Security.Cryptography.Tests.WorkItemExecution
Pull request: #113759

Error Message

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

{
  "ErrorMessage": "",
  "ErrorPattern": "Segmentation fault.*dotnet.*System.Security.Cryptography.Tests",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=988802
Error message validated: [Segmentation fault.*dotnet.*System.Security.Cryptography.Tests]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 3/22/2025 7:57:07 AM UTC

Report

Build Definition Test Pull Request
998682 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113976
998378 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113976
997452 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113976
996845 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113976
992640 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113866
992595 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113862
992516 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113576
992505 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
992237 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113250
992177 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113845
992104 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113864
992011 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113861
992005 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113713
991856 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113856
991921 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113859
991901 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113857
991730 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
991701 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113852
991621 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113849
991400 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113845
991384 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113592
991362 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113376
991297 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113843
991277 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113550
988907 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113250
989288 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113769
991226 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113666
991207 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #111933
991025 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113592
990904 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113824
990856 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113111
990684 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113812
990593 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113812
990522 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
990524 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113715
990498 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113761
990486 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113808
990469 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #107369
990440 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #110945
990436 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #104822
990315 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113576
990302 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #107499
990216 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
990113 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113790
990034 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution
989971 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113793
989949 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113792
989940 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113791
989925 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113666
988802 dotnet/runtime System.Security.Cryptography.Tests.WorkItemExecution #113759

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 28 50

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    os-linux-musl
    on Mar 22, 2025
  2. added
    untriaged
    on Mar 22, 2025
  3. dotnet-policy-service commented on Mar 22, 2025

    @dotnet-policy-service
    Contributor

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

  4. vcsjones commented on Mar 22, 2025

    @vcsjones
    Member

    Unfortunately I can't seem to get anything intelligible from lldb here (likely "skill issue"), and I can't reproduce it with the assets runfo provided. I get a clean run on alpine arm64.

  5. dotnet-policy-service commented on Mar 22, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-security, @bartonjs, @vcsjones
    See info in area-owners.md if you want to be subscribed.

  6. jkotas commented on Mar 23, 2025

    @jkotas
    Member

    Looked at runfo get-helix-payload -j 7034a102-c19e-4274-979d-3299d2fa569f -w System.Security.Cryptography.Tests -o c:\helix_payload\System.Security.Cryptography.Tests

    This is crashing in the JIT at this callstack:

    0:000> k
     # Child-SP          RetAddr               Call Site
    00 (Inline Function) --------`--------     libclrjit!BitSetOps<unsigned long *, 1U, BitVecTraits *, BitVecTraits>::IsEmptyIntersectionLong+0x8 [/__w/1/s/src/coreclr/jit/bitsetasshortlong.h @ 958] 
    01 (Inline Function) --------`--------     libclrjit!BitSetOps<unsigned long *, 1U, BitVecTraits *, BitVecTraits>::IsEmptyIntersection+0xbe [/__w/1/s/src/coreclr/jit/_typeinfo.h @ 358] 
    02 0000748d`64dfc730 0000744c`bf1d1823     libclrjit!ObjectAllocator::ComputeStackObjectPointers+0x160 [/__w/1/s/src/coreclr/jit/jit.h @ 741] 
    03 0000748d`64dfc790 0000744c`bf205d3f     libclrjit!ObjectAllocator::DoPhase+0x1e3 [/__w/1/s/src/coreclr/jit/objectalloc.cpp @ 255] 
    04 0000748d`64dfc7b0 0000744c`befc1dcd     libclrjit!Phase::Run+0x6f [/__w/1/s/src/coreclr/jit/phase.cpp @ 61] 
    05 0000748d`64dfc800 0000744c`befc874d     libclrjit!Compiler::compCompile+0x57d [/__w/1/s/src/coreclr/inc/corjit.h @ 4492] 
    06 0000748d`64dfcc80 0000744c`befc6958     libclrjit!Compiler::compCompileHelper+0xd4d [/__w/1/s/src/coreclr/inc/corjit.h @ 7150] 
    07 (Inline Function) --------`--------     libclrjit!Compiler::compCompile::$_0::operator()+0x19 [/__w/1/s/src/coreclr/jit/compiler.cpp @ 6335] 
    08 0000748d`64dfcd20 0000744c`befc984d     libclrjit!Compiler::compCompile+0x898 [/__w/1/s/src/coreclr/jit/compiler.cpp @ 15732480] 
    09 (Inline Function) --------`--------     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 @ 7798] 
    0a (Inline Function) --------`--------     libclrjit!jitNativeCode::$_0::operator()+0x1bb [/__w/1/s/src/coreclr/inc/corjit.h @ 7822] 
    0b 0000748d`64dfce00 0000744c`befd57bd     libclrjit!jitNativeCode+0x35d [/__w/1/s/src/coreclr/inc/corjit.h @ 7824] 
    0c 0000748d`64dfd510 0000748d`ec5656bd     libclrjit!CILJit::compileMethod+0x12d [/__w/1/s/src/coreclr/jit/ee_il_dll.cpp @ 302] 
    0d 0000748d`64dfd5d0 0000748d`ec565883     libcoreclr!invokeCompileMethodHelper+0x10d [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 12753] 
    0e 0000748d`64dfd640 0000748d`ec5660e8     libcoreclr!invokeCompileMethod+0x63 [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 15732480] 
    0f 0000748d`64dfd6b0 0000748d`ec566f7d     libcoreclr!UnsafeJitFunctionWorker+0x468 [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 15732480] 
    10 0000748d`64dfd7d0 0000748d`ec5bc203     libcoreclr!UnsafeJitFunction+0xb6d [/__w/1/s/src/coreclr/vm/jitinterface.cpp @ 15732480] 
    11 0000748d`64dfe4f0 0000748d`ec5bba45     libcoreclr!MethodDesc::JitCompileCodeLocked+0x263 [/__w/1/s/src/coreclr/vm/prestub.cpp
    ...
    

    The crash appears to be caused by access of uninitialized pointer:

    0000744c`bf1d2780 488b3cf1        mov     rdi,qword ptr [rcx+rsi*8] ds:dddddddd`dddddddd=????????????????
    
  7. added
    area-CodeGen-coreclr
    and removed on Mar 23, 2025
  8. jkotas commented on Mar 23, 2025

    @jkotas
    Member
  9. AndyAyersMS commented on Mar 23, 2025

    @AndyAyersMS
    Member

    Either from #113772 or #113711.

  10. self-assigned this
    on Mar 23, 2025
  11. removed
    untriaged
    on Mar 24, 2025
  12. added this to the 10.0.0 milestone on Mar 24, 2025
  13. jakobbotsch commented on Mar 25, 2025

    @jakobbotsch
    Member

    Most likely fixed by #113879. Let's keep an eye on the table.

  14. amanasifkhalid commented on Mar 31, 2025

    @amanasifkhalid
    Contributor

    The last several hits were only in #113976, and ever since that PR picked up the fix, it hasn't hit this issue. I think we can close this.

  15. locked and limited conversation to collaborators on May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Known Build Errorarch-arm64area-CodeGen-coreclrblocking-clean-cios-linux-musl

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions