Changes to backtrace() ??
- Reply: Tobias Kortkamp : "Re: Changes to backtrace() ??"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 Jul 2021 09:52:14 UTC
Hi, Have there been changes in the backtrace() calls? I recently upgraded my current server, and now the Ceph backtrace test starts to fail.... It looks like it is implemented in the llvm code. So it could be that something is off in that code. --WjW Program terminated with signal SIGSEGV, Segmentation fault. #0 libunwind::LocalAddressSpace::get32 (this=0x80b144828 <libunwind::LocalAddressSpace::sThisAddressSpace>, addr=408197395) at /usr/src/contrib/llvm-project/libunwind/src/AddressSpace.hpp:164 164 memcpy(&val, (void *)addr, sizeof(val)); (gdb) bt #0 libunwind::LocalAddressSpace::get32 (this=0x80b144828 <libunwind::LocalAddressSpace::sThisAddressSpace>, addr=408197395) at /usr/src/contrib/llvm-project/libunwind/src/AddressSpace.hpp:164 #1 libunwind::CFI_Parser<libunwind::LocalAddressSpace>::findFDE (addressSpace=..., pc=pc@entry=4578143, ehSectionStart=5219072, sectionLength=<optimized out>, fdeHint=<optimized out>, fdeHint@entry=0, fdeInfo=fdeInfo@entry=0x7fffffffd7a0, cieInfo=0x7fffffffd768) at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:233 #2 0x000000080b141091 in libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::getInfoFromDwarfSection ( this=this@entry=0x7fffffffdde0, pc=pc@entry=4578143, sects=..., fdeSectionOffsetHint=fdeSectionOffsetHint@entry=0) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1566 #3 0x000000080b13db40 in libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::setInfoBasedOnIPRegister ( this=0x7fffffffdde0, isReturnAddress=true) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1958 #4 0x000000080b13d99b in libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::step (this=0x7fffffffdde0) at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2103 #5 0x000000080b13b345 in _Unwind_Backtrace (callback=0x80ace5fe0 <tracer>, ref=0x7fffffffdf78) at /usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:131 #6 0x000000080ace5fa7 in backtrace (arr=<optimized out>, len=<optimized out>) at /usr/src/contrib/libexecinfo/unwind.c:69 #7 0x000000000045e698 in ceph::BackTrace::BackTrace(int) () #8 0x000000000045dd94 in foo() () #9 0x000000000045dfc8 in BackTrace_Basic_Test::TestBody() () #10 0x00000000004ddaeb in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) () #11 0x00000000004c468a in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) () #12 0x00000000004a7d43 in testing::Test::Run() () #13 0x00000000004a88f4 in testing::TestInfo::Run() () #14 0x00000000004a8efb in testing::TestSuite::Run() () #15 0x00000000004b44ca in testing::internal::UnitTestImpl::RunAllTests() () #16 0x00000000004e220b in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) () #17 0x00000000004c6a9a in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) () #18 0x00000000004b408e in testing::UnitTest::Run() () #19 0x00000000004850f1 in RUN_ALL_TESTS() () #20 0x00000000004850cb in main ()