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

LongContinuationChain_ContinueWith_DoesNotStackOverflow test failing on Mono in CI #2084

Closed
stephentoub opened this issue Jan 23, 2020 · 7 comments · Fixed by #98007
Closed
Assignees
Labels
area-VM-threading-mono disabled-test The test is disabled in source code against the issue
Milestone

Comments

@stephentoub
Copy link
Member

The test TaskContinueWithTests.LongContinuationChain_ContinueWith_DoesNotStackOverflow that's validating that continuation chains don't stack overflow is stack overflowing when run on Mono on macOS (maybe elsewhere, too). I've not debugged through it, but my guess would be that something is awry with

ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_SufficientExecutionStack (void)
, as Task is using RuntimeHelpers.TryEnsureSufficientExecutionStack to determine if it's too deep on the stack to run continuations.
bool canInlineContinuations =
(m_stateFlags & (int)TaskCreationOptions.RunContinuationsAsynchronously) == 0 &&
RuntimeHelpers.TryEnsureSufficientExecutionStack();

cc: @akoeplinger

Stack overflow: IP: 0x1078083bf, fault addr: 0x7ffeec40ffc0
Stacktrace:
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  <...>
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  ... // lots of the same
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageThree () [0x0001e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishStageTwo () [0x000ae] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.Finish (bool) [0x00008] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task&,System.Threading.Thread) [0x000c1] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.ExecuteEntryUnsafe (System.Threading.Thread) [0x0002b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline (System.Threading.Tasks.Task,bool) [0x0000e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskScheduler.TryRunInline (System.Threading.Tasks.Task,bool) [0x0004e] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue (System.Threading.Tasks.Task,bool) [0x00023] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.StandardTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.RunContinuations (object) [0x0007a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task.FinishContinuations () [0x00014] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Task`1<bool>.TrySetResult (bool) [0x0004b] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.TaskCompletionSource`1<bool>.TrySetResult (bool) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Threading.Tasks.Tests.TaskContinueWithTests.LongContinuationChain_ContinueWith_DoesNotStackOverflow () [0x00059] in <1c0b557b34a441e1859883c3c66a0617>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0002a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&) [0x0000c] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Reflection.RuntimeMethodInfo.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x0006a] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestInvoker`1<TTestCase_REF>.CallTestMethod (object) [0x0000d] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1/<<InvokeTestMethodAsync>b__1>d<TTestCase_REF>.MoveNext () [0x000d9] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1/<<InvokeTestMethodAsync>b__1>d<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1/<<InvokeTestMethodAsync>b__1>d<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start<Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1/<<InvokeTestMethodAsync>b__1>d<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1/<<InvokeTestMethodAsync>b__1>d<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1<TTestCase_REF>.<InvokeTestMethodAsync>b__1 () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.ExecutionTimer/<AggregateAsync>d__4.MoveNext () [0x00020] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.ExecutionTimer/<AggregateAsync>d__4> (Xunit.Sdk.ExecutionTimer/<AggregateAsync>d__4&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.ExecutionTimer.AggregateAsync (System.Func`1<System.Threading.Tasks.Task>) [0x0002b] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestInvoker`1/<>c__DisplayClass48_1<TTestCase_REF>.<InvokeTestMethodAsync>b__0 () [0x00010] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.ExceptionAggregator/<RunAsync>d__9.MoveNext () [0x00014] in <2a925edfe5584632978e98fd8509cdf4>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.ExceptionAggregator/<RunAsync>d__9> (Xunit.Sdk.ExceptionAggregator/<RunAsync>d__9&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.ExceptionAggregator.RunAsync (System.Func`1<System.Threading.Tasks.Task>) [0x0002b] in <2a925edfe5584632978e98fd8509cdf4>:0
  at Xunit.Sdk.TestInvoker`1/<InvokeTestMethodAsync>d__48<TTestCase_REF>.MoveNext () [0x00071] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestInvoker`1/<InvokeTestMethodAsync>d__48<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<InvokeTestMethodAsync>d__48<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Decimal>.Start<Xunit.Sdk.TestInvoker`1/<InvokeTestMethodAsync>d__48<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<InvokeTestMethodAsync>d__48<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestInvoker`1<TTestCase_REF>.InvokeTestMethodAsync (object) [0x0002b] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestInvoker.InvokeTestMethodAsync (object) [0x00037] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestInvoker`1/<<RunAsync>b__47_0>d<TTestCase_REF>.MoveNext () [0x00168] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestInvoker`1/<<RunAsync>b__47_0>d<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<<RunAsync>b__47_0>d<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Decimal>.Start<Xunit.Sdk.TestInvoker`1/<<RunAsync>b__47_0>d<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestInvoker`1/<<RunAsync>b__47_0>d<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestInvoker`1<TTestCase_REF>.<RunAsync>b__47_0 () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Decimal>.MoveNext () [0x00014] in <2a925edfe5584632978e98fd8509cdf4>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Decimal>> (Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Decimal>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.ExceptionAggregator.RunAsync<System.Decimal> (System.Func`1<System.Threading.Tasks.Task`1<System.Decimal>>) [0x0002b] in <2a925edfe5584632978e98fd8509cdf4>:0
  at Xunit.Sdk.TestInvoker`1<TTestCase_REF>.RunAsync () [0x00006] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestRunner.InvokeTestMethodAsync (Xunit.Sdk.ExceptionAggregator) [0x00036] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestRunner/<InvokeTestAsync>d__4.MoveNext () [0x00079] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.XunitTestRunner/<InvokeTestAsync>d__4> (Xunit.Sdk.XunitTestRunner/<InvokeTestAsync>d__4&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.XunitTestRunner.InvokeTestAsync (Xunit.Sdk.ExceptionAggregator) [0x0002b] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestRunner`1/<>c__DisplayClass43_0<TTestCase_REF>.<RunAsync>b__0 () [0x00000] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<T_REF>.MoveNext () [0x00014] in <2a925edfe5584632978e98fd8509cdf4>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Tuple`2<System.Decimal, string>>> (Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Tuple`2<System.Decimal, string>>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Tuple`2<System.Decimal, string>>.Start<Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Tuple`2<System.Decimal, string>>> (Xunit.Sdk.ExceptionAggregator/<RunAsync>d__10`1<System.Tuple`2<System.Decimal, string>>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.ExceptionAggregator.RunAsync<T_REF> (System.Func`1<System.Threading.Tasks.Task`1<T_REF>>) [0x0002b] in <2a925edfe5584632978e98fd8509cdf4>:0
  at Xunit.Sdk.TestRunner`1/<RunAsync>d__43<TTestCase_REF>.MoveNext () [0x000f2] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestRunner`1/<RunAsync>d__43<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestRunner`1/<RunAsync>d__43<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestRunner`1/<RunAsync>d__43<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestRunner`1/<RunAsync>d__43<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestCaseRunner.RunTestAsync () [0x0004e] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestCaseRunner`1/<RunAsync>d__19<TTestCase_REF>.MoveNext () [0x000b8] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestCaseRunner`1/<RunAsync>d__19<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCaseRunner`1/<RunAsync>d__19<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestCaseRunner`1/<RunAsync>d__19<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCaseRunner`1/<RunAsync>d__19<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestCaseRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestCase.RunAsync (Xunit.Abstractions.IMessageSink,Xunit.Sdk.IMessageBus,object[],Xunit.Sdk.ExceptionAggregator,System.Threading.CancellationTokenSource) [0x0001e] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestMethodRunner.RunTestCaseAsync (Xunit.Sdk.IXunitTestCase) [0x00024] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestMethodRunner`1/<RunTestCasesAsync>d__32<TTestCase_REF>.MoveNext () [0x0004e] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestMethodRunner`1/<RunTestCasesAsync>d__32<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestMethodRunner`1/<RunTestCasesAsync>d__32<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestMethodRunner`1/<RunTestCasesAsync>d__32<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestMethodRunner`1/<RunTestCasesAsync>d__32<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestMethodRunner`1<TTestCase_REF>.RunTestCasesAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestMethodRunner`1/<RunAsync>d__31<TTestCase_REF>.MoveNext () [0x00059] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestMethodRunner`1/<RunAsync>d__31<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestMethodRunner`1/<RunAsync>d__31<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestMethodRunner`1/<RunAsync>d__31<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestMethodRunner`1/<RunAsync>d__31<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestMethodRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestClassRunner.RunTestMethodAsync (Xunit.Abstractions.ITestMethod,Xunit.Abstractions.IReflectionMethodInfo,System.Collections.Generic.IEnumerable`1<Xunit.Sdk.IXunitTestCase>,object[]) [0x0002d] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestClassRunner`1/<RunTestMethodsAsync>d__38<TTestCase_REF>.MoveNext () [0x00134] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestClassRunner`1/<RunTestMethodsAsync>d__38<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestClassRunner`1/<RunTestMethodsAsync>d__38<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestClassRunner`1/<RunTestMethodsAsync>d__38<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestClassRunner`1/<RunTestMethodsAsync>d__38<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestClassRunner`1<TTestCase_REF>.RunTestMethodsAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestClassRunner`1/<RunAsync>d__37<TTestCase_REF>.MoveNext () [0x000be] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestClassRunner`1/<RunAsync>d__37<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestClassRunner`1/<RunAsync>d__37<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestClassRunner`1/<RunAsync>d__37<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestClassRunner`1/<RunAsync>d__37<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestClassRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestCollectionRunner.RunTestClassAsync (Xunit.Abstractions.ITestClass,Xunit.Abstractions.IReflectionTypeInfo,System.Collections.Generic.IEnumerable`1<Xunit.Sdk.IXunitTestCase>) [0x00031] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestCollectionRunner`1/<RunTestClassesAsync>d__28<TTestCase_REF>.MoveNext () [0x00089] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestCollectionRunner`1/<RunTestClassesAsync>d__28<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCollectionRunner`1/<RunTestClassesAsync>d__28<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestCollectionRunner`1/<RunTestClassesAsync>d__28<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCollectionRunner`1/<RunTestClassesAsync>d__28<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestCollectionRunner`1<TTestCase_REF>.RunTestClassesAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestCollectionRunner`1/<RunAsync>d__27<TTestCase_REF>.MoveNext () [0x000be] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestCollectionRunner`1/<RunAsync>d__27<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCollectionRunner`1/<RunAsync>d__27<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestCollectionRunner`1/<RunAsync>d__27<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestCollectionRunner`1/<RunAsync>d__27<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestCollectionRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestAssemblyRunner.RunTestCollectionAsync (Xunit.Sdk.IMessageBus,Xunit.Abstractions.ITestCollection,System.Collections.Generic.IEnumerable`1<Xunit.Sdk.IXunitTestCase>,System.Threading.CancellationTokenSource) [0x00021] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestAssemblyRunner`1/<RunTestCollectionsAsync>d__42<TTestCase_REF>.MoveNext () [0x00061] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestAssemblyRunner`1/<RunTestCollectionsAsync>d__42<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestAssemblyRunner`1/<RunTestCollectionsAsync>d__42<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestAssemblyRunner`1/<RunTestCollectionsAsync>d__42<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestAssemblyRunner`1/<RunTestCollectionsAsync>d__42<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestAssemblyRunner`1<TTestCase_REF>.RunTestCollectionsAsync (Xunit.Sdk.IMessageBus,System.Threading.CancellationTokenSource) [0x00033] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestAssemblyRunner.<>n__0 (Xunit.Sdk.IMessageBus,System.Threading.CancellationTokenSource) [0x00000] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestAssemblyRunner/<RunTestCollectionsAsync>d__14.MoveNext () [0x00071] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.XunitTestAssemblyRunner/<RunTestCollectionsAsync>d__14> (Xunit.Sdk.XunitTestAssemblyRunner/<RunTestCollectionsAsync>d__14&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.XunitTestAssemblyRunner.RunTestCollectionsAsync (Xunit.Sdk.IMessageBus,System.Threading.CancellationTokenSource) [0x00033] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestAssemblyRunner`1/<RunAsync>d__41<TTestCase_REF>.MoveNext () [0x000f2] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.TestAssemblyRunner`1/<RunAsync>d__41<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestAssemblyRunner`1/<RunAsync>d__41<Xunit.Sdk.IXunitTestCase>&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Xunit.Sdk.RunSummary>.Start<Xunit.Sdk.TestAssemblyRunner`1/<RunAsync>d__41<Xunit.Sdk.IXunitTestCase>> (Xunit.Sdk.TestAssemblyRunner`1/<RunAsync>d__41<Xunit.Sdk.IXunitTestCase>&) [0x00000] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.TestAssemblyRunner`1<TTestCase_REF>.RunAsync () [0x00023] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.XunitTestFrameworkExecutor/<RunTestCases>d__8.MoveNext () [0x0003e] in <377b61b613ea444f826f377d9474ffca>:0
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start<Xunit.Sdk.XunitTestFrameworkExecutor/<RunTestCases>d__8> (Xunit.Sdk.XunitTestFrameworkExecutor/<RunTestCases>d__8&) [0x0002d] in <fb561f377ab34c0cbaab64f7aabe3e90>:0
  at Xunit.Sdk.XunitTestFrameworkExecutor.RunTestCases (System.Collections.Generic.IEnumerable`1<Xunit.Sdk.IXunitTestCase>,Xunit.Abstractions.IMessageSink,Xunit.Abstractions.ITestFrameworkExecutionOptions) [0x0003b] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Sdk.TestFrameworkExecutor`1<TTestCase_REF>.RunTests (System.Collections.Generic.IEnumerable`1<Xunit.Abstractions.ITestCase>,Xunit.Abstractions.IMessageSink,Xunit.Abstractions.ITestFrameworkExecutionOptions) [0x00028] in <377b61b613ea444f826f377d9474ffca>:0
  at Xunit.Xunit2.RunTests (System.Collections.Generic.IEnumerable`1<Xunit.Abstractions.ITestCase>,Xunit.Abstractions.IMessageSink,Xunit.Abstractions.ITestFrameworkExecutionOptions) [0x0000e] in <049161fa8b5245c18c50a9496ae8fbc9>:0
  at Xunit.XunitFrontController.RunTests (System.Collections.Generic.IEnumerable`1<Xunit.Abstractions.ITestCase>,Xunit.Abstractions.IMessageSink,Xunit.Abstractions.ITestFrameworkExecutionOptions) [0x00006] in <049161fa8b5245c18c50a9496ae8fbc9>:0
  at TestFrameworkExtensions.RunTests (Xunit.Abstractions.ITestFrameworkExecutor,System.Collections.Generic.IEnumerable`1<Xunit.Abstractions.ITestCase>,Xunit.IMessageSinkWithTypes,Xunit.Abstractions.ITestFrameworkExecutionOptions) [0x00008] in <049161fa8b5245c18c50a9496ae8fbc9>:0
  at Xunit.ConsoleClient.ConsoleRunner.ExecuteAssembly (object,Xunit.XunitProjectAssembly,bool,bool,System.Nullable`1<bool>,System.Nullable`1<int>,bool,bool,System.Nullable`1<Xunit.AppDomainSupport>,bool,bool,Xunit.XunitFilters,bool) [0x002f7] in <1c69d3d566d94830bc3244af7457a77c>:0
  at Xunit.ConsoleClient.ConsoleRunner.RunProject (Xunit.XunitProject,bool,System.Nullable`1<bool>,System.Nullable`1<bool>,System.Nullable`1<int>,bool,bool,System.Nullable`1<Xunit.AppDomainSupport>,bool,bool,bool) [0x001e7] in <1c69d3d566d94830bc3244af7457a77c>:0
  at Xunit.ConsoleClient.ConsoleRunner.EntryPoint (string[]) [0x001b5] in <1c69d3d566d94830bc3244af7457a77c>:0
  at Xunit.ConsoleClient.Program.Main (string[]) [0x0003a] in <1c69d3d566d94830bc3244af7457a77c>:0
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) [0x0002a] in <1c69d3d566d94830bc3244af7457a77c>:0
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jan 23, 2020
@stephentoub
Copy link
Member Author

stephentoub commented Jan 23, 2020

ps I love that mono output a stack trace here for the stack overflow. @janvorli, have we made any progress on being able to do something similar in coreclr?

@stephentoub
Copy link
Member Author

#2097 disabled this.

@janvorli
Copy link
Member

have we made any progress on being able to do something similar in coreclr?

I have had a local experimental change that can generate output like this for quite some time. However, there was a discussion about a need to shorten the trace in some way (finding repeating segments and dumping them once e.g. with a repeat count, dumping just part of the trace, etc.) so that we don't end up dumping. I wanted to figure out a way to do that that would cover non-trivial cases too (imagine a recursive loop within other recursive loop kind of things), but then I got distracted by other work of higher priority and it went out of my radar.

So thank you for asking. Let me get back to that and finalize the change. I'll probably do something easy, like a single repeating pattern detection and leave more involved improvements for later.

@stephentoub
Copy link
Member Author

Thanks, Jan.

@MaximLipnin
Copy link
Contributor

I have moved this test out of CoreFX.issues.rsp file in #2087, but because it's still flaky, I'm reopening this issue and will refer to it as ActiveIssue for the test.

@MaximLipnin MaximLipnin reopened this Feb 7, 2020
@akoeplinger akoeplinger added the disabled-test The test is disabled in source code against the issue label Feb 7, 2020
@stephentoub stephentoub removed the untriaged New issue has not been triaged by the area owner label Feb 25, 2020
@stephentoub stephentoub added this to the 5.0 milestone Feb 25, 2020
@marek-safar marek-safar modified the milestones: 5.0.0, 6.0.0 Jun 30, 2020
@SamMonoRT SamMonoRT modified the milestones: 6.0.0, 7.0.0 Jul 16, 2021
@SamMonoRT
Copy link
Member

Moving to 7.0.0

@SamMonoRT
Copy link
Member

haven't seen recent failures. We'll keep it open, move to 8.0.0 milestone and triage the disabled-test issues next month.

@SamMonoRT SamMonoRT modified the milestones: 7.0.0, 8.0.0 Aug 4, 2022
@SamMonoRT SamMonoRT modified the milestones: 8.0.0, 9.0.0 Jul 25, 2023
hamarb123 added a commit to hamarb123/runtime that referenced this issue Feb 6, 2024
- Re-enable disabled tests tracked by dotnet#1417 and dotnet#2084
- Make stack size configurable on NAOT via `IlcDefaultStackSize` on Windows
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Feb 7, 2024
jkotas pushed a commit that referenced this issue Feb 12, 2024
#98007)

* Change stack size to 1.5MB on all desktop platforms & re-enable some tests

* Re-enable some tests, and respect `IlcDefaultStackSize` on Windows

- Re-enable disabled tests tracked by #1417 and #2084
- Make stack size configurable on NAOT via `IlcDefaultStackSize` on Windows
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Feb 12, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-threading-mono disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants