#1 tcmalloc::SLLPopRange (end=<synthetic pointer>, start=<synthetic pointer>, N=7,…
- User
#1 tcmalloc::SLL_PopRange (end=, start=, N=7, head=0x56b0348) at src/linked_list.h:76 #2 tcmalloc::ThreadCache::FreeList::PopRange (end=, start=, N=7, this=0x56b0348) at src/thread_cache.h:225 #3 tcmalloc::ThreadCache::ReleaseToCentralCache (this=this@entry=0x56b00c0, src=src@entry=0x56b0348, cl=, N=7, N@entry=128) at src/thread_cache.cc:195 #4 0x0000000000f6d1fd in tcmalloc::ThreadCache::ListTooLong (this=this@entry=0x56b00c0, list=0x56b0348, cl=) at src/thread_cache.cc:157 #5 0x0000000001e7ab8e in tcmalloc::ThreadCache::Deallocate (cl=, ptr=0x5dfb000, this=0x56b00c0) at src/thread_cache.h:393 #6 (anonymous namespace)::do_free_helper (invalid_free_fn=0xf62750 <(anonymous namespace)::InvalidFree(void*)>, size_hint=0, use_hint=false, heap_must_be_valid=true, heap=0x56b00c0, ptr=0x5dfb000) at src/tcmalloc.cc:1305 #7 (anonymous namespace)::do_free_with_callback (invalid_free_fn=0xf62750 <(anonymous namespace)::InvalidFree(void*)>, size_hint=0, use_hint=false, ptr=0x5dfb000) at src/tcmalloc.cc:1337 #8 (anonymous namespace)::do_free (ptr=0x5dfb000) at src/tcmalloc.cc:1345 #9 tc_free (ptr=0x5dfb000) at src/tcmalloc.cc:1610 #10 0x000000000160d20a in std::__new_allocator<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocatorstd::string >, bvar::LatencyRecorder*, bvar::MultiDimensionbvar::LatencyRecorder::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocatorstd::string > >, false>, base::Void>::Wrapper*>::deallocate (__n=, __p=, this=) at /home/opt/compiler/gcc-12/include/c++/12.1.0/alloc_traits.h:142 #11 std::allocator_traits<std::allocator<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocatorstd::string >, bvar::LatencyRecorder*, bvar::MultiDimensionbvar::LatencyRecorder::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocatorstd::string > >, false>, base::Void>::Wrapper*> >::deallocate (__n=, __p=, __a=...) at /home/opt/compiler/gcc-12/include/c++/12.1.0/stl_iterator.h:496 #12 std::_Vector_base<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocatorstd::string >, bvar::LatencyRecorder*, bvar::MultiDimensionbvar::LatencyRecorder::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocatorstd::string > >, false>, base::Void>::Wrapper*, std::allocator<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::Wrapper*> >::_M_deallocate (__n=, __p=, this=) at bc_out/baidu/base/common/output/include/base/synchronization/doubly_buffered_data.h:387 #13 std::_Vector_base<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::Wrapper*, std::allocator<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::Wrapper*> >::~_Vector_base (this=, __in_chrg=) at bc_out/baidu/base/common/output/include/base/synchronization/doubly_buffered_data.h:366 #14 std::vector<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::Wrapper*, std::allocator<base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::Wrapper*> >::~vector (this=, __in_chrg=) at bc_out/baidu/base/common/output/include/base/synchronization/doubly_buffered_data.h:733 #15 base::DoublyBufferedData<base::FlatMap<std::list<std::string, std::allocator >, bvar::LatencyRecorder*, bvar::MultiDimension::KeyHash, base::DefaultEqualTo<std::list<std::string, std::allocator > >, false>, base::Void>::~DoublyBufferedData (this=0x2d06240 , __in_chrg=) at bc_out/baidu/base/common/output/include/base/containers/logging.h:429 #16 0x000000000160fef0 in bvar::MultiDimension::~MultiDimension (this=0x2d06220 , __in_chrg=) at /home/opt/compiler/gcc-12/include/c++/12.1.0/basic_string.h:70 #17 0x00007fdf460532ea in __run_exit_handlers (status=1, listp=0x7fdf461d2738 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #18 0x00007fdf4605348a in __GI_exit (status=) at exit.c:139 #19 0x0000000001a94ae9 in google::(anonymous namespace)::ReadFileIntoString(char const*) () #20 0x0000000001a954c0 in google::(anonymous namespace)::CommandLineFlagParser::ProcessFlagfileLocked(std::string const&, google::FlagSettingMode) () #21 0x0000000001a95fdc in google::(anonymous namespace)::CommandLineFlagParser::ProcessSingleOptionLocked(google::(anonymous namespace)::CommandLineFlag*, char const*, google::FlagSettingMode) () #22 0x0000000001a97959 in google::SetCommandLineOptionWithMode(char const*, char const*, google::FlagSettingMode) () #23 0x0000000001a97a6d in google::SetCommandLineOption(char const*, char const*) () #24 0x0000000000de2bff in dalton::mcube::run (argc=, argv=) at /home/bcloud/bcloud_data/EE/BCLOUD_PROTOBUF/CompileServer/Task/6b89d88bd19b6a7d59c0d139a94e535d/main.cpp:52 #25 0x00007fdf4603c784 in __libc_start_main (main=0xd55560 <main(int, char**)>, argc=1, argv=0x7ffd5c0bf9a8, init=, fini=, rtld_fini=, stack_end=0x7ffd5c0bf998) at /root/work/deck/devel/toolchain/glibc-2.33/csu/libc-start.c:332 #26 0x0000000000d6a04a in _start () at /root/work/deck/devel/toolchain/glibc-2.33/csu/start.S:120
- Assistant
This is a backtrace of a program execution, showing the sequence of function calls that led to the current point in the program. Each line of the backtrace provides information about the function called, the arguments passed, and the location of the function in the source code.
In this particular backtrace, we can see that the execution started at the
runfunction inmain.cpp(line #24). From there, it made its way through several functions in different parts of the codebase, eventually leading to a call toexitin the C library (line #18).The backtrace also shows calls to memory allocation and deallocation functions (
malloc,free) and various internal functions of the TCMalloc library.Overall, the backtrace provides a detailed view of the execution flow and can be useful for debugging purposes.
- User
翻译成中文
- Assistant
这是一个程序执行的回溯,显示了导致当前程序点的函数调用序列。回溯的每一行提供了有关被调用函数、传递的参数以及函数在源代码中的位置的信息。
在这个特定的回溯中,我们可以看到执行从
main.cpp的run函数开始(第24行)。从那里,它通过代码库的不同部分的几个函数逐步进行,最终导致对C库中的exit函数的调用(第18行)。回溯还显示了内存分配和释放函数(
malloc,free)以及TCMalloc库的各种内部函数的调用。总的来说,回溯提供了执行流程的详细视图,对于调试目的很有用。