Skip to content

Hang in AppDomain.Unload causes tests to time out #49035

@sharwell

Description

@sharwell

This is a tracking issue for failed CI jobs due to a hang in AppDomain.Unload:

 	[Managed to Native Transition]		Annotated Frame
 	mscorlib.dll!System.AppDomain.Unload(System.AppDomain domain) Line 2590	C#	Symbols loaded.
>	xunit.runner.utility.net452.dll!Xunit.AppDomainManager_AppDomain.Dispose() Line 99	C#	Symbols loaded.
 	xunit.runner.utility.net452.dll!Xunit.Xunit2Discoverer.Dispose() Line 164	C#	Symbols loaded.
 	xunit.runner.utility.net452.dll!Xunit.Xunit2.Dispose() Line 89	C#	Symbols loaded.
 	xunit.runner.utility.net452.dll!Xunit.XunitFrontController.Dispose() Line 155	C#	Symbols loaded.
 	xunit.runner.visualstudio.testadapter.dll!Xunit.Runner.VisualStudio.VsTestRunner.RunTestsInAssembly(Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunContext runContext, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle, LoggerHelper logger, Xunit.Runner.VisualStudio.TestPlatformContext testPlatformContext, Xunit.Runner.VisualStudio.RunSettings runSettings, Xunit.IMessageSinkWithTypes reporterMessageHandler, Xunit.Runner.VisualStudio.AssemblyRunInfo runInfo) Line 619	C#	Symbols loaded.
 	xunit.runner.visualstudio.testadapter.dll!Xunit.Runner.VisualStudio.VsTestRunner.RunTests.AnonymousMethod__4(Xunit.Runner.VisualStudio.AssemblyRunInfo runInfo) Line 452	C#	Symbols loaded.
 	mscorlib.dll!System.Collections.Generic.List<Xunit.Runner.VisualStudio.AssemblyRunInfo>.ForEach(System.Action<Xunit.Runner.VisualStudio.AssemblyRunInfo> action) Line 553	C#	Symbols loaded.
 	xunit.runner.visualstudio.testadapter.dll!Xunit.Runner.VisualStudio.VsTestRunner.RunTests(Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunContext runContext, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle, LoggerHelper logger, Xunit.Runner.VisualStudio.TestPlatformContext testPlatformContext, Xunit.Runner.VisualStudio.RunSettings runSettings, System.Func<System.Collections.Generic.List<Xunit.Runner.VisualStudio.AssemblyRunInfo>> getRunInfos) Line 451	C#	Symbols loaded.
 	xunit.runner.visualstudio.testadapter.dll!Xunit.Runner.VisualStudio.VsTestRunner.Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.ITestExecutor.RunTests(System.Collections.Generic.IEnumerable<string> sources, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IRunContext runContext, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle) Line 181	C#	Symbols loaded.
 	Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.RunTestsWithSources.InvokeExecutor(Microsoft.VisualStudio.TestPlatform.Common.ExtensionFramework.Utilities.LazyExtension<Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.ITestExecutor, Microsoft.VisualStudio.TestPlatform.Common.Interfaces.ITestExecutorCapabilities> executor, System.Tuple<System.Uri, string> executorUriExtensionTuple, Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Adapter.RunContext runContext, Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter.IFrameworkHandle frameworkHandle) Line 121	C#	Symbols loaded.
 	Microsoft.TestPlatform.CrossPlatEngine.dll!Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Execution.BaseRunTests.RunTestInternalWithExecutors.AnonymousMethod__0() Line 494	C#	Symbols loaded.
 	Microsoft.TestPlatform.PlatformAbstractions.dll!Microsoft.VisualStudio.TestPlatform.PlatformAbstractions.PlatformThread.Run.AnonymousMethod__0() Line 26	C#	Symbols loaded.
 	mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) Line 74	C#	Symbols loaded.
 	mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 954	C#	Symbols loaded.
 	mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Line 902	C#	Symbols loaded.
 	mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Line 891	C#	Symbols loaded.
 	mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() Line 111	C#	Symbols loaded.
Build Kind Start Time
1089767 Rolling 2021-15-04
1089768 Rolling 2021-15-04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InfrastructureContributor PainThe issue impedes progress for project collaborators.Resolution-FixedThe bug has been fixed and/or the requested behavior has been implemented

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions