Skip to content

Application exception exit: segfault #32848

Description

@zhxymh

We run the application in docker, and occasionally the application crashes. I found an early issue #10856 similar to this one. But it has been fixed.

I don't know why it happens?

Here are the details:

Environment:

.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     debian
 OS Version:  10
 OS Platform: Linux
 RID:         debian.10-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.100/

Exception information:

 kernel: [19444845.285303] dotnet[19785]: segfault at f0 ip 00007f475694e1a0 sp 00007f474f893fd0 error 4 in libcoreclr.so[7f475691a000+2ef000]

coredump:

(lldb) bt
* thread #1, name = 'dotnet', stop reason = signal SIGSEGV
  * frame #0: 0x00007f475694e1a0 libcoreclr.so`ClassLoader::LoadTypeHandleForTypeKey_Body(TypeKey*, TypeHandle, ClassLoadLevel) + 1280
    frame #1: 0x00007f475694a2bf libcoreclr.so`ClassLoader::LoadTypeHandleForTypeKey(TypeKey*, TypeHandle, ClassLoadLevel, InstantiationContext const*) + 255
    frame #2: 0x00007f475694a17b libcoreclr.so`ClassLoader::LoadConstructedTypeThrowing(TypeKey*, ClassLoader::LoadTypesFlag, ClassLoadLevel, InstantiationContext const*) + 507
    frame #3: 0x00007f475694bc7c libcoreclr.so`ClassLoader::LookupTypeDefOrRefInModule(Module*, unsigned int, ClassLoadLevel*) + 12
    frame #4: 0x00007f475680005d libcoreclr.so`SigPointer::GetTypeHandleThrowing(Module*, SigTypeContext const*, ClassLoader::LoadTypesFlag, ClassLoadLevel, int, Substitution const*, ZapSig::Context const*) const + 5117
    frame #5: 0x00007f4756807b7c libcoreclr.so`MetaSig::GetReturnTypeNormalized(TypeHandle*) const + 188
    frame #6: 0x00007f47567b0851 libcoreclr.so`TransitionFrame::PromoteCallerStackHelper(void (*)(Object**, ScanContext*, unsigned int), ScanContext*, MethodDesc*, MetaSig*) + 225
    frame #7: 0x00007f47567b0274 libcoreclr.so`TransitionFrame::PromoteCallerStack(void (*)(Object**, ScanContext*, unsigned int), ScanContext*) + 676
    frame #8: 0x00007f475687a09c libcoreclr.so`GcStackCrawlCallBack(CrawlFrame*, void*) + 764
    frame #9: 0x00007f475680933d libcoreclr.so`Thread::MakeStackwalkerCallback(CrawlFrame*, StackWalkAction (*)(CrawlFrame*, void*), void*) + 221
    frame #10: 0x00007f4756809571 libcoreclr.so`Thread::StackWalkFramesEx(REGDISPLAY*, StackWalkAction (*)(CrawlFrame*, void*), void*, unsigned int, Frame*) + 497
    frame #11: 0x00007f475680994c libcoreclr.so`StackWalkFunctions(Thread*, StackWalkAction (*)(CrawlFrame*, void*), void*) + 12
    frame #12: 0x00007f474f895690
    frame #13: 0x00007f4756a387cc libcoreclr.so
    frame #14: 0x00007f4756a385f5 libcoreclr.so`GCToEEInterface::GcScanRoots(void (*)(Object**, ScanContext*, unsigned int), int, int, ScanContext*) + 325
    frame #15: 0x00007f47569e096f libcoreclr.so`SVR::gc_heap::mark_phase(int, int) + 1007
    frame #16: 0x00007f47569ddd1d libcoreclr.so`SVR::gc_heap::gc1() + 525
    frame #17: 0x00007f47569d0443 libcoreclr.so`SVR::gc_heap::garbage_collect(int) + 2723
    frame #18: 0x00007f47569cf4e2 libcoreclr.so`SVR::gc_heap::gc_thread_function() + 738
    frame #19: 0x00007f47569cf236 libcoreclr.so`SVR::gc_heap::gc_thread_function() + 54
    frame #20: 0x00007f4756a3ab98 libcoreclr.so`HndCreateHandleTable(unsigned int const*, unsigned int) + 40
    frame #21: 0x00007f4756b4cb6d libcoreclr.so`CorUnix::CPalThread::WaitForStartStatus() + 45
    frame #22: 0x00007f47577fcfa3 libpthread.so.0`start_thread + 243
    frame #23: 0x00007f47574074cf libc.so.6`clone + 63

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions