Skip to content

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

Closed

Description

@carlossanlop

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

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 29, 2023
  2. jtschuster commented on Nov 29, 2023

    @jtschuster
    Member

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

  3. carlossanlop commented on Nov 29, 2023

    @carlossanlop
    ContributorAuthor

    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.

  4. jkotas commented on Nov 29, 2023

    @jkotas
    Member

    Fixed by #95415

  5. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 29, 2023
  6. locked and limited conversation to collaborators on Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-x64area-NativeAOT-coreclrblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-linux-muslLinux distributions using musl library.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions