Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MichalStrehovsky opened this issue Mar 22, 2025 · 7 comments
Open

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

MichalStrehovsky opened this issue Mar 22, 2025 · 7 comments
Assignees
Labels
arch-arm64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-linux-musl Linux distributions using musl library.
Milestone

Comments

@MichalStrehovsky
Copy link
Member

MichalStrehovsky commented Mar 22, 2025

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
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 41 49
@MichalStrehovsky MichalStrehovsky added arch-arm64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-linux-musl Linux distributions using musl library. labels Mar 22, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 22, 2025
Copy link
Contributor

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

@vcsjones
Copy link
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.

Copy link
Contributor

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

@jkotas
Copy link
Member

jkotas commented Mar 23, 2025

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=????????????????

@jkotas jkotas added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed area-System.Security labels Mar 23, 2025
@jkotas
Copy link
Member

jkotas commented Mar 23, 2025

cc @AndyAyersMS

@AndyAyersMS
Copy link
Member

AndyAyersMS commented Mar 23, 2025

Either from #113772 or #113711.

@AndyAyersMS AndyAyersMS self-assigned this Mar 23, 2025
@JulieLeeMSFT JulieLeeMSFT removed the untriaged New issue has not been triaged by the area owner label Mar 24, 2025
@JulieLeeMSFT JulieLeeMSFT added this to the 10.0.0 milestone Mar 24, 2025
@jakobbotsch
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-arm64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-linux-musl Linux distributions using musl library.
Projects
None yet
Development

No branches or pull requests

6 participants