Skip to content

unexpected crash when upgrade from 2.0 to 2.6.3 #84

@Richard-Feng

Description

@Richard-Feng

When i upgrade the tcmalloc from 2.0 to 2.6.3, my program crashed just like:

#0 x86_64_fallback_frame_state (context=0x22c3cf620, context=0x22c3cf620, fs=0x22c3cf710)
at ./md-unwind-support.h:58
#1 uw_frame_state_for (context=context@entry=0x22c3cf620, fs=fs@entry=0x22c3cf710)
at ../../../gcc-4.8.2/libgcc/unwind-dw2.c:1253
#2 0x00007f255180cef9 in _Unwind_Backtrace (trace=0x7f2d30284a50 <backtrace_helper>,
trace_argument=0x22c3cf8d0) at ../../../gcc-4.8.2/libgcc/unwind.inc:290
#3 0x00007f2d30284bc6 in backtrace () from /lib64/libc.so.6
#4 0x0000000003c39c77 in Comm::CSignalHandler::HandleCrash (sig=11,
is_exit=, is_hit_dump_limit=0x0)
at comm2/core/utils/iSignalHandler.cpp:376
#5
#6 x86_64_fallback_frame_state (context=0x22c3d1140, context=0x22c3d1140, fs=0x22c3d1230)
at ./md-unwind-support.h:58
#7 uw_frame_state_for (context=context@entry=0x22c3d1140, fs=fs@entry=0x22c3d1230)
at ../../../gcc-7.5.0/libgcc/unwind-dw2.c:1257
#8 0x000000000402e2d8 in _Unwind_Backtrace (
trace=0x2b4dfb0 <libgcc_backtrace_helper(_Unwind_Context*, void*)>,
trace_argument=0x22c3d13f0) at ../../../gcc-7.5.0/libgcc/unwind.inc:290
#9 0x0000000002b4ddca in GetStackTrace_libgcc (result=,
max_depth=, skip_count=)
at src/stacktrace_libgcc-inl.h:100
#10 0x0000000002b4e474 in GetStackTrace (result=result@entry=0x23e3df450,
max_depth=max_depth@entry=30, skip_count=skip_count@entry=3) at src/stacktrace.cc:295
#11 0x0000000002b99dd6 in RecordGrowth (growth=1048576) at src/page_heap.cc:590
#12 tcmalloc::PageHeap::GrowHeap (this=this@entry=0x71871c0 tcmalloc::Static::pageheap_,
n=n@entry=128) at src/page_heap.cc:616
#13 0x0000000002b9a083 in tcmalloc::PageHeap::New (
this=0x71871c0 tcmalloc::Static::pageheap_, n=n@entry=128) at src/page_heap.cc:156
#14 0x00000000018483c4 in (anonymous namespace)::do_malloc_pages (
heap=heap@entry=0x995da00, size=size@entry=1048576) at src/tcmalloc.cc:1327
#15 0x0000000004030556 in do_malloc (size=1048576) at src/tcmalloc.cc:1355

my program runs on x86_64 machine

Would you tell me what's the problem with my program? It works good before this upgrade.
And how to fix ? Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions