Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

[CppCodeGen] Multithreading programs crash #6405

Open
kbaladurin opened this issue Sep 30, 2018 · 1 comment
Open

[CppCodeGen] Multithreading programs crash #6405

kbaladurin opened this issue Sep 30, 2018 · 1 comment

Comments

@kbaladurin
Copy link
Member

Following examples crashes in cpp codegen mode:

  • Example with System.Threading.Tasks.Task
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Hello
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            Task t1 = Task.Run(() =>
            {
                Console.WriteLine("Task");
            });

            Task.WaitAll(t1);

            Console.WriteLine("Main");
        }
    }
}
$ gdb --args /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello...done.
(gdb) r
Starting program: /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdeb41700 (LWP 13739)]
[New Thread 0x7fffde340700 (LWP 13740)]
[New Thread 0x7fffddb3f700 (LWP 13741)]

Thread 3 "Hello" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffde340700 (LWP 13740)]
0x00007ffff6b78428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff6b78428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff6b7a02a in __GI_abort () at abort.c:89
#2  0x0000000000f56a4c in Assert (expr=0xf9ce89 "m_pInstance->FindCodeManagerByAddress(m_ControlPC)", 
    file=0xf9cd9e "/media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp", line_num=316, message=0x0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/rhassert.cpp:25
#3  0x0000000000e88bf6 in StackFrameIterator::InternalInit (this=0x7fffde33de20, pThreadToWalk=0x7fffde3405e0, pFrame=0x7fffde33e040, dwFlags=10)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:316
#4  0x0000000000e8980b in StackFrameIterator::InternalInitForStackTrace (this=0x7fffde33de20) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:354
#5  0x0000000000e8ab1b in RhpSfiInit (pThis=0x7fffde33de20, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:1878
#6  0x000000000088a0b6 in System_Private_CoreLib::System::Runtime::InternalCalls::RhpSfiInit (pThis=0x7fffde33de20, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:1508
#7  0x000000000087edc5 in System_Private_CoreLib::System::Runtime::StackFrameIterator::Init (___this=0x7fffde33de20, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/StackFrameIterator.cs:33
#8  0x000000000087eb00 in System_Private_CoreLib::System::Runtime::RuntimeExports::RhpCalculateStackTraceWorker (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:348
#9  0x000000000087eefb in RhpCalculateStackTraceWorker (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:366
#10 0x0000000000e7c7d8 in RhpGetCurrentThreadStackTrace (pOutputBuffer=0x0, outputBufferLength=0) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/MiscHelpers.cpp:779
#11 0x000000000088a14b in System_Private_CoreLib::System::Runtime::RuntimeExports::_A_rawpinvoke_V_RhpGetCurrentThreadStackTrace (_a0=0x0, _a1=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/CalliIntrinsics.cs:21
#12 0x000000000087e9e0 in System_Private_CoreLib::System::Runtime::RuntimeExports::RhpGetCurrentThreadStackTrace (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/IntPtr.cs:68
#13 0x000000000087e96e in System_Private_CoreLib::System::Runtime::RuntimeExports::RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdebf0fd8)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:325
#14 0x000000000087ea25 in RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdebf0fd8) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:326
#15 0x0000000000905905 in System_Private_CoreLib::System::Runtime::RuntimeImports::RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdebf0fd8)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:963
#16 0x00000000008b8d72 in System_Private_CoreLib::System::Diagnostics::StackTrace::InitializeForThreadFrameIndex (___this=0x7fffdebf0fc0, skipFrames=0, needFileInfo=1 '\001')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Diagnostics/StackTrace.cs:124
#17 0x00000000008ac264 in System_Private_CoreLib::System::Diagnostics::StackTrace::_ctor_2 (___this=0x7fffdebf0fc0, skipFrames=0, needFileInfo=1 '\001')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Diagnostics/StackTrace.cs:61
#18 0x00000000008869b8 in System_Private_CoreLib::System::Diagnostics::Debug::Assert_1 (condition=0 '\000', message=0x7fffdeb43048, detailMessage=0x7fffdeb43048)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs:98
#19 0x00000000008774a3 in System_Private_CoreLib::System::Diagnostics::Debug::Assert (condition=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs:81
#20 0x0000000000be0a3e in System_Private_TypeLoader::Internal::TypeSystem::TypeDesc::SetRuntimeTypeHandleUnsafe (___this=0x7fffdebf0f30, runtimeTypeHandle=...)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.TypeLoader/src/Internal/TypeSystem/TypeDesc.Runtime.cs:35
#21 0x0000000000c5d3d7 in System_Private_TypeLoader::Internal::TypeSystem::CanonType::Initialize (___this=0x7fffdebf0f30)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.TypeLoader/src/Internal/TypeSystem/CanonTypes.Runtime.cs:17
#22 0x0000000000c4a617 in System_Private_TypeLoader::Internal::TypeSystem::CanonType::_ctor (___this=0x7fffdebf0f30, context=0x7fffdebf06a8)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Common/src/TypeSystem/Canon/CanonTypes.cs:136
#23 0x0000000000bdf34d in System_Private_TypeLoader::Internal::TypeSystem::TypeSystemContext::get_CanonType (___this=0x7fffdebf06a8)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Common/src/TypeSystem/Canon/TypeSystemContext.Canon.cs:25
#24 0x0000000000bc6903 in System_Private_TypeLoader::Internal::TypeSystem::TypeSystemContext::ResolveRuntimeTypeHandle (___this=0x7fffdebf06a8, rtth=...)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.TypeLoader/src/Internal/TypeSystem/TypeSystemContext.Runtime.cs:217
#25 0x0000000000c1dfb2 in System_Private_TypeLoader::Internal::Runtime::TypeLoader::TypeBuilder::TryBuildArrayType (elementTypeHandle=..., isMdArray=0 '\000', rank=-1, arrayTypeHandle=0x7fffde33f000)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeBuilder.cs:2002
#26 0x0000000000c0f4b2 in System_Private_TypeLoader::Internal::Runtime::TypeLoader::TypeLoaderEnvironment::TryGetArrayTypeForElementType (___this=0x7fffdeb43280, elementTypeHandle=..., 
    isMdArray=0 '\000', rank=-1, arrayTypeHandle=0x7fffde33f000)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.cs:410
#27 0x00000000004f73d3 in System_Private_Reflection_Execution::Internal::Reflection::Execution::ExecutionEnvironmentImplementation::TryGetArrayTypeForElementType (___this=0x7fffdeb43f70, 
    elementTypeHandle=..., arrayTypeHandle=0x7fffde33f000)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs:233
#28 0x0000000000b75232 in System_Private_Reflection_Core::System::Reflection::Runtime::TypeInfos::RuntimeArrayTypeInfo::GetRuntimeTypeHandleIfAny (elementType=0x7fffdeb56218, multiDim=0 '\000', rank=1)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/TypeUnifier.cs:224
#29 0x0000000000aff2f0 in System_Private_Reflection_Core::System::Reflection::Runtime::TypeInfos::RuntimeArrayTypeInfo::GetArrayTypeInfo (elementType=0x7fffdeb56218, multiDim=0 '\000', rank=1)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/TypeUnifier.cs:188
#30 0x0000000000ab650f in System_Private_Reflection_Core::System::Reflection::Runtime::General::TypeUnifier::GetArrayType (elementType=0x7fffdeb56218)
---Type <return> to continue, or q <return> to quit---
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/TypeUnifier.cs:42
#31 0x0000000000580668 in System_Private_Reflection_Core::System::Reflection::Runtime::TypeInfos::RuntimeTypeInfo::MakeArrayType (___this=0x7fffdeb56218)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/TypeInfos/RuntimeTypeInfo.cs:395
#32 0x0000000000a0f9ea in System_Private_CoreLib::System::Array::GetArrayTypeFromElementType (elementType=0x7fffdeb56218, multiDim=0 '\000', rank=1)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:192
#33 0x00000000009b3d5c in System_Private_CoreLib::System::Array::CreateSzArray (elementType=0x7fffdeb56218, length=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:164
#34 0x000000000098c5d9 in System_Private_CoreLib::System::Array::CreateInstance_0 (elementType=0x7fffdeb56218, length=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:83
#35 0x0000000000c50353 in System_Private_Reflection_Core::System::Reflection::Runtime::General::Helpers::InstantiateAsArray (cads=0x7fffdeb58c78, actualElementType=0x7fffdeb56218)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/Helpers.cs:199
#36 0x000000000057dcc8 in System_Private_Reflection_Core::System::Reflection::Runtime::TypeInfos::RuntimeTypeInfo::GetCustomAttributes_0 (___this=0x7fffdeb53420, attributeType=0x7fffdeb56218, 
    inherit=0 '\000') at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.Reflection.Core/src/System/Reflection/Runtime/General/LegacyCustomAttributeApis.cs:239
#37 0x0000000000bbc1cd in System_Private_CoreLib::System::Diagnostics::Tracing::EventSource::GetCustomAttributeHelper (member=0x7fffdeb53420, attributeType=0x7fffdeb56218, flags=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs:2854
#38 0x0000000000bb7556 in System_Private_CoreLib::System::Diagnostics::Tracing::EventSource::GetGuid (eventSourceType=0x7fffdeb53420)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs:323
#39 0x0000000000b5a13c in System_Private_CoreLib::System::Diagnostics::Tracing::EventSource::_ctor_2 (___this=0x7fffdeb528b0, settings=4, traits=0x0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs:594
#40 0x0000000000b222a0 in System_Private_CoreLib::System::Diagnostics::Tracing::EventSource::_ctor_1 (___this=0x7fffdeb528b0, settings=4)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs:569
#41 0x0000000000ae3a55 in System_Private_CoreLib::System::Diagnostics::Tracing::EventSource::_ctor (___this=0x7fffdeb528b0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs:547
#42 0x0000000000b974c0 in System_Private_CoreLib::System::Threading::ClrThreadPoolEventSource::_ctor (___this=0x7fffdeb528b0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/ClrThreadPoolEventSource.cs:27
#43 0x0000000000b7bb85 in System_Private_CoreLib::System::Threading::ClrThreadPoolEventSource::_cctor ()
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/ClrThreadPoolEventSource.cs:110
#44 0x0000000000b79f83 in System_Private_CoreLib::System::Threading::ClrThreadPool_WorkerThread::WorkerThreadStart ()
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/ClrThreadPool.WorkerThread.cs:25
#45 0x0000000000b46053 in System_Private_CoreLib::System::Threading::ThreadStart::InvokeOpenStaticThunk (_a0=0x7fffdeb4f268)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:1359
#46 0x0000000000a49426 in System_Private_CoreLib::Internal::Runtime::Augments::RuntimeThread::StartThread (parameter=140737352307696)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeThread.cs:488
#47 0x0000000000a130f1 in System_Private_CoreLib::Internal::Runtime::Augments::RuntimeThread::ThreadEntryPoint (parameter=140737352307696)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeThread.Unix.cs:143
#48 0x00007ffff6f146ba in start_thread (arg=0x7fffde340700) at pthread_create.c:333
#49 0x00007ffff6c4a41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
  • Example with System.Threading.Thread
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Hello
{
    internal class Program
    {
        static void M()
        {
            Console.WriteLine("T1");
        }

        private static void Main(string[] args)
        {
            var t = new Thread(new ThreadStart(Program.M));
            t.Start();
            t.Join();

            Console.WriteLine("Main Thread");
        }
    }
}
$ gdb --args /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello...done.
(gdb) r
Starting program: /media/kbaladurin/data/dotnet/forked/corert_1/corert/tests/src/Simple/Hello/bin/Debug/x64/native/Hello 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffdeb41700 (LWP 14186)]
[New Thread 0x7fffde340700 (LWP 14187)]
T1

Thread 3 "Hello" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffde340700 (LWP 14187)]
0x00007ffff6b78428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007ffff6b78428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007ffff6b7a02a in __GI_abort () at abort.c:89
#2  0x0000000000f53b5c in Assert (expr=0xf99ee5 "m_pInstance->FindCodeManagerByAddress(m_ControlPC)", 
    file=0xf99dfa "/media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp", line_num=316, message=0x0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/rhassert.cpp:25
#3  0x0000000000e85d06 in StackFrameIterator::InternalInit (this=0x7fffde33f2b0, pThreadToWalk=0x7fffde3405e0, pFrame=0x7fffde33f4d0, dwFlags=10)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:316
#4  0x0000000000e8691b in StackFrameIterator::InternalInitForStackTrace (this=0x7fffde33f2b0) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:354
#5  0x0000000000e87c2b in RhpSfiInit (pThis=0x7fffde33f2b0, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/StackFrameIterator.cpp:1878
#6  0x0000000000889f16 in System_Private_CoreLib::System::Runtime::InternalCalls::RhpSfiInit (pThis=0x7fffde33f2b0, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:1508
#7  0x000000000087ec25 in System_Private_CoreLib::System::Runtime::StackFrameIterator::Init (___this=0x7fffde33f2b0, pStackwalkCtx=0x0, instructionFault=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/StackFrameIterator.cs:33
#8  0x000000000087e960 in System_Private_CoreLib::System::Runtime::RuntimeExports::RhpCalculateStackTraceWorker (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:348
#9  0x000000000087ed5b in RhpCalculateStackTraceWorker (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:366
#10 0x0000000000e798e8 in RhpGetCurrentThreadStackTrace (pOutputBuffer=0x0, outputBufferLength=0) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/MiscHelpers.cpp:779
#11 0x0000000000889fab in System_Private_CoreLib::System::Runtime::RuntimeExports::_A_rawpinvoke_V_RhpGetCurrentThreadStackTrace (_a0=0x0, _a1=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/CalliIntrinsics.cs:21
#12 0x000000000087e840 in System_Private_CoreLib::System::Runtime::RuntimeExports::RhpGetCurrentThreadStackTrace (pOutputBuffer=0x0, outputBufferLength=0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/IntPtr.cs:68
#13 0x000000000087e7ce in System_Private_CoreLib::System::Runtime::RuntimeExports::RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdeb72190)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:325
#14 0x000000000087e885 in RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdeb72190) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Runtime.Base/src/System/Runtime/RuntimeExports.cs:326
#15 0x00000000009023f5 in System_Private_CoreLib::System::Runtime::RuntimeImports::RhGetCurrentThreadStackTrace (outputBuffer=0x7fffdeb72190)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Array.CoreRT.cs:963
#16 0x00000000008b8a82 in System_Private_CoreLib::System::Diagnostics::StackTrace::InitializeForThreadFrameIndex (___this=0x7fffdeb72178, skipFrames=0, needFileInfo=1 '\001')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Diagnostics/StackTrace.cs:124
#17 0x00000000008abf74 in System_Private_CoreLib::System::Diagnostics::StackTrace::_ctor_2 (___this=0x7fffdeb72178, skipFrames=0, needFileInfo=1 '\001')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Diagnostics/StackTrace.cs:61
#18 0x0000000000886818 in System_Private_CoreLib::System::Diagnostics::Debug::Assert_1 (condition=0 '\000', message=0x7fffdeb43048, detailMessage=0x7fffdeb43048)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs:98
#19 0x0000000000877303 in System_Private_CoreLib::System::Diagnostics::Debug::Assert (condition=0 '\000')
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/shared/System/Diagnostics/Debug.cs:81
#20 0x0000000000a8c4b1 in System_Private_CoreLib::System::Threading::WaitSubsystem_ThreadWaitInfo::TrySignalToSatisfyWait (___this=0x7fffdeb48788, registeredListNode=0x7fffdeb48898, 
    isAbandonedMutex=0 '\000') at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/WaitSubsystem.ThreadWaitInfo.Unix.cs:400
#21 0x0000000000a3619a in System_Private_CoreLib::System::Threading::WaitSubsystem_WaitableObject::SignalManualResetEvent (___this=0x7fffdeb48ab0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/WaitSubsystem.WaitableObject.Unix.cs:631
#22 0x00000000009e7f22 in System_Private_CoreLib::System::Threading::WaitSubsystem_WaitableObject::SignalEvent (___this=0x7fffdeb48ab0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/WaitSubsystem.WaitableObject.Unix.cs:601
#23 0x00000000009a4b30 in System_Private_CoreLib::System::Threading::WaitSubsystem::SetEvent_0 (waitableObject=0x7fffdeb48ab0)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/WaitSubsystem.Unix.cs:196
#24 0x0000000000979cbd in System_Private_CoreLib::System::Threading::WaitSubsystem::SetEvent (handle=140737352307696)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/WaitSubsystem.Unix.cs:186
#25 0x0000000000954740 in System_Private_CoreLib::System::Threading::EventWaitHandle::Set (___this=0x7fffdeb48a98)
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/System/Threading/EventWaitHandle.Unix.cs:47
#26 0x0000000000987de0 in System_Private_CoreLib::Internal::Runtime::Augments::RuntimeThread::OnThreadExit ()
    at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeThread.Unix.cs:80
#27 0x0000000000f4f0b6 in PalDetachThread (thread=0x7fffde3405e0) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/unix/PalRedhawkUnix.cpp:539
#28 0x0000000000e8cee0 in ThreadStore::DetachCurrentThread () at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/threadstore.cpp:167
#29 0x0000000000e87e55 in RuntimeThreadShutdown (thread=0x7fffde3405e0) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/startup.cpp:266
#30 0x0000000000f5153a in TlsDestructionMonitor::~TlsDestructionMonitor (this=0x7fffde3406d8) at /media/kbaladurin/data/dotnet/forked/corert_1/corert/src/Native/Runtime/unix/PalRedhawkUnix.cpp:500
#31 0x00007ffff6b7d5ff in __GI___call_tls_dtors () at cxa_thread_atexit_impl.c:155
#32 0x00007ffff6f146c8 in start_thread (arg=0x7fffde340700) at pthread_create.c:343
#33 0x00007ffff6c4a41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants