Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Jul 2021 14:18:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257081] libunwind fails in Ceph test unittest_back_trace
Message-ID:  <bug-257081-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257081

            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@FreeBSD.org
          Reporter: wjw@digiware.nl
                CC: dim@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 i=
s of
June 6th 2021.
Lang/Rust seems to have a similar issue:
    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256864
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
[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D] 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=
=3D...,
pc=3Dpc@entry=3D4593567, ehSectionStart=3D5251512, sectionLength=3D<optimiz=
ed out>,
fdeHint=3D<optimized out>, fdeHint@entry=3D0, fdeInfo=3DfdeInfo@entry=3D0x7=
fffffffd670,
cieInfo=3D0x7fffffffd638)
    at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232
232         pint_t cfiLength =3D addressSpace.get32(p);
(gdb) bt
#0  libunwind::CFI_Parser<libunwind::LocalAddressSpace>::findFDE
(addressSpace=3D..., pc=3Dpc@entry=3D4593567, ehSectionStart=3D5251512,
sectionLength=3D<optimized out>, fdeHint=3D<optimized out>, fdeHint@entry=
=3D0,
fdeInfo=3DfdeInfo@entry=3D0x7fffffffd670, cieInfo=3D0x7fffffffd638)
    at /usr/src/contrib/llvm-project/libunwind/src/DwarfParser.hpp:232
#1  0x0000000800970ef1 in libunwind::UnwindCursor<libunwind::LocalAddressSp=
ace,
libunwind::Registers_x86_64>::getInfoFromDwarfSection
(this=3Dthis@entry=3D0x7fffffffdcb0, pc=3Dpc@entry=3D4593567, sects=3D...,
fdeSectionOffsetHint=3DfdeSectionOffsetHint@entry=3D0)
    at /usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1566
#2  0x000000080096db00 in libunwind::UnwindCursor<libunwind::LocalAddressSp=
ace,
libunwind::Registers_x86_64>::setInfoBasedOnIPRegister (this=3D0x7fffffffdc=
b0,
isReturnAddress=3Dtrue) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:1958
#3  0x000000080096d95b in libunwind::UnwindCursor<libunwind::LocalAddressSp=
ace,
libunwind::Registers_x86_64>::step (this=3D0x7fffffffdcb0) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindCursor.hpp:2103
#4  0x000000080096b305 in _Unwind_Backtrace (callback=3D0x80080afe0 <tracer=
>,
ref=3D0x7fffffffde48) at
/usr/src/contrib/llvm-project/libunwind/src/UnwindLevel1-gcc-ext.c:131
#5  0x000000080080afa7 in backtrace (arr=3D<optimized out>, len=3D<optimize=
d out>)
at /usr/src/contrib/libexecinfo/unwind.c:69
#6  0x00000000004622f0 in ceph::ClibBackTrace::ClibBackTrace
(this=3D0x7fffffffdf10, s=3D1) 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=3D0x803a1e35=
0) at
/home/jenkins/workspace/ceph-master-compile/src/test/common/test_back_trace=
.cc:29
#9  0x00000000004e42cb in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, vo=
id>
(object=3D0x803a1e350, method=3D&virtual testing::Test::TestBody(),
location=3D0x4f3a44 "the test body")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2605
#10 0x00000000004c9d9a in
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>
(object=3D0x803a1e350, method=3D&virtual testing::Test::TestBody(),
location=3D0x4f3a44 "the test body")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2641
#11 0x00000000004abd63 in testing::Test::Run (this=3D0x803a1e350) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2680
#12 0x00000000004ac914 in testing::TestInfo::Run (this=3D0x803a3dfc0) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2858
#13 0x00000000004ad05b in testing::TestSuite::Run (this=3D0x803a3de00) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:3012
#14 0x00000000004b916a in testing::internal::UnitTestImpl::RunAllTests
(this=3D0x803a3c400) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:5723
#15 0x00000000004e894b in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal=
::UnitTestImpl,
bool> (object=3D0x803a3c400,
    method=3D(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * cons=
t))
0x4b8d80 <testing::internal::UnitTestImpl::RunAllTests()>, location=3D0x4f4=
2d7
"auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2605
#16 0x00000000004cc1ba in
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::U=
nitTestImpl,
bool> (object=3D0x803a3c400,
    method=3D(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl * cons=
t))
0x4b8d80 <testing::internal::UnitTestImpl::RunAllTests()>, location=3D0x4f4=
2d7
"auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:2641
#17 0x00000000004b8d2e in testing::UnitTest::Run (this=3D0x73bf10
<testing::UnitTest::GetInstance()::instance>) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/src/g=
test.cc:5306
#18 0x0000000000488981 in RUN_ALL_TESTS () at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googletest/inclu=
de/gtest/gtest.h:2486
#19 0x000000000048895b in main (argc=3D1, argv=3D0x7fffffffe860) at
/home/jenkins/workspace/ceph-master-compile/src/googletest/googlemock/src/g=
mock_main.cc:70

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257081-227>