Skip to content

[7.0] WASM Linux failure in DllImportSearchPathsTest: parameter 'path1' value is null #84724

@carlossanlop

Description

@carlossanlop

Error Blob

{
  "ErrorMessage": "System.ArgumentNullException: Value cannot be null. (Parameter 'path1')",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}

Reproduction Steps

Found in a dependency flow PR for 7.0.

Note: This test failed in the same queue where other tests failed with the Nuget-Migrations error, but this one in particular did not show that message in the output at all. Just wanted to mention it in case it could be indirectly related.

  Discovering: Interop.DllImportSearchPaths.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.DllImportSearchPaths.XUnitWrapper (found 1 test case)
  Starting:    Interop.DllImportSearchPaths.XUnitWrapper (parallel test collections = on, max threads = 2)
    Interop/DllImportSearchPaths/DllImportSearchPathsTest/DllImportSearchPathsTest.sh [FAIL]
      {"name":"ExitStatus","message":"Program terminated with exit(101)","status":101}
      
      Return code:      1
      Raw output file:      /datadisks/disk1/work/BB920A0A/w/A622093F/uploads/Reports/Interop.DllImportSearchPaths/DllImportSearchPathsTest/DllImportSearchPathsTest.output.txt
      Raw output:
      BEGIN EXECUTION
      
      Welcome to .NET 7.0!
      ---------------------
      SDK Version: 7.0.104
      
      ----------------
      Installed an ASP.NET Core HTTPS development certificate.
      To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
      Learn about HTTPS: https://aka.ms/dotnet-https
      ----------------
      Write your first app: https://aka.ms/dotnet-hello-world
      Find out what's new: https://aka.ms/dotnet-whats-new
      Explore documentation: https://aka.ms/dotnet-docs
      Report issues and find source on GitHub: https://github.com/dotnet/core
      Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
      --------------------------------------------------------------------------------------
      MSBuild version 17.4.1+2eac9157a for .NET
        AppDir: /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/WasmApp/
        TestBinDir: /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest
        ArtifactsBinDir: 
        Generated app bundle at /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/WasmApp/
      Incoming arguments: --run DllImportSearchPathsTest.dll
      Application arguments: --run DllImportSearchPathsTest.dll
      console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
      console.info: Initializing.....
      System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
         at System.ArgumentNullException.Throw(String paramName)
         at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
         at System.IO.Path.Combine(String path1, String path2)
         at DllImportSearchPathsTest.get_Subdirectory()
         at DllImportSearchPathsTest.AssemblyDirectory_Found()
         at Program.<Main>$(String[] args)
      WASM EXIT 101
      Expected: 100
      Actual: 101
      END EXECUTION - FAILED
      Test Harness Exitcode is : 1
      To run the test:
      > set CORE_ROOT=/datadisks/disk1/work/BB920A0A/p
      > /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/DllImportSearchPathsTest.sh
      Expected: True
      Actual:   False
      Stack Trace:
           at Interop_DllImportSearchPaths._DllImportSearchPathsTest_DllImportSearchPathsTest_._DllImportSearchPathsTest_DllImportSearchPathsTest_sh()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
           at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
      Output:
        {"name":"ExitStatus","message":"Program terminated with exit(101)","status":101}
        
        Return code:      1
        Raw output file:      /datadisks/disk1/work/BB920A0A/w/A622093F/uploads/Reports/Interop.DllImportSearchPaths/DllImportSearchPathsTest/DllImportSearchPathsTest.output.txt
        Raw output:
        BEGIN EXECUTION
        
        Welcome to .NET 7.0!
        ---------------------
        SDK Version: 7.0.104
        
        ----------------
        Installed an ASP.NET Core HTTPS development certificate.
        To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
        Learn about HTTPS: https://aka.ms/dotnet-https
        ----------------
        Write your first app: https://aka.ms/dotnet-hello-world
        Find out what's new: https://aka.ms/dotnet-whats-new
        Explore documentation: https://aka.ms/dotnet-docs
        Report issues and find source on GitHub: https://github.com/dotnet/core
        Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
        --------------------------------------------------------------------------------------
        MSBuild version 17.4.1+2eac9157a for .NET
          AppDir: /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/WasmApp/
          TestBinDir: /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest
          ArtifactsBinDir: 
          Generated app bundle at /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/WasmApp/
        Incoming arguments: --run DllImportSearchPathsTest.dll
        Application arguments: --run DllImportSearchPathsTest.dll
        console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
        console.info: Initializing.....
        System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
           at System.ArgumentNullException.Throw(String paramName)
           at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
           at System.IO.Path.Combine(String path1, String path2)
           at DllImportSearchPathsTest.get_Subdirectory()
           at DllImportSearchPathsTest.AssemblyDirectory_Found()
           at Program.<Main>$(String[] args)
        WASM EXIT 101
        Expected: 100
        Actual: 101
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/datadisks/disk1/work/BB920A0A/p
        > /datadisks/disk1/work/BB920A0A/w/A622093F/e/Interop/DllImportSearchPaths/DllImportSearchPathsTest/DllImportSearchPathsTest.sh
  Finished:    Interop.DllImportSearchPaths.XUnitWrapper
  Discovering: Interop.DisabledRuntimeMarshalling.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.DisabledRuntimeMarshalling.XUnitWrapper (found 0 test cases)
  Discovering: Interop.UnmanagedCallersOnly.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.UnmanagedCallersOnly.XUnitWrapper (found 0 test cases)
  Discovering: Interop.MonoAPI.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.MonoAPI.XUnitWrapper (found 0 test cases)
  Discovering: Interop.ICustomMarshaler.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.ICustomMarshaler.XUnitWrapper (found 0 test cases)
  Discovering: Interop.StringMarshalling.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.StringMarshalling.XUnitWrapper (found 0 test cases)
  Discovering: Interop.StructPacking.XUnitWrapper (method display = ClassAndMethod, method display options = None)
  Discovered:  Interop.StructPacking.XUnitWrapper (found 0 test cases)
=== TEST EXECUTION SUMMARY ===
   Interop.DisabledRuntimeMarshalling.XUnitWrapper.dll  Total: 0
   Interop.DllImportAttribute.XUnitWrapper.dll          Total: 0
   Interop.DllImportSearchPaths.XUnitWrapper            Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 1.885s
   Interop.ICustomMarshaler.XUnitWrapper.dll            Total: 0
   Interop.LayoutClass.XUnitWrapper.dll                 Total: 0
   Interop.MarshalAPI.XUnitWrapper.dll                  Total: 0
   Interop.MonoAPI.XUnitWrapper.dll                     Total: 0
   Interop.NativeLibrary.XUnitWrapper.dll               Total: 0
   Interop.PInvoke.XUnitWrapper.dll                     Total: 0
   Interop.StringMarshalling.XUnitWrapper.dll           Total: 0
   Interop.StructMarshalling.XUnitWrapper.dll           Total: 0
   Interop.StructPacking.XUnitWrapper.dll               Total: 0
   Interop.SuppressGCTransition.XUnitWrapper.dll        Total: 0
   Interop.UnmanagedCallConv.XUnitWrapper.dll           Total: 0
   Interop.UnmanagedCallersOnly.XUnitWrapper.dll        Total: 0
   Interop.UnmanagedCallersOnlyBasic.XUnitWrapper.dll   Total: 0
                                                               -          -          -           -        ------
                                                  GRAND TOTAL: 1          0          1           0        1.885s (2.069s)

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Known issue validation

Build: 🔎
Result validation: ⚠️ Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: 🔎" line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarch-wasmWebAssembly architecturearea-VM-meta-monoblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-linuxLinux OS (any supported distro)runtime-monospecific to the Mono runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions