runtime: Hang in ReinitializeConsole while waiting for child process exit

I’ve been getting reports of an intermittent hang in MSBuild running on Linux in the dotnet CLI build process. Original report with a fair amount of debugging info in case I drop something in this summary: https://github.com/Microsoft/msbuild/issues/3563

In two instances that I’ve observed, my process is hung in HandleToolNotifications, a method that waits on several ManualResetEvents that are triggered by event handlers hooked up to a Process. The process on which it’s waiting is in “zombie” state, waiting to be reaped by its parent.

In both instances, a thread running MSBuild code has called into a WaitHandle.Wait* method, and that thread appears to be handling a signal and calling ReinitializeConsole. It’s hung on a write inside that.

repro 1 ReinitializeConsole stack
(lldb) bt
* thread dotnet/corefx#15: tid = 97446, 0x00007f95347f67cd libpthread.so.0`__libc_write + 45, name = 'dotnet', stop reason = signal SIGSTOP
    frame #0: 0x00007f95347f67cd libpthread.so.0`__libc_write + 45
  * frame dotnet/corefx#1: 0x00007f952bee9f4f System.Native.so`ReinitializeConsole + 95
    frame dotnet/corefx#2: 0x00007f952beeec72 System.Native.so`??? + 50
    frame dotnet/corefx#3: 0x00007f95347f77e0 libpthread.so.0`??? + 1
    frame dotnet/corefx#4: 0x00007f95347f368a libpthread.so.0`__pthread_cond_wait + 202
    frame dotnet/corefx#5: 0x00007f95332190b2 libcoreclr.so`CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 322
    frame dotnet/corefx#6: 0x00007f9533218cb4 libcoreclr.so`CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 388
    frame dotnet/corefx#7: 0x00007f953321d624 libcoreclr.so`CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 1812
    frame dotnet/corefx#8: 0x00007f953321d9a1 libcoreclr.so`WaitForMultipleObjectsEx + 81
    frame dotnet/corefx#9: 0x00007f9532e8875b libcoreclr.so`Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 1467
    frame dotnet/corefx#10: 0x00007f9532e834f0 libcoreclr.so`Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 80
    frame dotnet/corefx#11: 0x00007f9532ed46b1 libcoreclr.so`WaitHandleNative::CorWaitMultipleNative(Object*, int, bool, bool) + 657
    frame dotnet/corefx#12: 0x00007f94b9907705
    frame dotnet/corefx#13: 0x00007f94bc0b53d9
    frame dotnet/corefx#14: 0x00007f94bc0b4fa8
    frame dotnet/corefx#15: 0x00007f94bc0b6cfc
    frame dotnet/corefx#16: 0x00007f94ba886cc8
    frame dotnet/runtime#13850: 0x00007f94ba8ff5ef
    frame dotnet/runtime#13851: 0x00007f94bbbbcedb
    frame dotnet/corefx#19: 0x00007f94ba87f78a
    frame dotnet/runtime#13852: 0x00007f94ba8feffc
    frame dotnet/corefx#21: 0x00007f94bbbbc68b
    frame dotnet/runtime#13853: 0x00007f94ba87f4a7
    frame dotnet/corefx#23: 0x00007f94bbbba8fc
    frame dotnet/corefx#24: 0x00007f94bbbba35b
    frame dotnet/corefx#25: 0x00007f94ba87eff2
    frame dotnet/runtime#13854: 0x00007f94ba8feb5f
    frame dotnet/corefx#27: 0x00007f94bbbb9b2b
    frame dotnet/corefx#28: 0x00007f94ba87ef62
    frame dotnet/corefx#29: 0x00007f94ba8fe662
    frame dotnet/corefx#30: 0x00007f94bbbb99bb
    frame dotnet/corefx#31: 0x00007f94ba87e982
    frame dotnet/corefx#32: 0x00007f94ba8fe0ab
    frame dotnet/corefx#33: 0x00007f94bbbb984b
    frame dotnet/corefx#34: 0x00007f94ba87ac96
    frame dotnet/runtime#13855: 0x00007f94ba8fd398
    frame dotnet/runtime#13856: 0x00007f94bbbb8e2b
    frame dotnet/corefx#37: 0x00007f94ba87a593
    frame dotnet/corefx#38: 0x00007f94ba8fbe0e
    frame dotnet/corefx#39: 0x00007f94b983cf9d
    frame dotnet/corefx#40: 0x00007f94bd3b4460
    frame dotnet/runtime#13857: 0x00007f94b98ca637
    frame dotnet/corefx#42: 0x00007f94b988098e
    frame dotnet/runtime#13858: 0x00007f94b990641c
    frame dotnet/runtime#13859: 0x00007f94b98d93bf
    frame dotnet/corefx#45: 0x00007f94b998e93a
    frame dotnet/corefx#46: 0x00007f94ba8fdac4
    frame dotnet/corefx#47: 0x00007f94b983cf9d
    frame dotnet/runtime#13860: 0x00007f94bd3b4210
    frame dotnet/runtime#13861: 0x00007f94b98ca637
    frame dotnet/corefx#50: 0x00007f94b988098e
    frame dotnet/corefx#51: 0x00007f94b98cfd46
    frame dotnet/runtime#13862: 0x00007f94b990c60b
    frame dotnet/corefx#53: 0x00007f94ba8fe2ad
    frame dotnet/runtime#13863: 0x00007f94b983cf9d
    frame dotnet/corefx#55: 0x00007f94bd3b0bb1
    frame dotnet/corefx#56: 0x00007f94b98ca637
    frame dotnet/runtime#13864: 0x00007f94b988098e
    frame dotnet/runtime#13865: 0x00007f94b98cfd46
    frame dotnet/corefx#59: 0x00007f94b990c60b
    frame dotnet/runtime#13866: 0x00007f94ba8fe72a
    frame dotnet/corefx#61: 0x00007f94b983cf9d
    frame dotnet/runtime#13867: 0x00007f94bd3b0901
    frame dotnet/runtime#13868: 0x00007f94b98ca637
    frame dotnet/corefx#64: 0x00007f94b988098e
    frame dotnet/corefx#65: 0x00007f94b98cfd46
    frame dotnet/corefx#66: 0x00007f94b990c60b
    frame dotnet/corefx#67: 0x00007f94ba8fecd7
    frame dotnet/corefx#68: 0x00007f94b983cf9d
    frame dotnet/runtime#13869: 0x00007f94bd3b0651
    frame dotnet/runtime#13870: 0x00007f94b98ca637
    frame dotnet/runtime#13871: 0x00007f94b988098e
    frame dotnet/runtime#13872: 0x00007f94b98cfd46
    frame dotnet/corefx#73: 0x00007f94b990c60b
    frame dotnet/corefx#74: 0x00007f94bbbbacdc
    frame dotnet/corefx#75: 0x00007f94b983cf9d
    frame dotnet/corefx#76: 0x00007f94bd3b03a1
    frame dotnet/runtime#13873: 0x00007f94b98ca637
    frame dotnet/corefx#78: 0x00007f94b988098e
    frame dotnet/corefx#79: 0x00007f94b98cfd46
    frame dotnet/corefx#80: 0x00007f94b990c60b
    frame dotnet/corefx#81: 0x00007f94ba8ff11b
    frame dotnet/runtime#13874: 0x00007f94b983cf9d
    frame dotnet/runtime#13875: 0x00007f94bd3b00f1
    frame dotnet/runtime#13876: 0x00007f94b98ca637
    frame dotnet/runtime#13877: 0x00007f94b988098e
    frame dotnet/corefx#86: 0x00007f94b98cfd46
    frame dotnet/corefx#87: 0x00007f94b990c60b
    frame dotnet/corefx#88: 0x00007f94ba8ffe31
    frame dotnet/runtime#13878: 0x00007f94b983cf9d
    frame dotnet/corefx#90: 0x00007f94bd3afe41
    frame dotnet/corefx#91: 0x00007f94b98ca637
    frame dotnet/corefx#92: 0x00007f94b988098e
    frame dotnet/corefx#93: 0x00007f94b991fc1a
    frame dotnet/runtime#13879: 0x00007f94b9907dbf
    frame dotnet/corefx#95: 0x00007f94b9908219
    frame dotnet/runtime#13880: 0x00007f94ba8f37d5
    frame dotnet/corefx#97: 0x00007f94b983cf9d
    frame dotnet/corefx#98: 0x00007f94bd3afbe0
    frame dotnet/runtime#13881: 0x00007f94b98ca637
    frame dotnet/corefx#100: 0x00007f94b988098e
    frame dotnet/corefx#101: 0x00007f94b991fc1a
    frame dotnet/runtime#13882: 0x00007f94b9907dbf
    frame dotnet/runtime#13883: 0x00007f94b9908219
    frame dotnet/corefx#104: 0x00007f94ba8f3a7e
    frame dotnet/runtime#13884: 0x00007f94b983cf9d
    frame dotnet/corefx#106: 0x00007f94bd3af990
    frame dotnet/corefx#107: 0x00007f94b98ca637
    frame dotnet/runtime#13885: 0x00007f94b988098e
    frame dotnet/corefx#109: 0x00007f94b991fc1a
    frame dotnet/corefx#110: 0x00007f94b9907dbf
    frame dotnet/corefx#111: 0x00007f94b9908219
    frame dotnet/corefx#112: 0x00007f94ba8f4d3e
    frame dotnet/corefx#113: 0x00007f94b983cf9d
    frame dotnet/runtime#13886: 0x00007f94bd3af740
    frame dotnet/corefx#115: 0x00007f94b98ca637
    frame dotnet/runtime#13887: 0x00007f94b988098e
    frame dotnet/runtime#13888: 0x00007f94bd3af05a
    frame dotnet/runtime#13889: 0x00007f94bd3aef84
    frame dotnet/runtime#13890: 0x00007f94bc6e235f
    frame dotnet/corefx#120: 0x00007f94b983cf9d
    frame dotnet/corefx#121: 0x00007f94bd3af0e0
    frame dotnet/corefx#122: 0x00007f94b98ca637
    frame dotnet/corefx#123: 0x00007f94b988098e
    frame dotnet/corefx#124: 0x00007f94bd3af05a
    frame dotnet/corefx#125: 0x00007f94bd3aef84
    frame dotnet/runtime#13891: 0x00007f94bc6e235f
    frame dotnet/corefx#127: 0x00007f94b983cf9d
    frame dotnet/runtime#13892: 0x00007f94bd3aed30
    frame dotnet/runtime#13893: 0x00007f94b98ca637
    frame dotnet/runtime#13894: 0x00007f94b988098e
    frame dotnet/corefx#131: 0x00007f94b98cfd46
    frame dotnet/corefx#132: 0x00007f94b990c60b
    frame dotnet/corefx#133: 0x00007f94ba8f8def
    frame dotnet/corefx#134: 0x00007f94b983cf9d
    frame dotnet/corefx#135: 0x00007f94bd3aea91
    frame dotnet/runtime#13895: 0x00007f94b98ca637
    frame dotnet/runtime#13896: 0x00007f94b988098e
    frame dotnet/corefx#138: 0x00007f94b98cfd46
    frame dotnet/corefx#139: 0x00007f94b990c60b
    frame dotnet/corefx#140: 0x00007f94ba8f99b0
    frame dotnet/corefx#141: 0x00007f94b983cf9d
    frame dotnet/runtime#2405: 0x00007f94bd3ae7e1
    frame dotnet/corefx#143: 0x00007f94b98ca637
    frame dotnet/runtime#13897: 0x00007f94b988098e
    frame dotnet/corefx#145: 0x00007f94b9887a5a
    frame dotnet/corefx#146: 0x00007f94bc706457
    frame dotnet/corefx#147: 0x00007f94ba906274
    frame dotnet/corefx#148: 0x00007f94b983cf9d
    frame dotnet/runtime#13898: 0x00007f9532f9be7f libcoreclr.so`CallDescrWorkerInternal + 124
    frame dotnet/corefx#150: 0x00007f9532ebbd62 libcoreclr.so`DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 242
    frame dotnet/corefx#151: 0x00007f953303c319 libcoreclr.so`RegisterWaitForSingleObjectCallback_Worker(void*) + 201
    frame dotnet/corefx#152: 0x00007f9532e8dd0d libcoreclr.so`ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 413
    frame dotnet/corefx#153: 0x00007f9532e8e470 libcoreclr.so`ManagedThreadBase::ThreadPool(ADID, void (*)(void*), void*) + 64
    frame dotnet/corefx#154: 0x00007f953303c17a libcoreclr.so`RegisterWaitForSingleObjectCallback(void*, unsigned char) + 266
    frame dotnet/corefx#155: 0x00007f9532eabcfa libcoreclr.so`ThreadpoolMgr::AsyncCallbackCompletion(void*) + 298
    frame dotnet/corefx#156: 0x00007f9533020696 libcoreclr.so`UnManagedPerAppDomainTPCount::DispatchWorkItem(bool*, bool*) + 422
    frame dotnet/runtime#13899: 0x00007f9532eacb73 libcoreclr.so`ThreadpoolMgr::WorkerThreadStart(void*) + 1267
    frame dotnet/runtime#13900: 0x00007f9533223b82 libcoreclr.so`CorUnix::CPalThread::ThreadEntry(void*) + 306
    frame dotnet/runtime#13901: 0x00007f95347efaa1 libpthread.so.0`start_thread + 209
    frame dotnet/corefx#160: 0x00007f9533d9cbcd libc.so.6`clone + 109
(lldb) dumpstack
OS Thread Id: 0x17ca6 (15)
TEB information is not available so a stack size of 0xFFFF is assumed
Current frame: System.Native.so!ReinitializeConsole + 0x5f
Child-SP         RetAddr          Caller, Callee
00007F943E7F7B70 00007f952beeec72 System.Native.so!??? + 0x32, calling System.Native.so!ReinitializeConsole
00007F943E7F7D70 00007f9532e3bd21 libcoreclr.so!CEEJitInfo::CompressDebugInfo() + 0x131, calling libcoreclr.so!CLRException::HandlerState::CleanupTry()
00007F943E7F80C0 00007f953320051c libcoreclr.so!HeapAlloc + 0x2c, calling libcoreclr.so!PAL_malloc
00007F943E7F80F8 00007f95347f2947 libpthread.so.0!_L_unlock_657 + 0xf, calling libpthread.so.0!__lll_unlock_wake
00007F943E7F8150 00007f95347f3635 libpthread.so.0!__pthread_cond_wait + 0x75, calling libpthread.so.0!__pthread_enable_asynccancel
00007F943E7F8180 00007f95332190b2 libcoreclr.so!CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 0x142, calling libcoreclr.so!pthread_cond_wait
00007F943E7F81F0 00007f9533218cb4 libcoreclr.so!CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 0x184, calling libcoreclr.so!CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*)
00007F943E7F8250 00007f953321d624 libcoreclr.so!CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 0x714
00007F943E7F83E0 00007f953321d9a1 libcoreclr.so!WaitForMultipleObjectsEx + 0x51, calling libcoreclr.so!CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int)
00007F943E7F8420 00007f9532e8875b libcoreclr.so!Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 0x5bb, calling libcoreclr.so!WaitForMultipleObjectsEx
00007F943E7F8510 00007f9532e834f0 libcoreclr.so!Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 0x50, calling libcoreclr.so!Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode)
00007F943E7F8550 00007f9532ed46b1 libcoreclr.so!WaitHandleNative::CorWaitMultipleNative(Object*, int, bool, bool) + 0x291, calling libcoreclr.so!Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*)
00007F943E7F8560 00007f9532ed467f libcoreclr.so!WaitHandleNative::CorWaitMultipleNative(Object*, int, bool, bool) + 0x25f, calling libcoreclr.so!GetTickCount64
00007F943E7F8590 00007f9532ed4555 libcoreclr.so!WaitHandleNative::CorWaitMultipleNative(Object*, int, bool, bool) + 0x135, calling libcoreclr.so!SafeHandle::AddRef()
00007F943E7F86D0 00007f9532f042ed libcoreclr.so!ObjIsInstanceOfNoGC + 0x11d, calling libcoreclr.so!MethodTable::CanCastToClassNoGC(MethodTable*)
00007F943E7F86F0 00007f9532ed44cd libcoreclr.so!WaitHandleNative::CorWaitMultipleNative(Object*, int, bool, bool) + 0xad, calling libcoreclr.so!LazyMachStateCaptureState
00007F943E7F8740 00007f94b9907705 (MethodDesc 00007f94b93aad68 + 0x95 System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[], Int32, Boolean)), calling 00007f9532ed4420 (stub for System.Threading.WaitHandle.WaitMultiple(System.Threading.WaitHandle[], Int32, Boolean, Boolean))
00007F943E7F8780 00007f94bc0b53d9 (MethodDesc 00007f94bc113bd8 + 0xd9 Microsoft.Build.Utilities.ToolTask.HandleToolNotifications(System.Diagnostics.Process)), calling (MethodDesc 00007f94b93aad98 + 0 System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[]))
00007F943E7F87B8 00007f943e7f8840 00007f943e7f8840
00007F943E7F87C0 00007f94bc0b4fa8 (MethodDesc 00007f94bc113bb8 + 0x358 Microsoft.Build.Utilities.ToolTask.ExecuteTool(System.String, System.String, System.String)), calling (MethodDesc 00007f94bc113bd8 + 0 Microsoft.Build.Utilities.ToolTask.HandleToolNotifications(System.Diagnostics.Process))
00007F943E7F8840 00007f94bc0b6cfc (MethodDesc 00007f94bc113cc0 + 0x9ac Microsoft.Build.Utilities.ToolTask.Execute()), calling 00007f94b91647a0
00007F943E7F89A0 00007f94ba886cc8 (MethodDesc 00007f94bbdffe90 + 0x88 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()), calling 00007f94b9195390
00007F943E7F89D0 00007f94ba8ff5ef (MethodDesc 00007f94bc0165a8 + 0x3ff Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25.MoveNext()), calling 00007f94b9163740
00007F943E7F8A60 00007f94bbbbcedb (MethodDesc 00007f94bc0167e8 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25, Microsoft.Build]](<ExecuteInstantiatedTask>d__25 ByRef)), calling (MethodDesc 00007f94bc0165a8 + 0 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25.MoveNext())
00007F943E7F8AB0 00007f94ba87f78a (MethodDesc 00007f94baedb490 + 0x7a Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode)), calling (MethodDesc 00007f94bc016718 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25, Microsoft.Build]](<ExecuteInstantiatedTask>d__25 ByRef))
00007F943E7F8B40 00007f94ba8feffc (MethodDesc 00007f94bbe06a68 + 0x13c Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23.MoveNext()), calling (MethodDesc 00007f94baedb490 + 0 Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode))
00007F943E7F8B90 00007f94bbbbc68b (MethodDesc 00007f94bc0153c0 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23, Microsoft.Build]](<InitializeAndExecuteTask>d__23 ByRef)), calling (MethodDesc 00007f94bbe06a68 + 0 Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23.MoveNext())
00007F943E7F8BE0 00007f94ba87f4a7 (MethodDesc 00007f94baedb470 + 0x77 Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.ItemBucket, System.Collections.Generic.IDictionary`2<System.String,System.String>, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.TaskExecutionMode)), calling (MethodDesc 00007f94bc0152f0 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23, Microsoft.Build]](<InitializeAndExecuteTask>d__23 ByRef))
00007F943E7F8C50 00007f94bbbba8fc (MethodDesc 00007f94bbe06030 + 0x2ec Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19.MoveNext()), calling (MethodDesc 00007f94baedb470 + 0 Microsoft.Build.BackEnd.TaskBuilder.InitializeAndExecuteTask(Microsoft.Build.BackEnd.Logging.TaskLoggingContext, Microsoft.Build.BackEnd.ItemBucket, System.Collections.Generic.IDictionary`2<System.String,System.String>, Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.TaskExecutionMode))
00007F943E7F8D00 00007f94bbbba35b (MethodDesc 00007f94bbe06270 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19, Microsoft.Build]](<ExecuteBucket>d__19 ByRef)), calling (MethodDesc 00007f94bbe06030 + 0 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19.MoveNext())
00007F943E7F8D50 00007f94ba87eff2 (MethodDesc 00007f94baedb430 + 0x72 Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode, System.Collections.Generic.Dictionary`2<System.String,System.String>)), calling (MethodDesc 00007f94bbe061a0 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19, Microsoft.Build]](<ExecuteBucket>d__19 ByRef))
00007F943E7F8DC0 00007f94ba8feb5f (MethodDesc 00007f94bbe04ac0 + 0x3af Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18.MoveNext()), calling (MethodDesc 00007f94baedb430 + 0 Microsoft.Build.BackEnd.TaskBuilder.ExecuteBucket(Microsoft.Build.BackEnd.TaskHost, Microsoft.Build.BackEnd.ItemBucket, Microsoft.Build.BackEnd.TaskExecutionMode, System.Collections.Generic.Dictionary`2<System.String,System.String>))
00007F943E7F8E90 00007f94bbbb9b2b (MethodDesc 00007f94bbe04d00 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18, Microsoft.Build]](<ExecuteTask>d__18 ByRef)), calling (MethodDesc 00007f94bbe04ac0 + 0 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18.MoveNext())
00007F943E7F8EA0 00007f9532f0a792 libcoreclr.so!JIT_MonExit_Portable + 0x22, calling libcoreclr.so!__tls_get_addr
00007F943E7F8EE0 00007f94ba87ef62 (MethodDesc 00007f94baedb420 + 0x62 Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup)), calling (MethodDesc 00007f94bbe04c30 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18, Microsoft.Build]](<ExecuteTask>d__18 ByRef))
00007F943E7F8F50 00007f94ba8fe662 (MethodDesc 00007f94bbe04660 + 0x2d2 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13.MoveNext()), calling (MethodDesc 00007f94baedb420 + 0 Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup))
00007F943E7F8FA0 00007f94bbbb99bb (MethodDesc 00007f94bbe048b0 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13, Microsoft.Build]](<ExecuteTask>d__13 ByRef)), calling (MethodDesc 00007f94bbe04660 + 0 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13.MoveNext())
00007F943E7F8FF0 00007f94ba87e982 (MethodDesc 00007f94baedb3e8 + 0x92 Microsoft.Build.BackEnd.TaskBuilder.ExecuteTask(Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.ITargetBuilderCallback, Microsoft.Build.Execution.ProjectTargetInstanceChild, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup, System.Threading.CancellationToken)), calling (MethodDesc 00007f94bbe047e0 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13, Microsoft.Build]](<ExecuteTask>d__13 ByRef))
00007F943E7F9070 00007f94ba8fe0ab (MethodDesc 00007f94bbe041e0 + 0x17b Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52.MoveNext()), calling 00007f94b91635e0
00007F943E7F9110 00007f94bbbb984b (MethodDesc 00007f94bbe04420 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52, Microsoft.Build]](<ProcessBucket>d__52 ByRef)), calling (MethodDesc 00007f94bbe041e0 + 0 Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52.MoveNext())
00007F943E7F9160 00007f94ba87ac96 (MethodDesc 00007f94bbdfcee8 + 0x76 Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup)), calling (MethodDesc 00007f94bbe04350 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].Start[[Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52, Microsoft.Build]](<ProcessBucket>d__52 ByRef))
00007F943E7F91E0 00007f94ba8fd398 (MethodDesc 00007f94bbe01b70 + 0x778 Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45.MoveNext()), calling (MethodDesc 00007f94bbdfcee8 + 0 Microsoft.Build.BackEnd.TargetEntry.ProcessBucket(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.Logging.TargetLoggingContext, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.Lookup, Microsoft.Build.BackEnd.Lookup))
00007F943E7F9240 00007f94b980b48f (MethodDesc 00007f94b938d380 + 0x15f System.Collections.Generic.Dictionary`2[[System.__Canon, System.Private.CoreLib],[System.Int32, System.Private.CoreLib]].FindEntry(System.__Canon))
00007F943E7F92D0 00007f94bbbb8e2b (MethodDesc 00007f94bbe01e88 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45, Microsoft.Build]](<ExecuteTarget>d__45 ByRef)), calling (MethodDesc 00007f94bbe01b70 + 0 Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45.MoveNext())
00007F943E7F9320 00007f94ba87a593 (MethodDesc 00007f94bbdfce78 + 0x83 Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext, System.Threading.CancellationToken)), calling (MethodDesc 00007f94bbe01e28 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45, Microsoft.Build]](<ExecuteTarget>d__45 ByRef))
00007F943E7F93D0 00007f94ba8fbe0e (MethodDesc 00007f94bbe00ec0 + 0x89e Microsoft.Build.BackEnd.TargetBuilder+<ProcessTargetStack>d__21.MoveNext()), calling (MethodDesc 00007f94bbdfce78 + 0 Microsoft.Build.BackEnd.TargetEntry.ExecuteTarget(Microsoft.Build.BackEnd.ITaskBuilder, Microsoft.Build.BackEnd.BuildRequestEntry, Microsoft.Build.BackEnd.Logging.ProjectLoggingContext, System.Threading.CancellationToken))
00007F943E7F9460 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9470 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F94C0 00007f94bd3b4460 (MethodDesc 00007f94bcaf0c68 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib],[Microsoft.Build.BackEnd.TargetBuilder+<ProcessTargetStack>d__21, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F94D0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7F94F0 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7F9530 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7F9590 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7F95D0 00007f94b990641c (MethodDesc 00007f94b93aa7c0 + 0x8c System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib]].TrySetResult(System.Threading.Tasks.VoidTaskResult)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7F9600 00007f94b98d93bf (MethodDesc 00007f94b93a4798 + 0x3f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib]].SetExistingTaskResult(System.Threading.Tasks.VoidTaskResult)), calling (MethodDesc 00007f94b93aa7c0 + 0 System.Threading.Tasks.Task`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib]].TrySetResult(System.Threading.Tasks.VoidTaskResult))
00007F943E7F9620 00007f94b998e93a (MethodDesc 00007f94b93b51a8 + 0x4a System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()), calling (MethodDesc 00007f94b93a4798 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib]].SetExistingTaskResult(System.Threading.Tasks.VoidTaskResult))
00007F943E7F9650 00007f94ba8fdac4 (MethodDesc 00007f94bbe01b70 + 0xea4 Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45.MoveNext()), calling (MethodDesc 00007f94b93b51a8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult())
00007F943E7F96B0 00007f9532eca89d libcoreclr.so!ThreadNative::GetThreadState(ThreadBaseObject*) + 0x16d, calling libcoreclr.so!Frame::PopIfChained()
00007F943E7F9740 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9750 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F97A0 00007f94bd3b4210 (MethodDesc 00007f94bc8ddac8 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib],[Microsoft.Build.BackEnd.TargetEntry+<ExecuteTarget>d__45, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F97B0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7F97D0 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7F9810 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7F9840 00007f94bbbb99bb (MethodDesc 00007f94bbe048b0 + 0x3b System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13, Microsoft.Build]](<ExecuteTask>d__13 ByRef)), calling (MethodDesc 00007f94bbe04660 + 0 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13.MoveNext())
00007F943E7F9870 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7F98B0 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7F98E0 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7F9910 00007f94ba8fe2ad (MethodDesc 00007f94bbe041e0 + 0x37d Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7F99B0 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F99C0 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F9A10 00007f94bd3b0bb1 (MethodDesc 00007f94bc8dbf68 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TargetEntry+<ProcessBucket>d__52, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9A40 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7F9A80 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7F9AE0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7F9B20 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7F9B50 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7F9B80 00007f94ba8fe72a (MethodDesc 00007f94bbe04660 + 0x39a Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7F9B90 00007f9532f0a792 libcoreclr.so!JIT_MonExit_Portable + 0x22, calling libcoreclr.so!__tls_get_addr
00007F943E7F9BD0 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9BE0 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F9C30 00007f94bd3b0901 (MethodDesc 00007f94bc8dac60 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__13, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9C60 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7F9CA0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7F9CC8 00007f94ba4930c5 (MethodDesc 00007f94badb7110 + 0x55 System.Collections.Generic.LinkedList`1[[System.__Canon, System.Private.CoreLib]].InternalRemoveNode(System.Collections.Generic.LinkedListNode`1<System.__Canon>)), calling libcoreclr.so!JIT_WriteBarrier
00007F943E7F9D00 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7F9D40 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7F9D70 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7F9DA0 00007f94ba8fecd7 (MethodDesc 00007f94bbe04ac0 + 0x527 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7F9DB0 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F9E70 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9E80 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7F9ED0 00007f94bd3b0651 (MethodDesc 00007f94bc8d7978 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteTask>d__18, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7F9F00 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7F9F40 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7F9FA0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7F9FE0 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FA010 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7FA040 00007f94bbbbacdc (MethodDesc 00007f94bbe06030 + 0x6cc Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19.MoveNext()), calling (MethodDesc 00007f94b93ab700 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon))
00007F943E7FA060 00007f9532eca89d libcoreclr.so!ThreadNative::GetThreadState(ThreadBaseObject*) + 0x16d, calling libcoreclr.so!Frame::PopIfChained()
00007F943E7FA0F0 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA100 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FA150 00007f94bd3b03a1 (MethodDesc 00007f94bc8d4d08 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteBucket>d__19, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA180 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FA1C0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FA220 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FA260 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FA290 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7FA2C0 00007f94ba8ff11b (MethodDesc 00007f94bbe06a68 + 0x25b Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7FA310 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA320 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FA370 00007f94bd3b00f1 (MethodDesc 00007f94bc8d36b8 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TaskBuilder+<InitializeAndExecuteTask>d__23, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA3A0 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FA3E0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FA400 00007f94ba87fbef (MethodDesc 00007f94baedb4a0 + 0x43f Microsoft.Build.BackEnd.TaskBuilder.GatherTaskOutputs(Microsoft.Build.BackEnd.ITaskExecutionHost, Microsoft.Build.BackEnd.TaskExecutionMode, Microsoft.Build.BackEnd.ItemBucket)), calling 00007f94b918c170
00007F943E7FA440 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FA480 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FA4B0 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7FA4E0 00007f94ba8ffe31 (MethodDesc 00007f94bc0165a8 + 0xc41 Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7FA570 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA580 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FA5D0 00007f94bd3afe41 (MethodDesc 00007f94bc8d2d88 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__25, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA600 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FA640 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FA660 00007f9532fdd80b libcoreclr.so!ClassLoader::LookupTypeHandleForTypeKeyInner(TypeKey*, int) + 0x15b, calling libcoreclr.so!ClassLoader::LookupInLoaderModule(TypeKey*, int)
00007F943E7FA6A0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FA6E0 00007f94b991fc1a (MethodDesc 00007f94b93adb68 + 0x8a System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FA710 00007f94b9907dbf (MethodDesc 00007f94b93ab058 + 0x3f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean)), calling (MethodDesc 00007f94b93adb68 + 0 System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean))
00007F943E7FA730 00007f94b9908219 (MethodDesc 00007f94b93ab050 + 0x69 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean)), calling (MethodDesc 00007f94b93ab058 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean))
00007F943E7FA750 00007f94ba8f37d5 (MethodDesc 00007f94bc8ba088 + 0xa65 Microsoft.Build.BackEnd.MSBuild+<ExecuteInternal>d__76.MoveNext()), calling (MethodDesc 00007f94b93ab050 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean))
00007F943E7FA770 00007f9532eca89d libcoreclr.so!ThreadNative::GetThreadState(ThreadBaseObject*) + 0x16d, calling libcoreclr.so!Frame::PopIfChained()
00007F943E7FA800 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA810 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FA860 00007f94bd3afbe0 (MethodDesc 00007f94bc8d2428 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Boolean, System.Private.CoreLib],[Microsoft.Build.BackEnd.MSBuild+<ExecuteInternal>d__76, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FA870 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7FA890 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FA8D0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FA930 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FA970 00007f94b991fc1a (MethodDesc 00007f94b93adb68 + 0x8a System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FA9A0 00007f94b9907dbf (MethodDesc 00007f94b93ab058 + 0x3f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean)), calling (MethodDesc 00007f94b93adb68 + 0 System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean))
00007F943E7FA9C0 00007f94b9908219 (MethodDesc 00007f94b93ab050 + 0x69 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean)), calling (MethodDesc 00007f94b93ab058 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean))
00007F943E7FA9E0 00007f94ba8f3a7e (MethodDesc 00007f94bd39d2b0 + 0x21e Microsoft.Build.BackEnd.MSBuild+<BuildProjectsInParallel>d__77.MoveNext()), calling (MethodDesc 00007f94b93ab050 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean))
00007F943E7FA9F0 00007f9532eca89d libcoreclr.so!ThreadNative::GetThreadState(ThreadBaseObject*) + 0x16d, calling libcoreclr.so!Frame::PopIfChained()
00007F943E7FAA80 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FAA90 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FAAE0 00007f94bd3af990 (MethodDesc 00007f94bd39d5c0 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Boolean, System.Private.CoreLib],[Microsoft.Build.BackEnd.MSBuild+<BuildProjectsInParallel>d__77, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FAAF0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7FAB10 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FAB50 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FABB0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FABF0 00007f94b991fc1a (MethodDesc 00007f94b93adb68 + 0x8a System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FAC20 00007f94b9907dbf (MethodDesc 00007f94b93ab058 + 0x3f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean)), calling (MethodDesc 00007f94b93adb68 + 0 System.Threading.Tasks.Task`1[[System.Boolean, System.Private.CoreLib]].TrySetResult(Boolean))
00007F943E7FAC40 00007f94b9908219 (MethodDesc 00007f94b93ab050 + 0x69 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean)), calling (MethodDesc 00007f94b93ab058 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetExistingTaskResult(Boolean))
00007F943E7FAC60 00007f94ba8f4d3e (MethodDesc 00007f94bc8ab338 + 0x122e Microsoft.Build.BackEnd.MSBuild+<ExecuteTargets>d__80.MoveNext()), calling (MethodDesc 00007f94b93ab050 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.Boolean, System.Private.CoreLib]].SetResult(Boolean))
00007F943E7FAC90 00007f9532ea7cf2 libcoreclr.so!VirtualCallStubManager::GetResolveCacheElem(void*, unsigned long, void*) + 0x112
00007F943E7FAD80 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FAD90 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FADE0 00007f94bd3af740 (MethodDesc 00007f94bc8d1ac0 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Boolean, System.Private.CoreLib],[Microsoft.Build.BackEnd.MSBuild+<ExecuteTargets>d__80, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FADF0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7FAE10 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FAE50 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FAEB0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FAEF0 00007f94bd3af05a (MethodDesc 00007f94bc8abd40 + 0x9a System.Threading.Tasks.Task`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].TrySetResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FAF30 00007f94bd3aef84 (MethodDesc 00007f94bc8aba00 + 0x54 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetExistingTaskResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94bc8abd40 + 0 System.Threading.Tasks.Task`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].TrySetResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FAF70 00007f94bc6e235f (MethodDesc 00007f94bc8ab9f8 + 0x9f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94bc8aba00 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetExistingTaskResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FAFC0 00007f94ba90046b (MethodDesc 00007f94bc8ab8b8 + 0x4bb Microsoft.Build.BackEnd.TaskHost+<InternalBuildProjects>d__46.MoveNext()), calling (MethodDesc 00007f94bc8ab9f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FAFD0 00007f9532eca89d libcoreclr.so!ThreadNative::GetThreadState(ThreadBaseObject*) + 0x16d, calling libcoreclr.so!Frame::PopIfChained()
00007F943E7FB060 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB070 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FB0C0 00007f94bd3af0e0 (MethodDesc 00007f94bc8bff28 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework],[Microsoft.Build.BackEnd.TaskHost+<InternalBuildProjects>d__46, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB0D0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7FB0F0 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FB130 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FB190 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FB1D0 00007f94bd3af05a (MethodDesc 00007f94bc8abd40 + 0x9a System.Threading.Tasks.Task`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].TrySetResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FB210 00007f94bd3aef84 (MethodDesc 00007f94bc8aba00 + 0x54 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetExistingTaskResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94bc8abd40 + 0 System.Threading.Tasks.Task`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].TrySetResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FB250 00007f94bc6e235f (MethodDesc 00007f94bc8ab9f8 + 0x9f System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetResult(Microsoft.Build.Framework.BuildEngineResult)), calling (MethodDesc 00007f94bc8aba00 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetExistingTaskResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FB2A0 00007f94ba9010fe (MethodDesc 00007f94bc8ba818 + 0xc0e Microsoft.Build.BackEnd.TaskHost+<BuildProjectFilesInParallelAsync>d__48.MoveNext()), calling (MethodDesc 00007f94bc8ab9f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework]].SetResult(Microsoft.Build.Framework.BuildEngineResult))
00007F943E7FB380 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB390 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FB3E0 00007f94bd3aed30 (MethodDesc 00007f94bc8bf5a8 + 0x50 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[Microsoft.Build.Framework.BuildEngineResult, Microsoft.Build.Framework],[Microsoft.Build.BackEnd.TaskHost+<BuildProjectFilesInParallelAsync>d__48, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB3F0 00007f94b98ca0c0 (MethodDesc 00007f94b93a2958 + 0x30 System.Threading.Tasks.AwaitTaskContinuation.get_IsValidLocationForInlining()), calling (MethodDesc 00007f94b93a1738 + 0 System.Threading.Tasks.TaskScheduler.get_InternalCurrent())
00007F943E7FB410 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FB450 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FB4B0 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FB4F0 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FB520 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7FB550 00007f94ba8f8def (MethodDesc 00007f94bc8bb108 + 0x51f Microsoft.Build.BackEnd.RequestBuilder+<BuildProjects>d__33.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7FB5F0 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB600 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FB650 00007f94bd3aea91 (MethodDesc 00007f94bc8bef10 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.RequestBuilder+<BuildProjects>d__33, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB680 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FB6C0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FB6E0 00007f94b9aa739e (MethodDesc 00007f94b93dccb0 + 0x8e System.Collections.Generic.Dictionary`2+ValueCollection[[System.Int32, System.Private.CoreLib],[System.__Canon, System.Private.CoreLib]].CopyTo(System.__Canon[], Int32)), calling libcoreclr.so!JIT_Stelem_Ref
00007F943E7FB720 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FB760 00007f94b98cfd46 (MethodDesc 00007f94b93a3d08 + 0x96 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FB790 00007f94b990c60b (MethodDesc 00007f94b93ab700 + 0x4b System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetExistingTaskResult(System.__Canon)), calling (MethodDesc 00007f94b93a3d08 + 0 System.Threading.Tasks.Task`1[[System.__Canon, System.Private.CoreLib]].TrySetResult(System.__Canon))
00007F943E7FB7C0 00007f94ba8f99b0 (MethodDesc 00007f94bc8bb528 + 0x2f0 Microsoft.Build.BackEnd.RequestBuilder+<StartNewBuildRequests>d__51.MoveNext()), calling (MethodDesc 00007f94b93ab6f8 + 0 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[System.__Canon, System.Private.CoreLib]].SetResult(System.__Canon))
00007F943E7FB800 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB810 00007f9532f03a96 libcoreclr.so!JIT_GetSharedGCThreadStaticBase(unsigned long, unsigned int) + 0x36, calling libcoreclr.so!__tls_get_addr
00007F943E7FB860 00007f94bd3ae7e1 (MethodDesc 00007f94bc8be3f8 + 0x61 System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.__Canon, System.Private.CoreLib],[Microsoft.Build.BackEnd.RequestBuilder+<StartNewBuildRequests>d__51, Microsoft.Build]].MoveNext()), calling (MethodDesc 00007f94b9393d68 + 0 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FB890 00007f94b98ca637 (MethodDesc 00007f94b93a29c8 + 0x97 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)), calling 00007f94b9216e90
00007F943E7FB8D0 00007f94b988098e (MethodDesc 00007f94b939b4e8 + 0x12e System.Threading.Tasks.Task.RunContinuations(System.Object)), calling (MethodDesc 00007f94b93a29c8 + 0 System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean))
00007F943E7FB8E0 00007f94b9868452 (MethodDesc 00007f94b9398e88 + 0x132 System.Threading.AsyncLocal`1[[System.__Canon, System.Private.CoreLib]].System.Threading.IAsyncLocal.OnValueChanged(System.Object, System.Object, Boolean))
00007F943E7FB930 00007f9532ed1677 libcoreclr.so!COMInterlocked::ExchangeObject(void**, void*) + 0x17, calling libcoreclr.so!ErectWriteBarrier(Object**, Object*)
00007F943E7FB970 00007f94b9887a5a (MethodDesc 00007f94b939c078 + 0x8a System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib]].TrySetResult(Int32)), calling (MethodDesc 00007f94b939b4d8 + 0 System.Threading.Tasks.Task.FinishContinuations())
00007F943E7FB9A0 00007f94bc706457 (MethodDesc 00007f94bc8835f8 + 0x17 System.Threading.Tasks.TaskCompletionSource`1[[System.Int32, System.Private.CoreLib]].TrySetResult(Int32)), calling (MethodDesc 00007f94b939c078 + 0 System.Threading.Tasks.Task`1[[System.Int32, System.Private.CoreLib]].TrySetResult(Int32))
00007F943E7FB9C0 00007f94ba906274 (MethodDesc 00007f94bc8bde20 + 0x84 Microsoft.Build.Shared.AwaitExtensions+<>c__DisplayClass7_2.<ToTask>b__0(System.Object, Boolean)), calling (MethodDesc 00007f94bc8835f8 + 0 System.Threading.Tasks.TaskCompletionSource`1[[System.Int32, System.Private.CoreLib]].TrySetResult(Int32))
00007F943E7FBA00 00007f94b983cf9d (MethodDesc 00007f94b9393d68 + 0x8d System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object))
00007F943E7FBA60 00007f9532f9be7f libcoreclr.so!CallDescrWorkerInternal + 0x7c
00007F943E7FBA80 00007f9532ebbd62 libcoreclr.so!DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int) + 0xf2, calling libcoreclr.so!CallDescrWorkerInternal
00007F943E7FBB10 00007f953303c319 libcoreclr.so!RegisterWaitForSingleObjectCallback_Worker(void*) + 0xc9, calling libcoreclr.so!DispatchCallSimple(unsigned long*, unsigned int, unsigned long, unsigned int)
00007F943E7FBBB0 00007f9532e8dd0d libcoreclr.so!ManagedThreadBase_DispatchOuter(ManagedThreadCallState*) + 0x19d
00007F943E7FBCD0 00007f9532e8e470 libcoreclr.so!ManagedThreadBase::ThreadPool(ADID, void (*)(void*), void*) + 0x40, calling libcoreclr.so!ManagedThreadBase_DispatchOuter(ManagedThreadCallState*)
00007F943E7FBD20 00007f953303c17a libcoreclr.so!RegisterWaitForSingleObjectCallback(void*, unsigned char) + 0x10a, calling libcoreclr.so!ManagedThreadBase::ThreadPool(ADID, void (*)(void*), void*)
00007F943E7FBD70 00007f9532eabcfa libcoreclr.so!ThreadpoolMgr::AsyncCallbackCompletion(void*) + 0x12a
00007F943E7FBE10 00007f9532eacb73 libcoreclr.so!ThreadpoolMgr::WorkerThreadStart(void*) + 0x4f3
00007F943E7FBE70 00007f9533223b82 libcoreclr.so!CorUnix::CPalThread::ThreadEntry(void*) + 0x132
00007F943E7FBFD0 00007f9533d9cbcd libc.so.6!clone + 0x6d
repro 2 ReinitializeConsole stack
(lldb) bt
* thread dotnet/corefx#1: tid = 93142, 0x00007f59714dd4bd libpthread.so.0`__GI___write + 45, name = 'dotnet', stop reason = signal SIGSTOP
  * frame #0: 0x00007f59714dd4bd libpthread.so.0`__GI___write + 45
    frame dotnet/corefx#1: 0x00007f595fb16fdf System.Native.so`ReinitializeConsole + 95
    frame dotnet/corefx#2: 0x00007f595fb1bd42 System.Native.so`___lldb_unnamed_symbol3$$System.Native.so + 50
    frame dotnet/corefx#3: 0x00007f59714de390 libpthread.so.0`___lldb_unnamed_symbol1$$libpthread.so.0 + 1
    frame dotnet/corefx#4: 0x00007f59714da35e libpthread.so.0`__pthread_cond_wait + 190
    frame dotnet/corefx#5: 0x00007f596ffcc4f2 libcoreclr.so`CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 354
    frame dotnet/corefx#6: 0x00007f596ffcc0d4 libcoreclr.so`CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 388
    frame dotnet/corefx#7: 0x00007f596ffd0aa4 libcoreclr.so`CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 1812
    frame dotnet/corefx#8: 0x00007f596ffd0e21 libcoreclr.so`WaitForMultipleObjectsEx + 81
    frame dotnet/corefx#9: 0x00007f596fc3c7c1 libcoreclr.so`Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 1025
    frame dotnet/corefx#10: 0x00007f596fc37710 libcoreclr.so`Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 80
    frame dotnet/corefx#11: 0x00007f596fc88290 libcoreclr.so`WaitHandleNative::CorWaitOneNative(SafeHandle*, int, bool, bool) + 320
    frame dotnet/corefx#12: 0x00007f58f66c74ac
    frame dotnet/corefx#13: 0x00007f58f75f806d
    frame dotnet/corefx#14: 0x00007f58f6c767bc
    frame dotnet/corefx#15: 0x00007f58f6c76350
    frame dotnet/corefx#16: 0x00007f58f6c7518a
    frame dotnet/runtime#13850: 0x00007f58f6c74968
    frame dotnet/runtime#13851: 0x00007f596fd4fecf libcoreclr.so`CallDescrWorkerInternal + 124
    frame dotnet/corefx#19: 0x00007f596fc705fc libcoreclr.so`MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 940
    frame dotnet/runtime#13852: 0x00007f596fd71087 libcoreclr.so`RunMain(MethodDesc*, short, int*, PtrArray**) + 775
    frame dotnet/corefx#21: 0x00007f596fd71305 libcoreclr.so`Assembly::ExecuteMainMethod(PtrArray**, int) + 229
    frame dotnet/runtime#13853: 0x00007f596fbb9eb2 libcoreclr.so`CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 482
    frame dotnet/corefx#23: 0x00007f596fb94fd4 libcoreclr.so`coreclr_execute_assembly + 212
    frame dotnet/corefx#24: 0x00007f597036c87d libhostpolicy.so`___lldb_unnamed_symbol1550$$libhostpolicy.so + 125
    frame dotnet/corefx#25: 0x00007f597035f2fd libhostpolicy.so`___lldb_unnamed_symbol1269$$libhostpolicy.so + 6781
    frame dotnet/runtime#13854: 0x00007f597035fb4c libhostpolicy.so`corehost_main + 236
    frame dotnet/corefx#27: 0x00007f5970612cbf libhostfxr.so`___lldb_unnamed_symbol1564$$libhostfxr.so + 207
    frame dotnet/corefx#28: 0x00007f597061e36c libhostfxr.so`___lldb_unnamed_symbol1609$$libhostfxr.so + 5436
    frame dotnet/corefx#29: 0x00007f597061f4c5 libhostfxr.so`___lldb_unnamed_symbol1612$$libhostfxr.so + 437
    frame dotnet/corefx#30: 0x00007f597061ea39 libhostfxr.so`___lldb_unnamed_symbol1610$$libhostfxr.so + 1001
    frame dotnet/corefx#31: 0x00007f5970612f0c libhostfxr.so`hostfxr_main_startupinfo + 156
    frame dotnet/corefx#32: 0x000000000040ac74 dotnet`___lldb_unnamed_symbol30$$dotnet + 1572
    frame dotnet/corefx#33: 0x000000000040af05 dotnet`___lldb_unnamed_symbol31$$dotnet + 165
    frame dotnet/corefx#34: 0x00007f5970882830 libc.so.6`__libc_start_main(main=(dotnet`___lldb_unnamed_symbol31$$dotnet), argc=22, argv=0x00007ffff5faf708, init=<unavailable>, fini=<unavailable>, rtld_fini=<unavailable>, stack_end=0x00007ffff5faf6f8) + 240 at libc-start.c:291
    frame dotnet/runtime#13855: 0x0000000000408a54 dotnet`_start + 41
(lldb) dumpstack
OS Thread Id: 0x16bd6 (1)
TEB information is not available so a stack size of 0xFFFF is assumed
Current frame: libpthread.so.0!__GI___write + 0x2d
Child-SP         RetAddr          Caller, Callee
00007FFFF5FAC950 00007f595fb16fdf System.Native.so!ReinitializeConsole + 0x5f, calling System.Native.so!write
00007FFFF5FAC970 00007f595fb1bd42 System.Native.so!___lldb_unnamed_symbol3$$System.Native.so + 0x32, calling System.Native.so!ReinitializeConsole
00007FFFF5FACB30 00007f59708e653c libc.so.6!__GI___libc_free + 0x4c [/build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:2969], calling libc.so.6!_int_free [/build/glibc-Cl5G7W/glibc-2.23/malloc/malloc.c:3841]
00007FFFF5FACB50 00007f596ffc7618 libcoreclr.so!LeaveCriticalSection + 0x18, calling libcoreclr.so!pthread_getspecific
00007FFFF5FACEE0 00007f596fc237fe libcoreclr.so!SigPointer::GetTypeHandleThrowing(Module*, SigTypeContext const*, ClassLoader::LoadTypesFlag, ClassLoadLevel, int, Substitution const*, ZapSig::Context const*) const + 0x13ce, calling libcoreclr.so!ClassLoader::LoadGenericInstantiationThrowing(Module*, unsigned int, Instantiation, ClassLoader::LoadTypesFlag, ClassLoadLevel, InstantiationContext const*, int)
00007FFFF5FACEF0 00007f596fc23774 libcoreclr.so!SigPointer::GetTypeHandleThrowing(Module*, SigTypeContext const*, ClassLoader::LoadTypesFlag, ClassLoadLevel, int, Substitution const*, ZapSig::Context const*) const + 0x1344, calling libcoreclr.so!SigParser::SkipExactlyOne()
00007FFFF5FACF00 00007f596fc23317 libcoreclr.so!SigPointer::GetTypeHandleThrowing(Module*, SigTypeContext const*, ClassLoader::LoadTypesFlag, ClassLoadLevel, int, Substitution const*, ZapSig::Context const*) const + 0xee7, calling libcoreclr.so!GetOsPageSize()
00007FFFF5FACF70 00007f59714da316 libpthread.so.0!__pthread_cond_wait + 0x76, calling libpthread.so.0!__pthread_enable_asynccancel
00007FFFF5FACFA0 00007f596ffcc4f2 libcoreclr.so!CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*) + 0x162, calling libcoreclr.so!pthread_cond_wait
00007FFFF5FAD000 00007f596ffcc0d4 libcoreclr.so!CorUnix::CPalSynchronizationManager::BlockThread(CorUnix::CPalThread*, unsigned int, bool, bool, CorUnix::ThreadWakeupReason*, unsigned int*) + 0x184, calling libcoreclr.so!CorUnix::CPalSynchronizationManager::ThreadNativeWait(CorUnix::_ThreadNativeWaitData*, unsigned int, CorUnix::ThreadWakeupReason*, unsigned int*)
00007FFFF5FAD060 00007f596ffd0aa4 libcoreclr.so!CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int) + 0x714
00007FFFF5FAD1F0 00007f596ffd0e21 libcoreclr.so!WaitForMultipleObjectsEx + 0x51, calling libcoreclr.so!CorUnix::InternalWaitForMultipleObjectsEx(CorUnix::CPalThread*, unsigned int, void* const*, int, unsigned int, int, int)
00007FFFF5FAD230 00007f596fc3c7c1 libcoreclr.so!Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode) + 0x401, calling libcoreclr.so!WaitForMultipleObjectsEx
00007FFFF5FAD320 00007f596fc37710 libcoreclr.so!Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*) + 0x50, calling libcoreclr.so!Thread::DoAppropriateWaitWorker(int, void**, int, unsigned int, WaitMode)
00007FFFF5FAD360 00007f596fc88290 libcoreclr.so!WaitHandleNative::CorWaitOneNative(SafeHandle*, int, bool, bool) + 0x140, calling libcoreclr.so!Thread::DoAppropriateWait(int, void**, int, unsigned int, WaitMode, PendingSync*)
00007FFFF5FAD3F8 00007f58f66c74ac (MethodDesc 00007f58f616acd8 + 0x1c System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)), calling 00007f596fc88150 (stub for System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean))
00007FFFF5FAD4A0 00007f596fc881f1 libcoreclr.so!WaitHandleNative::CorWaitOneNative(SafeHandle*, int, bool, bool) + 0xa1, calling libcoreclr.so!LazyMachStateCaptureState
00007FFFF5FAD4F0 00007f58f66c74ac (MethodDesc 00007f58f616acd8 + 0x1c System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)), calling 00007f596fc88150 (stub for System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean))
00007FFFF5FAD510 00007f58f75f806d (MethodDesc 00007f58f7d360f0 + 0x8d Microsoft.Build.Execution.BuildSubmission.Execute()), calling 00007f58f5f1ef40
00007FFFF5FAD540 00007f58f6c767bc (MethodDesc 00007f58f5f066f8 + 0xbc Microsoft.Build.CommandLine.MSBuildApp.ExecuteBuild(Microsoft.Build.Execution.BuildManager, Microsoft.Build.Execution.BuildRequestData)), calling 00007f58f6c25cdd
00007FFFF5FAD590 00007f58f6c76350 (MethodDesc 00007f58f5f066e8 + 0x8b0 Microsoft.Build.CommandLine.MSBuildApp.BuildProject(System.String, System.String[], System.String, System.Collections.Generic.Dictionary`2<System.String,System.String>, System.Collections.Generic.Dictionary`2<System.String,System.String>, Microsoft.Build.Framework.ILogger[], Microsoft.Build.Framework.LoggerVerbosity, Microsoft.Build.CommandLine.DistributedLoggerRecord[], Int32, Boolean, System.IO.TextWriter, Boolean, System.Collections.Generic.ISet`1<System.String>, System.Collections.Generic.ISet`1<System.String>, Boolean, Microsoft.Build.Logging.ProfilerLogger, Boolean)), calling 00007f58f6c25ccd
00007FFFF5FAD680 00007f58f6c7518a (MethodDesc 00007f58f5f066b8 + 0x40a Microsoft.Build.CommandLine.MSBuildApp.Execute(System.String[])), calling 00007f58f6c25ccd
00007FFFF5FAD810 00007f58f6c74968 (MethodDesc 00007f58f5f06678 + 0x68 Microsoft.Build.CommandLine.MSBuildApp.Main(System.String[])), calling 00007f58f6c25ccd
00007FFFF5FAD840 00007f596fd4fecf libcoreclr.so!CallDescrWorkerInternal + 0x7c
00007FFFF5FAD860 00007f596fc705fc libcoreclr.so!MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 0x3ac, calling libcoreclr.so!CallDescrWorkerInternal
00007FFFF5FAD880 00007f596ff0f0fb libcoreclr.so!MDInternalRO::GetSigOfMethodDef(unsigned int, unsigned int*, unsigned char const**) + 0xdb, calling libcoreclr.so!StgBlobPoolReadOnly::GetBlob(unsigned int, MetaData::DataBlob*)
00007FFFF5FAD8F0 00007f596fbff283 libcoreclr.so!MethodDesc::RequiresInstArg() + 0x13, calling libcoreclr.so!MethodDesc::IsSharedByGenericInstantiations()
00007FFFF5FAD920 00007f596fc2451d libcoreclr.so!MetaSig::MetaSig(MethodDesc*, TypeHandle) + 0xed, calling libcoreclr.so!MethodDesc::RequiresInstArg()
00007FFFF5FAD950 00007f596fc702f6 libcoreclr.so!MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int) + 0xa6, calling libcoreclr.so!ArgIteratorTemplate<ArgIteratorBase>::SizeOfArgStack()
00007FFFF5FADA30 00007f596fd71087 libcoreclr.so!RunMain(MethodDesc*, short, int*, PtrArray**) + 0x307, calling libcoreclr.so!MethodDescCallSite::CallTargetWorker(unsigned long const*, unsigned long*, int)
00007FFFF5FADAC0 00007f596fcb603a libcoreclr.so!JIT_GetSharedGCStaticBase_Helper + 0x8a, calling libcoreclr.so!LazyMachStateCaptureState
00007FFFF5FADC40 00007f596fd71305 libcoreclr.so!Assembly::ExecuteMainMethod(PtrArray**, int) + 0xe5, calling libcoreclr.so!RunMain(MethodDesc*, short, int*, PtrArray**)
00007FFFF5FADC60 00007f596fe6d5ae libcoreclr.so!WKS::gc_heap::a_fit_segment_end_p(int, WKS::heap_segment*, unsigned long, alloc_context*, int, int*) + 0x37e, calling libcoreclr.so!WKS::gc_heap::adjust_limit_clr(unsigned char*, unsigned long, alloc_context*, WKS::heap_segment*, int, int)
00007FFFF5FADCE0 00007f596fe6dd3a libcoreclr.so!WKS::gc_heap::allocate_small(int, unsigned long, alloc_context*, int) + 0x15a, calling libcoreclr.so!WKS::gc_heap::a_fit_segment_end_p(int, WKS::heap_segment*, unsigned long, alloc_context*, int, int*)
00007FFFF5FADD60 00007f596fe6f0f5 libcoreclr.so!WKS::gc_heap::try_allocate_more_space(alloc_context*, unsigned long, int) + 0x205, calling libcoreclr.so!WKS::gc_heap::allocate_small(int, unsigned long, alloc_context*, int)
00007FFFF5FADDB0 00007f596fe92d7d libcoreclr.so!WKS::GCHeap::Alloc(gc_alloc_context*, unsigned long, unsigned int) + 0x9d, calling libcoreclr.so!WKS::gc_heap::try_allocate_more_space(alloc_context*, unsigned long, int)
00007FFFF5FADE00 00007f596fca860d libcoreclr.so!SlowAllocateString(unsigned int) + 0x1dd, calling libcoreclr.so!ETW::TypeSystemLog::IsHeapAllocEventEnabled()
00007FFFF5FADEB0 00007f596fbb9eb2 libcoreclr.so!CorHost2::ExecuteAssembly(unsigned int, char16_t const*, int, char16_t const**, unsigned int*) + 0x1e2, calling libcoreclr.so!Assembly::ExecuteMainMethod(PtrArray**, int)
00007FFFF5FADF60 00007f596fb94fd4 libcoreclr.so!coreclr_execute_assembly + 0xd4
00007FFFF5FADFC0 00007f597036c87d libhostpolicy.so!___lldb_unnamed_symbol1550$$libhostpolicy.so + 0x7d
00007FFFF5FAE000 00007f597035f2fd libhostpolicy.so!___lldb_unnamed_symbol1269$$libhostpolicy.so + 0x1a7d, calling libhostpolicy.so!___lldb_unnamed_symbol1550$$libhostpolicy.so
00007FFFF5FAE3C0 00007f597121a0b4 libstdc++.so.6!std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() + 0x64, calling libstdc++.so.6!std::string::_Rep::_M_destroy(std::allocator<char> const&)
00007FFFF5FAE3E0 00007f5970331f88 libhostpolicy.so!___lldb_unnamed_symbol80$$libhostpolicy.so + 0xa8, calling libhostpolicy.so!std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()
00007FFFF5FAE720 00007f597035fb4c libhostpolicy.so!corehost_main + 0xec, calling libhostpolicy.so!___lldb_unnamed_symbol1269$$libhostpolicy.so
00007FFFF5FAE820 00007f5970612cbf libhostfxr.so!___lldb_unnamed_symbol1564$$libhostfxr.so + 0xcf
00007FFFF5FAE8A0 00007f597061e36c libhostfxr.so!___lldb_unnamed_symbol1609$$libhostfxr.so + 0x153c, calling libhostfxr.so!___lldb_unnamed_symbol1564$$libhostfxr.so
00007FFFF5FAEA60 00007f59718f7fe1 ld-linux-x86-64.so.2!___lldb_unnamed_symbol32$$ld-linux-x86-64.so.2 + 0x171, calling ld-linux-x86-64.so.2!___lldb_unnamed_symbol64$$ld-linux-x86-64.so.2
00007FFFF5FAEF60 00007f597062aa8f libhostfxr.so!__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > std::copy<char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > >(char const**, char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >) + 0x4f, calling libhostfxr.so!__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > std::__copy_move_a2<false, char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > >(char const**, char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >)
00007FFFF5FAEFB0 00007f597062a5a4 libhostfxr.so!void std::vector<char const*, std::allocator<char const*> >::_M_range_insert<char const**>(__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >, char const**, char const**, std::forward_iterator_tag) + 0x294, calling libhostfxr.so!__gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > std::copy<char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > > >(char const**, char const**, __gnu_cxx::__normal_iterator<char const**, std::vector<char const*, std::allocator<char const*> > >)
00007FFFF5FAF220 00007f597061f4c5 libhostfxr.so!___lldb_unnamed_symbol1612$$libhostfxr.so + 0x1b5, calling libhostfxr.so!___lldb_unnamed_symbol1609$$libhostfxr.so
00007FFFF5FAF320 00007f597061ea39 libhostfxr.so!___lldb_unnamed_symbol1610$$libhostfxr.so + 0x3e9, calling libhostfxr.so!___lldb_unnamed_symbol1612$$libhostfxr.so
00007FFFF5FAF370 00007f597121bd01 libstdc++.so.6!std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) + 0x21, calling libstdc++.so.6!strlen
00007FFFF5FAF440 00007f5970612f0c libhostfxr.so!hostfxr_main_startupinfo + 0x9c, calling libhostfxr.so!___lldb_unnamed_symbol1610$$libhostfxr.so
00007FFFF5FAF4D0 000000000040ac74 dotnet!___lldb_unnamed_symbol30$$dotnet + 0x624
00007FFFF5FAF570 000000000041123b dotnet!___lldb_unnamed_symbol101$$dotnet + 0x4b, calling dotnet!std::string::length() const
00007FFFF5FAF5F0 000000000040af05 dotnet!___lldb_unnamed_symbol31$$dotnet + 0xa5, calling dotnet!___lldb_unnamed_symbol30$$dotnet
00007FFFF5FAF620 00007f5970882830 libc.so.6!__libc_start_main + 0xf0 [/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325]
00007FFFF5FAF6B0 00007f59718fe7cb ld-linux-x86-64.so.2!___lldb_unnamed_symbol55$$ld-linux-x86-64.so.2 + 0x8b, calling ld-linux-x86-64.so.2!___lldb_unnamed_symbol54$$ld-linux-x86-64.so.2
00007FFFF5FAF6E0 0000000000408a54 dotnet!_start + 0x29, calling dotnet!__libc_start_main

I straced the process and sent it SIGCHLD, but it doesn’t call waitpid.

$ sudo strace -e waitid,waitpid -f -p 93142
strace: Process 93142 attached with 15 threads
[pid 93142] --- SIGCHLD {si_signo=SIGCHLD, si_code=SI_USER, si_pid=0, si_uid=1004} ---
^Cstrace: Process 93142 detached
strace: Process 93143 detached
strace: Process 93144 detached
strace: Process 93145 detached
strace: Process 93146 detached
strace: Process 93147 detached
strace: Process 93148 detached
strace: Process 93149 detached
strace: Process 93153 detached
strace: Process 93158 detached
strace: Process 93171 detached
strace: Process 93255 detached
strace: Process 93256 detached
strace: Process 93393 detached
strace: Process 93411 detached

$ sudo strace -e trace=all -f -p 93142
strace: Process 93142 attached with 15 threads
[pid 93411] write(29, "\n", 1 <unfinished ...>
[pid 93393] futex(0x7f588c005b54, FUTEX_WAIT_PRIVATE, 813, NULL <unfinished ...>
[pid 93256] epoll_wait(85,  <unfinished ...>
[pid 93255] futex(0x7f58a4095024, FUTEX_WAIT_PRIVATE, 283, NULL <unfinished ...>
[pid 93171] futex(0x7f58a4085824, FUTEX_WAIT_PRIVATE, 339, NULL <unfinished ...>
[pid 93158] futex(0x7f58bc00f914, FUTEX_WAIT_PRIVATE, 143, NULL <unfinished ...>
[pid 93149] read(31,  <unfinished ...>
[pid 93153] write(1, "\33[?1h\33=", 7 <unfinished ...>
[pid 93148] restart_syscall(<... resuming interrupted restart_syscall ...> <unfinished ...>
[pid 93147] futex(0x1f01584, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
[pid 93146] open("/tmp/clr-debug-pipe-447-531891707-in", O_RDONLY <unfinished ...>
[pid 93145] write(1, "\33[?1h\33=", 7 <unfinished ...>
[pid 93144] futex(0x7f5971b11000, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 93143] futex(0x7f5971b12000, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 93142] write(1, "\33[?1h\33=", 7 <unfinished ...>
[pid 93148] <... restart_syscall resumed> ) = -1 ETIMEDOUT (Connection timed out)
[pid 93148] futex(0x1eea498, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 93148] clock_gettime(CLOCK_MONOTONIC, {5324271, 768423582}) = 0
[pid 93148] futex(0x1eea4c4, FUTEX_WAIT_BITSET_PRIVATE, 1335, {5324281, 768423582}, ffffffff <unfinished ...>
[pid 93146] <... open resumed> )        = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
[pid 93146] --- SIGCHLD {si_signo=SIGCHLD, si_code=SI_USER, si_pid=0, si_uid=1004} ---
[pid 93146] write(1, "\33[?1h\33=", 7 <unfinished ...>
[pid 93148] <... futex resumed> )       = -1 ETIMEDOUT (Connection timed out)
[pid 93148] futex(0x1eea498, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 93148] clock_gettime(CLOCK_MONOTONIC, {5324281, 768701382}) = 0
[pid 93148] futex(0x1eea4c4, FUTEX_WAIT_BITSET_PRIVATE, 1337, {5324291, 768701382}, ffffffff

It’s a bit hard to see where in ReinitializeConsole things get stuck because of inlining but I think it’s here

https://github.com/dotnet/corefx/blob/9f00f554483802a1ac295ad6260557fb125e0b31/src/Native/Unix/System.Native/pal_console.c#L54

writing the terminfo string to stdout.

ReinitializeConsole disassembly
(lldb) disassemble --frame
System.Native.so`ReinitializeConsole:
    0x7f952bee9ef0 <+0>:   pushq  %r14
    0x7f952bee9ef2 <+2>:   pushq  %rbx
    0x7f952bee9ef3 <+3>:   pushq  %rax
    0x7f952bee9ef4 <+4>:   cmpb   $0x1, 0x2088be(%rip)
    0x7f952bee9efb <+11>:  jne    0x7f952bee9f2b            ; <+59>
    0x7f952bee9efd <+13>:  movl   0x20893d(%rip), %eax
    0x7f952bee9f03 <+19>:  movl   %eax, %ecx
    0x7f952bee9f05 <+21>:  andl   $-0x2, %ecx
    0x7f952bee9f08 <+24>:  orl    $0x1, %eax
    0x7f952bee9f0b <+27>:  cmpb   $0x0, 0x2087de(%rip)
    0x7f952bee9f12 <+34>:  leaq   0x20891b(%rip), %rdx
    0x7f952bee9f19 <+41>:  cmovel %ecx, %eax
    0x7f952bee9f1c <+44>:  movl   %eax, 0x20891e(%rip)
    0x7f952bee9f22 <+50>:  xorl   %edi, %edi
    0x7f952bee9f24 <+52>:  xorl   %esi, %esi
    0x7f952bee9f26 <+54>:  callq  0x7f952bee8f90            ; symbol stub for: tcsetattr
    0x7f952bee9f2b <+59>:  movq   0x20887e(%rip), %rbx
    0x7f952bee9f32 <+66>:  testq  %rbx, %rbx
    0x7f952bee9f35 <+69>:  je     0x7f952bee9f8a            ; <+154>
    0x7f952bee9f37 <+71>:  movq   %rbx, %rdi
    0x7f952bee9f3a <+74>:  callq  0x7f952bee92a0            ; symbol stub for: strlen
    0x7f952bee9f3f <+79>:  movl   $0x1, %edi
    0x7f952bee9f44 <+84>:  movq   %rbx, %rsi
    0x7f952bee9f47 <+87>:  movq   %rax, %rdx
    0x7f952bee9f4a <+90>:  callq  0x7f952bee9750            ; symbol stub for: write
->  0x7f952bee9f4f <+95>:  testq  %rax, %rax
    0x7f952bee9f52 <+98>:  jns    0x7f952bee9f8a            ; <+154>
    0x7f952bee9f54 <+100>: callq  0x7f952bee9580            ; symbol stub for: __errno_location
    0x7f952bee9f59 <+105>: movq   %rax, %r14
    0x7f952bee9f5c <+108>: nopl   (%rax)
    0x7f952bee9f60 <+112>: cmpl   $0x4, (%r14)
    0x7f952bee9f64 <+116>: jne    0x7f952bee9f8a            ; <+154>
    0x7f952bee9f66 <+118>: movq   0x208843(%rip), %rbx
    0x7f952bee9f6d <+125>: movq   %rbx, %rdi
    0x7f952bee9f70 <+128>: callq  0x7f952bee92a0            ; symbol stub for: strlen
    0x7f952bee9f75 <+133>: movl   $0x1, %edi
    0x7f952bee9f7a <+138>: movq   %rbx, %rsi
    0x7f952bee9f7d <+141>: movq   %rax, %rdx
    0x7f952bee9f80 <+144>: callq  0x7f952bee9750            ; symbol stub for: write
    0x7f952bee9f85 <+149>: testq  %rax, %rax
    0x7f952bee9f88 <+152>: js     0x7f952bee9f60            ; <+112>
    0x7f952bee9f8a <+154>: addq   $0x8, %rsp
    0x7f952bee9f8e <+158>: popq   %rbx
    0x7f952bee9f8f <+159>: popq   %r14
    0x7f952bee9f91 <+161>: retq

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 25 (25 by maintainers)

Commits related to this issue

Most upvoted comments

This is how the terminal works in a docker context:

Create container, allocate terminal (-t):

$ docker run -ti fedora /bin/bash
...

The id of this container is 81338bfd0463609f43274c696ff90febcbe6c296c5a43ef8f291f09b1857f79d.

As part of creating the container, docker created a shim process.

docker-containerd-shim -namespace moby -workdir /var/lib/docker/containerd/daemon/io.containerd.runtime.v1.linux/moby/81338bfd0463609f43274c696ff90febcbe6c296c5a43ef8f291f09b1857f79d -address /var/run/docker/containerd/docker-containerd.sock -containerd-binary /usr/bin/docker-containerd -runtime-root /var/run/docker/runtime-runc

This shim is the ‘terminal master’: it reads what comes from the standard out in the container. This is passed via a named FIFO init-stdout to the dockerd process:

# /run/docker/containerd/81338bfd0463609f43274c696ff90febcbe6c296c5a43ef8f291f09b1857f79d# ls -lah
total 0
drwxr-xr-x. 2 root root  80 Oct 18 15:42 .
drwx------. 4 root root 160 Oct 18 15:42 ..
prwx------. 1 root root   0 Oct 18 15:44 init-stdin
prwx------. 1 root root   0 Oct 18 15:44 init-stdout

I’m having another look at this.

In the kernel I see this: https://github.com/torvalds/linux/blob/bab5c80b211035739997ebd361a679fa85b39465/drivers/tty/vt/vt.c#L1814-L1815

/* console_lock is held */
static void set_mode(struct vc_data *vc, int on_off)

Because there is a lock involved, this may mean it is not safe to change the mode from a signal handler.

We can move the ReinitializeConsole call from the signal handler to the SignalHandlerLoop thread. This is functionally the same. Then we can observe if that solves the hanging cli builds.