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

Can't run tests locally MacOS #62586

Closed
Trapov opened this issue Dec 9, 2021 · 2 comments
Closed

Can't run tests locally MacOS #62586

Trapov opened this issue Dec 9, 2021 · 2 comments
Labels
untriaged New issue has not been triaged by the area owner

Comments

@Trapov
Copy link

Trapov commented Dec 9, 2021

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


@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Dec 9, 2021
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@Trapov
Copy link
Author

Trapov commented Dec 9, 2021

dotnet build /t:Test -c Release helps

@Trapov Trapov closed this as completed Dec 9, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant