Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2017 00:06:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        office@FreeBSD.org
Subject:   [Bug 216446] editors/libreoffice: sfx2_classification test crashes during build with clang/libc++ 4.0
Message-ID:  <bug-216446-25061-78KpKrk2N0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216446-25061@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216446

Jan Beich (mail not working) <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #179289|0                           |1
        is obsolete|                            |

--- Comment #5 from Jan Beich (mail not working) <jbeich@FreeBSD.org> ---
Created attachment 179294
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=179294&action=edit
VALGRIND=memcheck (-O1 -g build)

comment 0 with -O1 -g:

(lldb) r
Process 86275 launching
Process 86275 launched:
'/wrkdirs/usr/ports/editors/libreoffice/work/libreoffice-5.2.4.2/workdir/LinkTarget/Executable/cppunittester'
(x86_64)
Process 86275 stopped
* thread #1, stop reason = signal SIGSEGV: invalid address (fault address:
0xc0000171)
    frame #0:
libsfxlo.so`SfxClassificationHelper::Impl::pushToDocumentProperties(this=0x00000008204ccb80)
at classificationhelper.cxx:422
   419
   420  void SfxClassificationHelper::Impl::pushToDocumentProperties()
   421  {
-> 422      uno::Reference<beans::XPropertyContainer> xPropertyContainer =
m_xDocumentProperties->getUserDefinedProperties();
   423      uno::Reference<beans::XPropertySet>
xPropertySet(xPropertyContainer, uno::UNO_QUERY);
   424      uno::Sequence<beans::Property> aProperties =
xPropertySet->getPropertySetInfo()->getProperties();
   425      for (auto& rPair : m_aCategory)
(lldb) p m_xDocumentProperties
(const
com::sun::star::uno::Reference<com::sun::star::document::XDocumentProperties>)
$0 = {
  com::sun::star::uno::BaseReference = (_pInterface = 0x0000000800b448b8)
}
(lldb) fr v
(SfxClassificationHelper::Impl *) this = 0x00000008204ccb80
(com::sun::star::uno::Reference<com::sun::star::beans::XPropertyContainer>)
xPropertyContainer = {
  com::sun::star::uno::BaseReference = (_pInterface = 0x07e1000100190000)
}
(com::sun::star::uno::Sequence<com::sun::star::beans::Property>) aProperties =
<variable not available>

(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>)
xPropertySet = <variable not available>

(lldb) bt
* thread #1, stop reason = signal SIGSEGV: invalid address (fault address:
0xc0000171)
  * frame #0:
libsfxlo.so`SfxClassificationHelper::Impl::pushToDocumentProperties(this=0x00000008204ccb80)
at classificationhelper.cxx:422
    frame #1:
libsfxlo.so`SfxClassificationHelper::SetBACName(this=<unavailable>,
rName=<unavailable>, eType=<unavailable>) at classificationhelper.cxx:772
    frame #2: libswlo.so`SwEditShell::SetClassification(this=<unavailable>,
rName=0x000000082048bbb8, eType=ExportControl) at edfcol.cxx:185
    frame #3: libswlo.so`SwDocShell::Execute(this=0x0000000814b648a0,
rReq=0x00007fffffff2490) at docsh2.cxx:1155
    frame #4: libswlo.so`SwBaseShell::Execute(this=0x00000008204b8a00,
rReq=0x00007fffffff2490) at basesh.cxx:918
    frame #5: libsfxlo.so`SfxDispatcher::Call_Impl(this=0x000000081f26bd40,
rShell=<unavailable>, rSlot=<unavailable>, rReq=<unavailable>,
bRecord=<unavailable>) at dispatch.cxx:362
    frame #6: libsfxlo.so`SfxDispatcher::Execute(this=0x000000081f26bd40,
nSlot=<unavailable>, nCall=<unavailable>, pArgs=<unavailable>,
pInternalArgs=0x00007fffffff2658, nModi=0) at dispatch.cxx:1017
    frame #7:
libsfxlo.so`SfxDispatchController_Impl::dispatch(this=<unavailable>,
aURL=<unavailable>, aArgs=<unavailable>, rListener=0x00007fffffff2768) at
unoctitm.cxx:704
    frame #8:
libsfxlo.so`SfxOfficeDispatch::dispatchWithNotification(this=<unavailable>,
aURL=<unavailable>, aArgs=<unavailable>, rListener=<unavailable>) at
unoctitm.cxx:224
    frame #9:
libfwllo.so`framework::DispatchHelper::executeDispatch(this=<unavailable>,
xDispatchProvider=0x00007fffffff28a8, sURL=<unavailable>,
sTargetFrameName=0x00007fffffff2908, nSearchFlags=0, lArguments=<unavailable>)
at dispatchhelper.cxx:131
    frame #10: libfwllo.so`virtual function non-virtual override offset : -48
framework::DispatchHelper::executeDispatch(this=<unavailable>,
xDispatchProvider=<unavailable>, sURL=<unavailable>,
sTargetFrameName=<unavailable>, nSearchFlags=<unavailable>,
lArguments=0x00007fffffff2a48) at dispatchhelper.cxx:0
    frame #11: libtest_sfx2_classification.so`(anonymous
namespace)::ClassificationTest::dispatchCommand(this=<unavailable>,
xComponent=<unavailable>, rCommand=<unavailable>,
rPropertyValues=<unavailable>) at test_classification.cxx:75
    frame #12: libtest_sfx2_classification.so`(anonymous
namespace)::ClassificationTest::testClassification(this=<unavailable>) at
test_classification.cxx:85
    frame #13: libtest_sfx2_classification.so`(anonymous
namespace)::ClassificationTest::testWriter(this=0x000000081498b3a0) at
test_classification.cxx:119
    frame #14:
libcppunit-1.13.so.0`CppUnit::TestCaseMethodFunctor::operator(this=0x00007fffffff3ca8)(void)
const at TestCase.cpp:32
    frame #15:
libcppunit-1.13.so.0`CppUnit::ProtectorChain::ProtectFunctor::operator(this=0x00000008149e8d80)(void)
const at ProtectorChain.cpp:20
    frame #16:
libcppunit-1.13.so.0`CppUnit::ProtectorChain::ProtectFunctor::operator(this=0x00000008149e8d60)(void)
const at ProtectorChain.cpp:20
    frame #17: unoexceptionprotector.so`(anonymous
namespace)::Prot::protect(this=0x000000080224a018, functor=<unavailable>,
context=0x00007fffffff3aa8)::Prot::protect::ProtectorContext const&) at
unoexceptionprotector.cxx:65
    frame #18:
libcppunit-1.13.so.0`CppUnit::ProtectorChain::ProtectFunctor::operator(this=0x00000008149e8e00)(void)
const at ProtectorChain.cpp:20
    frame #19:
libcppunit-1.13.so.0`CppUnit::DefaultProtector::protect(this=0x000000080224a008,
functor=0x00000008149e8e00, context=0x00007fffffff3aa8) at
DefaultProtector.cpp:15
    frame #20:
libcppunit-1.13.so.0`CppUnit::ProtectorChain::ProtectFunctor::operator(this=0x00000008149e8da0)(void)
const at ProtectorChain.cpp:20
    frame #21:
libcppunit-1.13.so.0`CppUnit::ProtectorChain::protect(this=0x000000080221b100,
functor=0x00007fffffff3ca8, context=0x00007fffffff3aa8) at
ProtectorChain.cpp:77
    frame #22:
libcppunit-1.13.so.0`CppUnit::TestResult::protect(this=0x00007fffffff4710,
functor=0x00007fffffff3ca8, test=0x00000008149a6b30,
shortDescription=0x00007fffffff3c80) at TestResult.cpp:181
    frame #23:
libcppunit-1.13.so.0`CppUnit::TestCase::run(this=0x00000008149a6b30,
result=0x00007fffffff4710) at TestCase.cpp:91
    frame #24:
libcppunit-1.13.so.0`CppUnit::TestComposite::doRunChildTests(this=0x00000008149e7980,controller=0x00007fffffff4710)
at TestComposite.cpp:64
    frame #25:
libcppunit-1.13.so.0`CppUnit::TestComposite::run(this=0x00000008149e7980,
result=0x00007fffffff4710) at TestComposite.cpp:23
    frame #26:
libcppunit-1.13.so.0`CppUnit::TestComposite::doRunChildTests(this=0x00000008149e7940,controller=0x00007fffffff4710)
at TestComposite.cpp:64
    frame #27:
libcppunit-1.13.so.0`CppUnit::TestComposite::run(this=0x00000008149e7940,
result=0x00007fffffff4710) at TestComposite.cpp:23
    frame #28:
libcppunit-1.13.so.0`CppUnit::TestRunner::WrappingSuite::run(this=0x00000008149e7900,result=0x00007fffffff4710)
at TestRunner.cpp:47
    frame #29:
libcppunit-1.13.so.0`CppUnit::TestResult::runTest(this=0x00007fffffff4710,
test=0x00000008149e7900) at TestResult.cpp:148
    frame #30:
libcppunit-1.13.so.0`CppUnit::TestRunner::run(this=0x00007fffffff4490,
controller=0x00007fffffff4710, testPath=0x00007fffffff4510) at
TestRunner.cpp:96
    frame #31: cppunittester`(anonymous
namespace)::ProtectedFixtureFunctor::run(this=0x00007fffffff4638) const at
cppunittester.cxx:305
    frame #32: cppunittester`sal_main(void) at cppunittester.cxx:455
    frame #33: cppunittester`main(argc=<unavailable>, argv=<unavailable>) at
cppunittester.cxx:362
    frame #34: 0x000000000040451f cppunittester`_start + 383

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216446-25061-78KpKrk2N0>