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

Crash in Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests.WorkItemExecution #90019

Open
stephentoub opened this issue Aug 4, 2023 · 10 comments
Labels
area-VM-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@stephentoub
Copy link
Member

stephentoub commented Aug 4, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=363089
Build error leg or test failing: Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests.WorkItemExecution
Pull request: #89992

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "System.Object:__icall_wrapper_mono_marshal_isinst_with_cache",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
Dwarf Error: Cannot handle DW_FORM_<unknown> in DWARF reader [in module /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so.dbg]
Dwarf Error: Cannot handle DW_FORM_<unknown> in DWARF reader [in module /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libSystem.Native.so.dbg]
0x0000ff5f546c42a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xab8d01d0861c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
88	../sysdeps/unix/sysv/linux/futex-internal.h: No such file or directory.
  Id   Target Id         Frame 
* 1    Thread 0xff5f54703fd0 (LWP 25) "dotnet" 0x0000ff5f546c42a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xab8d01d0861c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  2    Thread 0xff5f533ff1c0 (LWP 26) "SGen worker" 0x0000ff5f546c42a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xff5f54164d50 <work_cond+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  3    Thread 0xff5f517d81c0 (LWP 27) ".NET EventPipe" 0x0000ff5f5439eef8 in __GI___poll (fds=0xff5f4c0035f0, nfds=280784893749327, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
  4    Thread 0xff5f515d71c0 (LWP 28) "Finalizer" 0x0000ff5f546c6a40 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0xff5f54156058 <finalizer_sem>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
  5    Thread 0xff5f492831c0 (LWP 29) ".NET SigHandler" 0x0000ff5f546c7ac0 in __libc_read (fd=<optimized out>, buf=0xff5f492829a7, nbytes=1) at ../sysdeps/unix/sysv/linux/read.c:27
  6    Thread 0xff5f491771c0 (LWP 32) ".NET Long Runni" 0x0000ff5f546c42a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xff5f380caca8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
  7    Thread 0xff5f48f661c0 (LWP 33) ".NET TP Worker" 0x0000ff5f546c45bc in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x0, expected=0, futex_word=0xff5f3c01cf08) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  8    Thread 0xff5f48a7b1c0 (LWP 34) ".NET TP Gate" 0x0000ff5f546c45bc in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0xff5f00000000, expected=0, futex_word=0xff5f30039d48) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
  9    Thread 0xff5f48a2a1c0 (LWP 35) ".NET TP Worker" 0x0000ff5f546c8d5c in __waitpid (pid=<optimized out>, stat_loc=0xff5f48a244a0, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
  10   Thread 0xff5f487e91c0 (LWP 36) ".NET Long Runni" 0x0000ff5f53f354d0 in mono_arch_flush_icache () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
  11   Thread 0xff5f485e81c0 (LWP 37) ".NET Long Runni" 0x0000ff5f546c42a4 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0xff5f2c00c54c) at ../sysdeps/unix/sysv/linux/futex-internal.h:88

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=363089
Error message validated: System.Object:__icall_wrapper_mono_marshal_isinst_with_cache
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/4/2023 1:48:24 PM UTC

Report

Build Definition Test Pull Request
870124 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution #109840
869790 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution #109819
866030 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.WorkItemExecution #109299
864343 dotnet/runtime Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.WorkItemExecution #109213
864325 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests.WorkItemExecution #109602
860717 dotnet/runtime System.Text.RegularExpressions.Tests.WorkItemExecution #109391
860443 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.8.Tests.WorkItemExecution
857490 dotnet/runtime Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.WorkItemExecution #104562
856427 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution #104955
854549 dotnet/runtime ComInterfaceGenerator.Unit.Tests.WorkItemExecution #109185
848229 dotnet/runtime LibraryImportGenerator.Unit.Tests.WorkItemExecution #109051
848159 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests.WorkItemExecution #109049
846537 dotnet/runtime Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests.WorkItemExecution #107889

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 5 13
@stephentoub stephentoub added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 4, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Aug 4, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 4, 2023
@lambdageek
Copy link
Member

Crashing on linux-arm64. Here's a managed stack trace:

	  at <unknown> <0xffffffff>
	  at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
	  at System.Object:__isinst_with_cache <0x00083>
	  at System.Collections.Immutable.ImmutableSortedDictionary`2:TryCastToImmutableMap <0x000cf>
	  at System.Collections.Immutable.ImmutableSortedDictionary`2:FillFromEmpty <0x000a3>
	  at System.Collections.Immutable.ImmutableSortedDictionary`2:AddRange <0x000bb>
	  at System.Collections.Immutable.ImmutableSortedDictionary`2:AddRange <0x00063>
	  at System.Collections.Immutable.ImmutableSortedDictionary:ToImmutableSortedDictionary <0x0028f>
	  at System.Collections.Immutable.ImmutableSortedDictionary:ToImmutableSortedDictionary <0x0006f>
	  at Microsoft.CodeAnalysis.TextDocumentStates`1:.ctor <0x002f7>
	  at Microsoft.CodeAnalysis.ProjectState:.ctor <0x006fb>
	  at Microsoft.CodeAnalysis.SolutionState:AddProject <0x000f3>
	  at Microsoft.CodeAnalysis.Solution:AddProject <0x0003f>
	  at Microsoft.CodeAnalysis.Solution:AddProject <0x000b3>
	  at Microsoft.CodeAnalysis.Solution:AddProject <0x00057>
	  at SourceGenerators.Tests.RoslynTestUtils:CreateTestProject <0x003f7>
	  at <RunGenerator>d__8:MoveNext <0x000fb>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0008b>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0003b>
	  at SourceGenerators.Tests.RoslynTestUtils:RunGenerator <0x0021b>
	  at <TestEmitter>d__0:MoveNext <0x004f3>
	  at AsyncStateMachineBox`1:ExecutionContextCallback <0x00043>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at AsyncStateMachineBox`1:MoveNext <0x000f3>
	  at AsyncStateMachineBox`1:MoveNext <0x0002f>
	  at System.Threading.Tasks.AwaitTaskContinuation:RunOrScheduleAction <0x00107>
	  at System.Threading.Tasks.Task:RunContinuations <0x0022f>
	  at System.Threading.Tasks.Task:FinishContinuations <0x0009b>
	  at System.Threading.Tasks.Task`1:TrySetResult <0x00103>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetExistingTaskResult <0x000cf>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult <0x000b3>
	  at <InternalReadAllTextAsync>d__86:MoveNext <0x008cf>
	  at AsyncStateMachineBox`1:ExecutionContextCallback <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at AsyncStateMachineBox`1:MoveNext <0x000eb>
	  at AsyncStateMachineBox`1:MoveNext <0x0002f>
	  at System.Threading.Tasks.AwaitTaskContinuation:RunOrScheduleAction <0x00107>
	  at System.Threading.Tasks.Task:RunContinuations <0x0022f>
	  at System.Threading.Tasks.Task:FinishContinuations <0x0009b>
	  at System.Threading.Tasks.Task`1:TrySetResult <0x000bf>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetExistingTaskResult <0x0009b>
	  at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1:SetResult <0x0008f>
	  at <ReadAsyncInternal>d__69:MoveNext <0x01ecb>
	  at AsyncStateMachineBox`1:ExecutionContextCallback <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at AsyncStateMachineBox`1:MoveNext <0x000eb>
	  at AsyncStateMachineBox`1:MoveNext <0x0002f>
	  at System.Threading.Tasks.AwaitTaskContinuation:RunOrScheduleAction <0x00107>
	  at System.Threading.Tasks.Task:RunContinuations <0x0022f>
	  at System.Threading.Tasks.Task:FinishContinuations <0x0009b>
	  at System.Threading.Tasks.Task`1:TrySetResult <0x000bf>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetExistingTaskResult <0x0009b>
	  at System.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1:SetResult <0x0008f>
	  at <ReadBufferAsync>d__72:MoveNext <0x00cbb>
	  at AsyncStateMachineBox`1:ExecutionContextCallback <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at AsyncStateMachineBox`1:MoveNext <0x000eb>
	  at AsyncStateMachineBox`1:MoveNext <0x0002f>
	  at <>c:<.cctor>b__49_0 <0x00093>
	  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1:SignalCompletion <0x0011f>
	  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1:SetResult <0x0003b>
	  at StateMachineBox:SetResult <0x00043>
	  at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1:SetResult <0x00097>
	  at <ReadAsyncSlowPath>d__37:MoveNext <0x01cdb>
	  at StateMachineBox`1:ExecutionContextCallback <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at StateMachineBox`1:MoveNext <0x00067>
	  at <>c:<.cctor>b__49_0 <0x00093>
	  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1:SignalCompletion <0x0011f>
	  at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1:SetResult <0x0003b>
	  at ThreadPoolValueTaskSource:ExecuteInternal <0x006d7>
	  at ThreadPoolValueTaskSource:System.Threading.IThreadPoolWorkItem.Execute <0x00057>
	  at System.Threading.ThreadPoolWorkQueue:Dispatch <0x003ef>
	  at WorkerThread:WorkerThreadStart <0x00193>
	  at System.Threading.Thread:StartCallback <0x000e7>
	  at System.Object:runtime_invoke_void__this__ <0x00087>

Here's the corresponding native thread:

#0  0x0000ff5f546c8d5c in __waitpid (pid=<optimized out>, stat_loc=0xff5f48a244a0, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x0000ff5f53f4dc80 in mono_dump_native_crash_info () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#2  0x0000ff5f53effa1c in mono_handle_native_crash () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#3  0x0000ff5f53e6e8c8 in mono_sigsegv_signal_handler_debug () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#4  <signal handler called>
#5  0x0000ff5f5407ff54 in mono_object_handle_isinst () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#6  0x0000ff5f54080088 in mono_object_isinst_checked () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#7  0x0000ff5f540514a8 in mono_marshal_isinst_with_cache () from /root/helix/work/correlation/shared/Microsoft.NETCore.App/8.0.0/libcoreclr.so
#8  0x0000ff5f53955e8c in ?? ()
#9  0x0000ff5f340031d0 in ?? ()

@lambdageek lambdageek removed untriaged New issue has not been triaged by the area owner needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Aug 4, 2023
@lambdageek lambdageek added this to the 8.0.0 milestone Aug 4, 2023
@lambdageek
Copy link
Member

The other crash has a slightly different managed stack trace:

	  at <unknown> <0xffffffff>
	  at System.Object:__icall_wrapper_mono_marshal_isinst_with_cache <0x00007>
	  at System.Object:__isinst_with_cache <0x00083>
	  at System.Collections.Immutable.ImmutableExtensions:TryGetCount <0x0015b>
	  at System.Collections.Immutable.ImmutableExtensions:TryGetCount <0x0005b>
	  at Builder:AddRange <0x00077>
	  at Microsoft.CodeAnalysis.PooledObjects.ArrayBuilder`1:AddRange <0x0003f>
	  at Microsoft.CodeAnalysis.CSharp.Symbol:GetAttributesToBind <0x002db>
	  at Microsoft.CodeAnalysis.CSharp.Symbol:LoadAndValidateAttributes <0x000c7>
	  at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMethodSymbolWithAttributes:GetAttributesBag <0x001d7>
	  at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMethodSymbolWithAttributes:GetAttributesBag <0x0006b>
	  at Microsoft.CodeAnalysis.CSharp.Symbols.SourceMethodSymbolWithAttributes:GetAttributes <0x0002b>
	  at Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.Symbol:Microsoft.CodeAnalysis.ISymbol.GetAttributes <0x00053>
	  at Microsoft.CodeAnalysis.SyntaxValueProvider:<ForAttributeWithMetadataName>g__getMatchingAttributes|11_1 <0x001a3>
	  at <>c__DisplayClass11_0`1:<ForAttributeWithMetadataName>b__0 <0x0031f>
	  at <>c__DisplayClass0_0`2:<WrapUserFunction>b__0 <0x0007f>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0039b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0008b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0008b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0008b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0008b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.TransformNode`2:UpdateStateTable <0x0008b>
	  at Builder:GetLatestStateTableForNode <0x000df>
	  at Microsoft.CodeAnalysis.SourceOutputNode`1:UpdateStateTable <0x0010b>
	  at Builder:GetLatestStateTableForNode <0x000d7>
	  at Microsoft.CodeAnalysis.SourceOutputNode`1:AppendOutputs <0x0008b>
	  at Microsoft.CodeAnalysis.GeneratorDriver:UpdateOutputs <0x00283>
	  at Microsoft.CodeAnalysis.GeneratorDriver:RunGeneratorsCore <0x017ef>
	  at Microsoft.CodeAnalysis.GeneratorDriver:RunGenerators <0x00047>
	  at <AddingFileWithNewLibraryImport_DoesNotRegenerateOriginalMethod>d__3:MoveNext <0x003d7>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0008b>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x00057>
	  at LibraryImportGenerator.UnitTests.IncrementalGenerationTests:AddingFileWithNewLibraryImport_DoesNotRegenerateOriginalMethod <0x0012b>
	  at <Module>:runtime_invoke_object__this__ <0x00087>
	  at <unknown> <0xffffffff>
	  at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00007>
	  at System.Reflection.MethodBaseInvoker:InterpretedInvoke_Method <0x00073>
	  at System.Reflection.MethodBaseInvoker:InvokeWithNoArgs <0x00093>
	  at System.Reflection.RuntimeMethodInfo:Invoke <0x001df>
	  at System.Reflection.MethodBase:Invoke <0x00053>
	  at Xunit.Sdk.TestInvoker`1:CallTestMethod <0x00047>
	  at <<InvokeTestMethodAsync>b__1>d:MoveNext <0x0037f>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0009f>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start <0x0002f>
	  at <>c__DisplayClass48_0:<InvokeTestMethodAsync>b__1 <0x000cb>
	  at <AggregateAsync>d__4:MoveNext <0x000c7>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0009b>
	  at Xunit.Sdk.ExecutionTimer:AggregateAsync <0x000eb>
	  at <>c__DisplayClass48_0:<InvokeTestMethodAsync>b__0 <0x0015b>
	  at <RunAsync>d__9:MoveNext <0x00067>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00093>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x000e7>
	  at <InvokeTestMethodAsync>d__48:MoveNext <0x0028b>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000a7>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestInvoker`1:InvokeTestMethodAsync <0x00113>
	  at Xunit.Sdk.XunitTestInvoker:InvokeTestMethodAsync <0x0011b>
	  at <<RunAsync>b__47_0>d:MoveNext <0x0073b>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000af>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestInvoker`1:<RunAsync>b__47_0 <0x000d3>
	  at <RunAsync>d__10`1:MoveNext <0x00073>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x00093>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x000e7>
	  at Xunit.Sdk.TestInvoker`1:RunAsync <0x000e7>
	  at Xunit.Sdk.XunitTestRunner:InvokeTestMethodAsync <0x000cb>
	  at <InvokeTestAsync>d__4:MoveNext <0x001c3>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000a3>
	  at Xunit.Sdk.XunitTestRunner:InvokeTestAsync <0x000ef>
	  at <>c__DisplayClass43_0:<RunAsync>b__0 <0x00043>
	  at <RunAsync>d__10`1:MoveNext <0x0008b>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0009f>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.ExceptionAggregator:RunAsync <0x0011b>
	  at <RunAsync>d__43:MoveNext <0x0048b>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000af>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestRunner`1:RunAsync <0x000d3>
	  at Xunit.Sdk.XunitTestCaseRunner:RunTestAsync <0x000df>
	  at <RunAsync>d__19:MoveNext <0x00383>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000a7>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestCaseRunner`1:RunAsync <0x000cf>
	  at Xunit.Sdk.XunitTestCase:RunAsync <0x000b3>
	  at Xunit.Sdk.XunitTestMethodRunner:RunTestCaseAsync <0x0009f>
	  at <RunTestCasesAsync>d__32:MoveNext <0x001cb>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000af>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestMethodRunner`1:RunTestCasesAsync <0x000d3>
	  at <RunAsync>d__31:MoveNext <0x001a7>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x0009f>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestMethodRunner`1:RunAsync <0x000cb>
	  at Xunit.Sdk.XunitTestClassRunner:RunTestMethodAsync <0x000df>
	  at <RunTestMethodsAsync>d__38:MoveNext <0x007ab>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000b7>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestClassRunner`1:RunTestMethodsAsync <0x000d7>
	  at <RunAsync>d__37:MoveNext <0x003a3>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000a7>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestClassRunner`1:RunAsync <0x000cf>
	  at Xunit.Sdk.XunitTestCollectionRunner:RunTestClassAsync <0x000e3>
	  at <RunTestClassesAsync>d__28:MoveNext <0x003cb>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000af>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestCollectionRunner`1:RunTestClassesAsync <0x000d3>
	  at <RunAsync>d__27:MoveNext <0x003a3>
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore:Start <0x000a7>
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start <0x0002f>
	  at Xunit.Sdk.TestCollectionRunner`1:RunAsync <0x000cf>
	  at Xunit.Sdk.XunitTestAssemblyRunner:RunTestCollectionAsync <0x000af>
	  at <>c__DisplayClass14_2:<RunTestCollectionsAsync>b__2 <0x0006f>
	  at System.Threading.Tasks.Task`1:InnerInvoke <0x0006f>
	  at <>c:<.cctor>b__281_0 <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x00257>
	  at System.Threading.Tasks.Task:ExecuteEntry <0x000bb>
	  at <>c:<.cctor>b__8_0 <0x00067>
	  at Xunit.Sdk.MaxConcurrencySyncContext:RunOnSyncContext <0x0004f>
	  at <>c__DisplayClass11_0:<WorkerThreadProc>b__0 <0x00053>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at System.Threading.ExecutionContext:Run <0x00047>
	  at System.Object:lambda_method2 <0x0008b>
	  at Xunit.Sdk.ExecutionContextHelper:Run <0x00063>
	  at Xunit.Sdk.MaxConcurrencySyncContext:WorkerThreadProc <0x00223>
	  at <>c:<QueueUserWorkItem>b__5_0 <0x00077>
	  at System.Threading.Tasks.Task:InnerInvoke <0x000b7>
	  at <>c:<.cctor>b__281_0 <0x0003b>
	  at System.Threading.ExecutionContext:RunInternal <0x000bf>
	  at System.Threading.Tasks.Task:ExecuteWithThreadLocal <0x00257>
	  at System.Threading.Tasks.Task:ExecuteEntryUnsafe <0x000af>
	  at <>c:<.cctor>b__10_0 <0x0006b>
	  at System.Threading.Thread:StartCallback <0x0012b>
	  at System.Object:runtime_invoke_void__this__ <0x00087>

@lambdageek
Copy link
Member

@vargaz both internal static bool TryGetCount<T>(this IEnumerable<T> sequence, out int count) and private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [NotNullWhen(true)] out ImmutableSortedDictionary<TKey, TValue>? other) are doing casts of some IEnumerable<T> objects. (and I guess this would be in gshared) did we change anything there recently?

@vargaz
Copy link
Contributor

vargaz commented Aug 7, 2023

Don't think so, this is probably just a random crash.

@SamMonoRT
Copy link
Member

Doesn't seem like a deterministic failure, moving to 9.0.0, but will evaluate a backport of fix when ready.

@SamMonoRT SamMonoRT modified the milestones: 8.0.0, 9.0.0 Aug 21, 2023
@carlossanlop
Copy link
Member

carlossanlop commented Aug 24, 2023

I think this is the same as #87444 which I opened back in June, isn't it? Which, by the way, I reported to be happening since 7.0.

@pavelsavara
Copy link
Member

Another Log

@vargaz
Copy link
Contributor

vargaz commented Nov 13, 2023

Similar stack trace

@build-analysis build-analysis bot removed this from the 9.0.0 milestone Nov 15, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 15, 2023
@akoeplinger akoeplinger added this to the 9.0.0 milestone Nov 24, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Nov 24, 2023
@lambdageek
Copy link
Member

Also in #99332 in System.CodeDom.Tests on arm64 linux

@vargaz are we maybe missing a barrier for the isinst cache variable?

@vargaz vargaz removed their assignment Mar 22, 2024
@steveisok
Copy link
Member

Since this is still getting hit, I'm going to do the bump dance and we should try to address in 10 (or sooner).

@steveisok steveisok removed this from the 9.0.0 milestone Jul 26, 2024
@steveisok steveisok added this to the 10.0.0 milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-VM-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

9 participants