[Bug 257081] libunwind fails in Ceph test unittest_back_trace

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Jul 2021 14:18:33 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257081

            Bug ID: 257081
           Summary: libunwind fails in Ceph test unittest_back_trace
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: wjw_at_digiware.nl
                CC: dim_at_FreeBSD.org

Whilest testing Ceph builds in Jenkins, unittest_back_trace starts to fail
after upgrading to an updated version of 14-CURRENT.
Old, and working, build was from around begin May 2021, problematic build is of
June 6th 2021.
Lang/Rust seems to have a similar issue:
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256864
But that one is Fixed/closed, but does not fix this problem.

Traceback:
Reading symbols from build/bin/unittest_back_trace...
(gdb) r
Starting program:
/home/jenkins/workspace/ceph-master-compile/build/bin/unittest_back_trace
Running main() from gmock_main.cc
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from BackTrace
[ RUN      ] BackTrace.Basic

Program received signal SIGSEGV, Segmentation fault.
libunwind::CFI_Parser<libunwind::LocalAddressSpace>::findFDE (addressSpace=...,
pc=pc_at_entry=4593567, ehSectionStart=5251512, sectionLength=<optimized out>,
fdeHint=<optimized out>, fdeHint_at_entry=0, fdeInfo=fdeInfo_at_entry=0x7fffffffd670,
cieInfo=0x7fffffffd638)
    at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232
232         pint_t cfiLength = addressSpace.get32(p);
(gdb) bt
#0  libunwind::CFI_Parser<libunwind::LocalAddressSpace>::findFDE
(addressSpace=..., pc=pc_at_entry=4593567, ehSectionStart=5251512,
sectionLength=<optimized out>, fdeHint=<optimized out>, fdeHint_at_entry=0,
fdeInfo=fdeInfo_at_entry=0x7fffffffd670, cieInfo=0x7fffffffd638)
    at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232
#1  0x0000000800970ef1 in libunwind::UnwindCursor<libunwind::LocalAddressSpace,
libunwind::Registers_x86_64>::getInfoFromDwarfSection
(this=this_at_entry=0x7fffffffdcb0, pc=pc_at_entry=4593567, sects=...,
fdeSectionOffsetHint=fdeSectionOffsetHint_at_entry=0)
    at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1566
#2  0x000000080096db00 in libunwind::UnwindCursor<libunwind::LocalAddressSpace,
libunwind::Registers_x86_64>::setInfoBasedOnIPRegister (this=0x7fffffffdcb0,
isReturnAddress=true) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1958
#3  0x000000080096d95b in libunwind::UnwindCursor<libunwind::LocalAddressSpace,
libunwind::Registers_x86_64>::step (this=0x7fffffffdcb0) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2103
#4  0x000000080096b305 in _Unwind_Backtrace (callback=0x80080afe0 <tracer>,
ref=0x7fffffffde48) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:131
#5  0x000000080080afa7 in backtrace (arr=<optimized out>, len=<optimized out>)
at /usr/src/contrib/libexecinfo/unwind.c:69
#6  0x00000000004622f0 in ceph::ClibBackTrace::ClibBackTrace
(this=0x7fffffffdf10, s=1) at
/home/jenkins/workspace/ceph-master-compile/src/common/BackTrace.h:44
#7  0x00000000004619d4 in foo () at
/home/jenkins/workspace/ceph-master-compile/src/test/common/test_back_trace.cc:19
#8  0x0000000000461c08 in BackTrace_Basic_Test::TestBody (this=0x803a1e350) at
/home/jenkins/workspace/ceph-master-compile/src/test/common/test_back_trace.cc:29
#9  0x00000000004e42cb in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>
(object=0x803a1e350, method=&virtual testing::Test::TestBody(),
location=0x4f3a44 "the test body")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2605
#10 0x00000000004c9d9a in
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>
(object=0x803a1e350, method=&virtual testing::Test::TestBody(),
location=0x4f3a44 "the test body")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2641
#11 0x00000000004abd63 in testing::Test::Run (this=0x803a1e350) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2680
#12 0x00000000004ac914 in testing::TestInfo::Run (this=0x803a3dfc0) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2858
#13 0x00000000004ad05b in testing::TestSuite::Run (this=0x803a3de00) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:3012
#14 0x00000000004b916a in testing::internal::UnitTestImpl::RunAllTests
(this=0x803a3c400) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:5723
#15 0x00000000004e894b in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (object=0x803a3c400,
    method=(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const))
0x4b8d80 <testing::internal::UnitTestImpl::RunAllTests()>, location=0x4f42d7
"auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2605
#16 0x00000000004cc1ba in
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (object=0x803a3c400,
    method=(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * const))
0x4b8d80 <testing::internal::UnitTestImpl::RunAllTests()>, location=0x4f42d7
"auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:2641
#17 0x00000000004b8d2e in testing::UnitTest::Run (this=0x73bf10
<testing::UnitTest::GetInstance()::instance>) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/gtest.cc:5306
#18 0x0000000000488981 in RUN_ALL_TESTS () at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/include/gtest/gtest.h:2486
#19 0x000000000048895b in main (argc=1, argv=0x7fffffffe860) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googlemock/src/gmock_main.cc:70

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Jul 09 2021 - 14:18:33 UTC

Original text of this message