Skip to content

[6.0] CI failure in OSX: Unable to load shared library 'MovedNativeLib' in DllImportPathTest.sh #80476

@carlossanlop

Description

@carlossanlop

Found this failure in a release/6.0 backport PR.

Microsoft.DotNet.XUnitConsoleRunner v2.5.0 (64-bit .NET 6.0.11)
  Discovering: Interop.DllImportAttribute.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.DllImportAttribute.XUnitWrapper (found 2 test cases)
  Starting:    Interop.DllImportAttribute.XUnitWrapper (parallel test collections = on, max threads = 6)
    Interop/DllImportAttribute/DllImportPath/DllImportPathTest/DllImportPathTest.sh [FAIL]
      
      Return code:      1
      Raw output file:      /tmp/helix/working/A4F20917/w/A31C08D1/uploads/Reports/Interop.DllImportAttribute/DllImportPath/DllImportPathTest/DllImportPathTest.output.txt
      Raw output:
      BEGIN EXECUTION
      /tmp/helix/working/A4F20917/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false DllImportPathTest.dll ''
      System.DllNotFoundException: Unable to load shared library 'MovedNativeLib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libMovedNativeLib, 0x0001): tried: 'libMovedNativeLib' (no such file), '/usr/local/lib/libMovedNativeLib' (no such file), '/usr/lib/libMovedNativeLib' (no such file), '/private/tmp/helix/working/A4F20917/w/A31C08D1/e/Interop/DllImportAttribute/DllImportPath/DllImportPathTest/libMovedNativeLib' (no such file)
         at Test.GetZero_PathEnv()
         at Test.Main(String[] args)
      Expected: 100
      Actual: 101
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/tmp/helix/working/A4F20917/p
      > /private/tmp/helix/working/A4F20917/w/A31C08D1/e/Interop/DllImportAttribute/DllImportPath/DllImportPathTest/DllImportPathTest.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at Interop_DllImportAttribute._DllImportPath_DllImportPathTest_DllImportPathTest_._DllImportPath_DllImportPathTest_DllImportPathTest_sh()
      Output:
        
        Return code:      1
        Raw output file:      /tmp/helix/working/A4F20917/w/A31C08D1/uploads/Reports/Interop.DllImportAttribute/DllImportPath/DllImportPathTest/DllImportPathTest.output.txt
        Raw output:
        BEGIN EXECUTION
        /tmp/helix/working/A4F20917/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false DllImportPathTest.dll ''
        System.DllNotFoundException: Unable to load shared library 'MovedNativeLib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libMovedNativeLib, 0x0001): tried: 'libMovedNativeLib' (no such file), '/usr/local/lib/libMovedNativeLib' (no such file), '/usr/lib/libMovedNativeLib' (no such file), '/private/tmp/helix/working/A4F20917/w/A31C08D1/e/Interop/DllImportAttribute/DllImportPath/DllImportPathTest/libMovedNativeLib' (no such file)
           at Test.GetZero_PathEnv()
           at Test.Main(String[] args)
        Expected: 100
        Actual: 101
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/tmp/helix/working/A4F20917/p
        > /private/tmp/helix/working/A4F20917/w/A31C08D1/e/Interop/DllImportAttribute/DllImportPath/DllImportPathTest/DllImportPathTest.sh
{
  "ErrorMessage": "System.DllNotFoundException: Unable to load shared library 'MovedNativeLib' or one of its dependencies.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Report

Build Definition Test Pull Request
165842 dotnet/runtime Interop.WorkItemExecution #81858
164770 dotnet/runtime Interop.WorkItemExecution
164488 dotnet/runtime Interop.WorkItemExecution
163905 dotnet/runtime Interop.WorkItemExecution
163740 dotnet/runtime Interop.WorkItemExecution
163452 dotnet/runtime Interop.WorkItemExecution

Summary

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions