Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[macOS-arm64] XUnit crashes while running libraries tests on CoreCLR #49110

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

Closed
sdmaclea opened this issue Mar 4, 2021 · 5 comments · Fixed by #52195
Closed

[macOS-arm64] XUnit crashes while running libraries tests on CoreCLR #49110

sdmaclea opened this issue Mar 4, 2021 · 5 comments · Fixed by #52195
Labels
arch-arm64 area-VM-coreclr disabled-test The test is disabled in source code against the issue os-macos-bigsur (macOS11)
Milestone

Comments

@sdmaclea
Copy link
Contributor

sdmaclea commented Mar 4, 2021

See https://dev.azure.com/dnceng/public/_build/results?buildId=1021947

----- start Wed Mar 3 17:40:06 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Xml.Xsl.XslCompiledTransformApi.Tests.runtimeconfig.json --depsfile System.Xml.Xsl.XslCompiledTransformApi.Tests.deps.json xunit.console.dll System.Xml.Xsl.XslCompiledTransformApi.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/9A3508C1/e /private/tmp/helix/working/C24F0A5F/w/9A3508C1/e
  Discovering: System.Xml.Xsl.XslCompiledTransformApi.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Xml.Xsl.XslCompiledTransformApi.Tests (found 282 of 285 test cases)
  Starting:    System.Xml.Xsl.XslCompiledTransformApi.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 28346 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Xml.Xsl.XslCompiledTransformApi.Tests.runtimeconfig.json --depsfile System.Xml.Xsl.XslCompiledTransformApi.Tests.deps.json xunit.console.dll System.Xml.Xsl.XslCompiledTransformApi.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/9A3508C1/e
----- end Wed Mar 3 17:40:09 PST 2021 ----- exit code 138 ----------------------------------------------------------
----- start Wed Mar 3 17:39:24 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Xml.Misc.Tests.runtimeconfig.json --depsfile System.Xml.Misc.Tests.deps.json xunit.console.dll System.Xml.Misc.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/A9ED0917/e /private/tmp/helix/working/C24F0A5F/w/A9ED0917/e
  Discovering: System.Xml.Misc.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Xml.Misc.Tests (found 3 test cases)
  Starting:    System.Xml.Misc.Tests (parallel test collections = on, max threads = 8)
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 286
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 277
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 302
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 328
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecuteFromThreadPool(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 299
   at System.Threading.ThreadPoolWorkQueue.Dispatch() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 708
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs:line 57
   at System.Threading.Thread.StartCallback() in /_/src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs:line 105
./RunTests.sh: line 162: 23723 Abort trap: 6           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Xml.Misc.Tests.runtimeconfig.json --depsfile System.Xml.Misc.Tests.deps.json xunit.console.dll System.Xml.Misc.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/A9ED0917/e
----- end Wed Mar 3 17:39:25 PST 2021 ----- exit code 134 ----------------------------------------------------------
----- start Wed Mar 3 17:38:39 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Threading.Tasks.Parallel.Tests.runtimeconfig.json --depsfile System.Threading.Tasks.Parallel.Tests.deps.json xunit.console.dll System.Threading.Tasks.Parallel.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/9D1008F2/e /private/tmp/helix/working/C24F0A5F/w/9D1008F2/e
  Discovering: System.Threading.Tasks.Parallel.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Threading.Tasks.Parallel.Tests (found 177 test cases)
  Starting:    System.Threading.Tasks.Parallel.Tests (parallel test collections = on, max threads = 8)
Unhandled exception. System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'state')
   at System.Threading.Tasks.Tests.ParallelForEachAsyncTests.<Cancellation_CancelsIterationAndReturnsCanceledTask_Async>g__InfiniteAsync|16_0()+MoveNext() in /_/src/libraries/System.Threading.Tasks.Parallel/tests/ParallelForEachAsyncTests.cs:line 496
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 303
--- End of stack trace from previous location ---
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 336
   at System.Threading.ThreadPoolWorkQueue.Dispatch() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 708
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs:line 57
   at System.Threading.Thread.StartCallback() in /_/src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs:line 105
./RunTests.sh: line 162: 37188 Abort trap: 6           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Threading.Tasks.Parallel.Tests.runtimeconfig.json --depsfile System.Threading.Tasks.Parallel.Tests.deps.json xunit.console.dll System.Threading.Tasks.Parallel.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/9D1008F2/e
----- end Wed Mar 3 17:38:49 PST 2021 ----- exit code 134 ----------------------------------------------------------
----- start Wed Mar 3 17:38:18 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/99E10886/e /private/tmp/helix/working/C24F0A5F/w/99E10886/e
  Discovering: System.Text.RegularExpressions.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.RegularExpressions.Tests (found 216 of 217 test cases)
  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on, max threads = 8)
    System.Text.RegularExpressions.Tests.RegexMatchTests.Match_Timeout_Repetition_Throws [SKIP]
      Condition(s) not met: "IsWindows"
./RunTests.sh: line 162: 27269 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/99E10886/e
----- end Wed Mar 3 17:38:21 PST 2021 ----- exit code 138 ----------------------------------------------------------
----- start Wed Mar 3 17:37:25 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Runtime.Tests.runtimeconfig.json --depsfile System.Runtime.Tests.deps.json xunit.console.dll System.Runtime.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/B4830956/e /private/tmp/helix/working/C24F0A5F/w/B4830956/e
  Discovering: System.Runtime.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Runtime.Tests (found 6066 of 6088 test cases)
  Starting:    System.Runtime.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 28347 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Runtime.Tests.runtimeconfig.json --depsfile System.Runtime.Tests.deps.json xunit.console.dll System.Runtime.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/B4830956/e
----- end Wed Mar 3 17:37:28 PST 2021 ----- exit code 138 ----------------------------------------------------------
----- start Wed Mar 3 17:36:49 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Private.Uri.Unit.Tests.runtimeconfig.json --depsfile System.Private.Uri.Unit.Tests.deps.json xunit.console.dll System.Private.Uri.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/B04509BC/e /private/tmp/helix/working/C24F0A5F/w/B04509BC/e
  Discovering: System.Private.Uri.Unit.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Private.Uri.Unit.Tests (found 18 test cases)
  Starting:    System.Private.Uri.Unit.Tests (parallel test collections = on, max threads = 8)
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 286
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 277
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 302
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 328
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecuteFromThreadPool(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 299
   at System.Threading.ThreadPoolWorkQueue.Dispatch() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 708
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs:line 57
   at System.Threading.Thread.StartCallback() in /_/src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs:line 105
./RunTests.sh: line 162: 26517 Abort trap: 6           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Private.Uri.Unit.Tests.runtimeconfig.json --depsfile System.Private.Uri.Unit.Tests.deps.json xunit.console.dll System.Private.Uri.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/B04509BC/e
----- end Wed Mar 3 17:36:56 PST 2021 ----- exit code 134 ----------------------------------------------------------
----- start Wed Mar 3 17:36:43 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Numerics.Vectors.Tests.runtimeconfig.json --depsfile System.Numerics.Vectors.Tests.deps.json xunit.console.dll System.Numerics.Vectors.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/B0D20981/e /private/tmp/helix/working/C24F0A5F/w/B0D20981/e
  Discovering: System.Numerics.Vectors.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Numerics.Vectors.Tests (found 1269 test cases)
  Starting:    System.Numerics.Vectors.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 93142 Segmentation fault: 11  (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Numerics.Vectors.Tests.runtimeconfig.json --depsfile System.Numerics.Vectors.Tests.deps.json xunit.console.dll System.Numerics.Vectors.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/B0D20981/e
----- end Wed Mar 3 17:36:51 PST 2021 ----- exit code 139 ----------------------------------------------------------
----- start Wed Mar 3 17:36:12 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.Linq.Expressions.Tests.runtimeconfig.json --depsfile System.Linq.Expressions.Tests.deps.json xunit.console.dll System.Linq.Expressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/ADA10930/e /private/tmp/helix/working/C24F0A5F/w/ADA10930/e
  Discovering: System.Linq.Expressions.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Linq.Expressions.Tests (found 5647 of 5657 test cases)
  Starting:    System.Linq.Expressions.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 84534 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Linq.Expressions.Tests.runtimeconfig.json --depsfile System.Linq.Expressions.Tests.deps.json xunit.console.dll System.Linq.Expressions.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/ADA10930/e
----- end Wed Mar 3 17:36:15 PST 2021 ----- exit code 138 ----------------------------------------------------------
----- start Wed Mar 3 17:36:07 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig System.IO.FileSystem.Watcher.Tests.runtimeconfig.json --depsfile System.IO.FileSystem.Watcher.Tests.deps.json xunit.console.dll System.IO.FileSystem.Watcher.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/ACC709D3/e /private/tmp/helix/working/C24F0A5F/w/ACC709D3/e
  Discovering: System.IO.FileSystem.Watcher.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.IO.FileSystem.Watcher.Tests (found 168 of 183 test cases)
  Starting:    System.IO.FileSystem.Watcher.Tests (parallel test collections = on, max threads = 8)
Unhandled exception. System.ObjectDisposedException: Safe handle has been closed.
Object name: 'SafeHandle'.
   at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeHandle.cs:line 148
   at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success) in /_/src/coreclr/System.Private.CoreLib/src/System/StubHelpers.cs:line 1244
   at Interop.EventStream.FSEventStreamUnscheduleFromRunLoop(SafeEventStreamHandle streamRef, IntPtr runLoop, SafeCreateHandle runLoopMode)
   at System.IO.FileSystemWatcher.RunningInstance.StaticWatcherRunLoopManager.UnscheduleFromRunLoop(SafeEventStreamHandle eventStream) in /_/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs:line 224
   at System.IO.FileSystemWatcher.RunningInstance.CleanupEventStream() in /_/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs:line 280
   at System.IO.FileSystemWatcher.RunningInstance.FileSystemEventCallback(IntPtr streamRef, IntPtr clientCallBackInfo, IntPtr numEvents, Byte** eventPaths, FSEventStreamEventFlags* eventFlags, UInt64* eventIds) in /_/src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs:line 356
./RunTests.sh: line 162: 21965 Abort trap: 6           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.IO.FileSystem.Watcher.Tests.runtimeconfig.json --depsfile System.IO.FileSystem.Watcher.Tests.deps.json xunit.console.dll System.IO.FileSystem.Watcher.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/ACC709D3/e
----- end Wed Mar 3 17:36:18 PST 2021 ----- exit code 134 ----------------------------------------------------------
----- start Wed Mar 3 17:35:41 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/C24F0A5F/p/dotnet exec --runtimeconfig Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.runtimeconfig.json --depsfile Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.deps.json xunit.console.dll Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/C24F0A5F/w/AFBF0977/e /private/tmp/helix/working/C24F0A5F/w/AFBF0977/e
  Discovering: Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests (found 448 test cases)
  Starting:    Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 88270 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.runtimeconfig.json --depsfile Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.deps.json xunit.console.dll Microsoft.Extensions.DependencyInjection.ExternalContainers.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/C24F0A5F/w/AFBF0977/e
----- end Wed Mar 3 17:35:44 PST 2021 ----- exit code 138 ----------------------------------------------------------
----- start Mon Mar 8 12:54:16 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/97BF0856/p/dotnet exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/97BF0856/w/A9D00955/e /private/tmp/helix/working/97BF0856/w/A9D00955/e
  Discovering: System.Text.Json.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.Json.Tests (found 2318 of 2325 test cases)
  Starting:    System.Text.Json.Tests (parallel test collections = on, max threads = 8)
./RunTests.sh: line 162: 54194 Bus error: 10           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/97BF0856/w/A9D00955/e
----- end Mon Mar 8 12:54:42 PST 2021 ----- exit code 138 ----------------------------------------------------------

https://dev.azure.com/dnceng/public/_build/results?buildId=1031518

----- start Wed Mar 10 10:30:07 PST 2021 =============== To repro directly: =====================================================
pushd .
/tmp/helix/working/96B00891/p/dotnet exec --runtimeconfig System.IO.Compression.Tests.runtimeconfig.json --depsfile System.IO.Compression.Tests.deps.json xunit.console.dll System.IO.Compression.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/96B00891/w/AC6F08ED/e /private/tmp/helix/working/96B00891/w/AC6F08ED/e
  Discovering: System.IO.Compression.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.IO.Compression.Tests (found 240 test cases)
  Starting:    System.IO.Compression.Tests (parallel test collections = on, max threads = 8)
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 286
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 183
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs:line 207
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread) in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 324
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext() in /_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncTaskMethodBuilderT.cs:line 302
   at System.IO.Tests.StreamConformanceTests.JumpToThreadPoolAwaiter.<>c__DisplayClass4_0.<UnsafeOnCompleted>b__0(Object _) in /_/src/libraries/Common/tests/StreamConformanceTests/System/IO/StreamConformanceTests.cs:line 607
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 956
   at System.Threading.ThreadPoolWorkQueue.Dispatch() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolWorkQueue.cs:line 708
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() in /_/src/libraries/System.Private.CoreLib/src/System/Threading/PortableThreadPool.WorkerThread.cs:line 57
   at System.Threading.Thread.StartCallback() in /_/src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs:line 105
./RunTests.sh: line 162: 35119 Abort trap: 6           (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.IO.Compression.Tests.runtimeconfig.json --depsfile System.IO.Compression.Tests.deps.json xunit.console.dll System.IO.Compression.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=failing $RSP_FILE
/private/tmp/helix/working/96B00891/w/AC6F08ED/e
----- end Wed Mar 10 10:30:10 PST 2021 ----- exit code 134 ----------------------------------------------------------

These are probably GC issues....

@sdmaclea sdmaclea added this to the 6.0.0 milestone Mar 4, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 4, 2021
@sdmaclea
Copy link
Contributor Author

sdmaclea commented Mar 4, 2021

@ViktorHofer @safern This makes it difficult to get Apple Silicon libraries tests running in CI.

  • It seems some test suites are more likely to fail. Is there a way to disable an entire suite (so that XUnit doesn't even attempt to use it?)
  • For some these are intermittent failures, is there a way to retry them automatically. Are there planned work items that I could pick up to enable this?
  • I assume the issues are the runtime crashing while running XUnit with a macOS-arm64. It might be possible to run XUnit with the macOS-x64 runtime (assuming tests are run out of process). I don't know of a way to do that...

@ViktorHofer
Copy link
Member

It seems some test suites are more likely to fail. Is there a way to disable an entire suite (so that XUnit doesn't even attempt to use it?)

When you say "test suite", do you mean test assembly? You can control test assembly packaging and submission via the IgnoreForCI property:

.

For some these are intermittent failures, is there a way to retry them automatically. Are there planned work items that I could pick up to enable this?

The core-eng team is currently working on auto-retries. We don't have a mechanism for that yet in dotnet/runtime itself but helix should have such an ability.

I assume the issues are the runtime crashing while running XUnit with a macOS-arm64. It might be possible to run XUnit with the macOS-x64 runtime (assuming tests are run out of process). I don't know of a way to do that...

You would need to depend on the OSX-x64 job and download its artifacts to add it as a payload to helix. That said, this sounds not ideal, maybe there's a better to avoid the cross dependency.

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Mar 16, 2021
@sdmaclea sdmaclea added the disabled-test The test is disabled in source code against the issue label Apr 8, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 3, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jun 9, 2021
@sdmaclea
Copy link
Contributor Author

sdmaclea commented Jun 9, 2021

Two test suites are still disabled. See #52195

@sandreenko
Copy link
Contributor

@janvorli do you think #56059 could have fixed this?

@janvorli
Copy link
Member

There were two issues. The bus errors meant there was not a proper call to switch read-execute pages to read-write and the code attempted to write. The related holders were completely redone in my W^X change, so it is likely fixed by that. The other is the null reference exception, which could be fixed either by the PR you've mentioned or maybe rather the #53510.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 area-VM-coreclr disabled-test The test is disabled in source code against the issue os-macos-bigsur (macOS11)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants