Skip to content

Can't run tests locally MacOS #62586

@Trapov

Description

@Trapov

I've built the runtime with arguments as:
➜ runtime git:(optimizations/7.0.0/stream-reader): ./build.sh clr.corelib+clr.nativecorelib+libs.pretest+libs.tests -rc Release

And when I'm trying to actually test the specific library it yields an error: (tried different libs but result is the same)

➜  tests git:(optimizations/7.0.0/stream-reader) dotnet build /t:Test

  Microsoft.Interop.SourceGeneration -> /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/Microsoft.Interop.SourceGeneration/netstandard2.0-Debug/Microsoft.Interop.SourceGeneration.dll
  DllImportGenerator -> /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/DllImportGenerator/netstandard2.0-Debug/Microsoft.Interop.DllImportGenerator.dll
  TestUtilities -> /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/TestUtilities/net6.0-Debug/TestUtilities.dll
  StreamConformanceTests -> /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/StreamConformanceTests/net7.0-Debug/StreamConformanceTests.dll
  System.IO.Tests -> /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/System.IO.Tests/net7.0-Debug/System.IO.Tests.dll
  ----- start Thu Dec 9 21:24:35 +05 2021 =============== To repro directly: =====================================================
  pushd /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/System.IO.Tests/net7.0-Debug
  /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/testhost/net7.0-OSX-Debug-x64/dotnet exec --runtimeconfig System.IO.Tests.runtimeconfig.json --depsfile System.IO.Tests.deps.json xunit.console.dll System.IO.Tests.dll -xml testResults.xml -nologo -notrait category=OuterLoop -notrait category=failing
  popd
  ===========================================================================================================
  ~/Projects/github.com/runtime/artifacts/bin/System.IO.Tests/net7.0-Debug ~/Projects/github.com/runtime/src/libraries/System.IO/tests
  Unhandled exception. /Users/dmitrijafonin/Projects/github.com/runtime/artifacts/bin/System.IO.Tests/net7.0-Debug/RunTests.sh: line 162: 20765 Segmentation fault: 11  "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.IO.Tests.runtimeconfig.json --depsfile System.IO.Tests.deps.json xunit.console.dll System.IO.Tests.dll -xml testResults.xml -nologo -notrait category=OuterLoop -notrait category=failing $RSP_FILE
  ~/Projects/github.com/runtime/src/libraries/System.IO/tests
  ----- end Thu Dec 9 21:24:35 +05 2021 ----- exit code 139 ----------------------------------------------------------
  exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
  ulimit -c value: unlimited
/Users/dmitrijafonin/Projects/github.com/runtime/eng/testing/tests.targets(136,5): error : One or more tests failed while running tests from 'System.IO.Tests'. [/Users/dmitrijafonin/Projects/github.com/runtime/src/libraries/System.IO/tests/System.IO.Tests.csproj]


----

/Users/dmitrijafonin/Projects/github.com/runtime/eng/testing/tests.targets(136,5): error : One or more tests failed while running tests from 'System.IO.Tests'. 

My specs:

                    'c.          [email protected]
                 ,xNMM.          ---------------------------------------
               .OMMMMo           OS: macOS 12.0.1 21A559 x86_64
               OMMM0,            Host: MacBookPro16,1
     .;loddo:' loolloddol;.      Kernel: 21.1.0
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 2 days, 1 hour, 39 mins
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 74 (brew)
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: zsh 5.8
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1344x840@2x
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Dark)
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: iTerm2
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   Terminal Font: FiraCode-Retina 14
    kMMMMMMMMMMMMMMMMMMMMMMd     CPU: Intel i7-9750H (12) @ 2.60GHz
     ;KMMMMMMMWXXWMMMMMMMk.      GPU: Intel UHD Graphics 630, AMD Radeon Pro 5300M
       .cooc,.    .,coo:.        Memory: 18975MiB / 32768MiB


Metadata

Metadata

Assignees

No one assigned

    Labels

    untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions