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

[outerloop] [NativeAOT] Segmentation fault in System.Runtime.InteropServices.Tests #95414

Closed
carlossanlop opened this issue Nov 29, 2023 · 4 comments
Labels
arch-x64 area-NativeAOT-coreclr 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.

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Nov 29, 2023

Error Blob

{
  "ErrorMessage": "Segmentation fault      (core dumped) ./System.Runtime.InteropServices.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

@dotnet/ilc-contrib @dotnet/interop-contrib PTAL

===========================================================================================================
/root/helix/work/workitem/e /root/helix/work/workitem/e
DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: ./createdump
Running assembly:System.Runtime.InteropServices.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[SKIP] System.Runtime.InteropServices.Tests.GetHINSTANCETests.GetHINSTANCE_ModuleBuilder_ReturnsSameInstance
[SKIP] System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_NotReadable_ThrowsArgumentException
[SKIP] System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_NotReadable_ThrowsArgumentException
[SKIP] System.Runtime.InteropServices.Tests.CreateWrapperOfTypeTests.CreateWrapperOfType_NullType_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NullObj_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NullKey_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NonComObjectObj_ThrowsArgumentNullException
./RunTests.sh: line 179:    22 Segmentation fault      (core dumped) ./System.Runtime.InteropServices.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing -xml testResults.xml $RSP_FILE
/root/helix/work/workitem/e
----- end Wed Nov 29 16:21:17 UTC 2023 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=483727
Error message validated: Segmentation fault (core dumped) ./System.Runtime.InteropServices.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 11/29/2023 6:05:02 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@carlossanlop carlossanlop added arch-x64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-linux-musl Linux distributions using musl library. area-NativeAOT-coreclr Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 29, 2023
@ghost
Copy link

ghost commented Nov 29, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Error Blob

{
  "ErrorMessage": "Segmentation fault      (core dumped) ./System.Runtime.InteropServices.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

Reproduction Steps

@dotnet/ilc-contrib @dotnet/interop-contrib PTAL

===========================================================================================================
/root/helix/work/workitem/e /root/helix/work/workitem/e
DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: ./createdump
Running assembly:System.Runtime.InteropServices.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[SKIP] System.Runtime.InteropServices.Tests.GetHINSTANCETests.GetHINSTANCE_ModuleBuilder_ReturnsSameInstance
[SKIP] System.Runtime.InteropServices.Tests.Int16Tests.WriteInt16_NotReadable_ThrowsArgumentException
[SKIP] System.Runtime.InteropServices.Tests.Int16Tests.ReadInt16_NotReadable_ThrowsArgumentException
[SKIP] System.Runtime.InteropServices.Tests.CreateWrapperOfTypeTests.CreateWrapperOfType_NullType_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NullObj_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NullKey_ThrowsArgumentNullException
[SKIP] System.Runtime.InteropServices.Tests.GetComObjectDataTests.GetComObjectData_NonComObjectObj_ThrowsArgumentNullException
./RunTests.sh: line 179:    22 Segmentation fault      (core dumped) ./System.Runtime.InteropServices.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing -xml testResults.xml $RSP_FILE
/root/helix/work/workitem/e
----- end Wed Nov 29 16:21:17 UTC 2023 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
Author: carlossanlop
Assignees: -
Labels:

arch-x64, blocking-clean-ci, os-linux-musl, area-NativeAOT-coreclr, Known Build Error

Milestone: -

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 29, 2023
@jtschuster
Copy link
Member

Looks like another related to #94485. I'll revert that and investigate the issues.

@carlossanlop
Copy link
Member Author

Thank you @jtschuster!

This was discovered via the unrelated PR #94868 where we are enabling XUnitLogChecker for most libraries tests. I decided to temporarily skip enabling the tool for NativeAOT tests as they required some different handling, which is why the only message we see is "segmentation fault" and nothing else, unfortunateoly. But we intend to get the XUnitLogChecker tool enabled in NativeAOT as well after I merge that PR, and you should be able to see the output of the core dumps directly in the log files.

@jkotas
Copy link
Member

jkotas commented Nov 29, 2023

Fixed by #95415

@jkotas jkotas closed this as completed Nov 29, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 29, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-NativeAOT-coreclr 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

3 participants