Trying to solve a crasher in editeng unit test
Kohei Yoshida
kohei.yoshida at gmail.com
Wed Apr 11 12:56:00 PDT 2012
Hey there,
I'm trying to set up a new unit test for the edit engine core, but
struggling with one crasher.
On the latest master, when you open
editeng/qa/unit/core-test.cxx
and uncomment line 132 and re-run make check, it fails with segmentation
fault. The backtrace is attached.
Anyone have any clue what could be the cause? Anyone seen anything
similar in the past?
Thanks,
Kohei
--
Kohei Yoshida, LibreOffice hacker, Calc
-------------- next part --------------
Program received signal SIGSEGV, Segmentation fault.
_copyConstructAnyFromData (pDestAny=0x7ffff7fca7e0, pSource=0x7fffffff7ec0, pType=0x61e050, pTypeDescr=0x0, acquire=0x7ffff2a78a60 <com::sun::star::uno::cpp_acquire(void*)>, mapping=0x0)
at /home/kyoshida/libo/master/cppu/source/uno/copy.hxx:260
260 pDestAny->pData = ::rtl_allocateMemory( pTypeDescr->nSize );
(gdb) bt
#0 _copyConstructAnyFromData (pDestAny=0x7ffff7fca7e0, pSource=0x7fffffff7ec0, pType=0x61e050, pTypeDescr=0x0, acquire=0x7ffff2a78a60 <com::sun::star::uno::cpp_acquire(void*)>, mapping=0x0)
at /home/kyoshida/libo/master/cppu/source/uno/copy.hxx:260
#1 cppu::_copyConstructAny (pDestAny=0x7ffff7fca7e0, pSource=0x7fffffff7ec0, pType=0x61e050, pTypeDescr=0x0, acquire=0x7ffff2a78a60 <com::sun::star::uno::cpp_acquire(void*)>, mapping=0x0)
at /home/kyoshida/libo/master/cppu/source/uno/copy.hxx:371
#2 0x00007ffff5738a2b in uno_type_any_assign (pDest=0x7ffff7fca7e0, pSource=0x7fffffff7ec0, pType=0x61e050, acquire=0x7ffff2a78a60 <com::sun::star::uno::cpp_acquire(void*)>, release=<value optimized out>)
at /home/kyoshida/libo/master/cppu/source/uno/any.cxx:48
#3 0x00007ffff2a9b6b8 in operator<<=<com::sun::star::beans::NamedValue> (item=...) at /home/kyoshida/libo/master/solver/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:204
#4 utl::ConfigManager::acquireTree (item=...) at /home/kyoshida/libo/master/unotools/source/config/configmgr.cxx:198
#5 0x00007ffff2a9ede4 in utl::ConfigManager::addConfigItem (this=0x7ffff2d886e0, item=...) at /home/kyoshida/libo/master/unotools/source/config/configmgr.cxx:224
#6 0x00007ffff2a8d5b2 in utl::ConfigItem::ConfigItem (this=0x61dc10, rSubTree=<value optimized out>, nSetMode=<value optimized out>) at /home/kyoshida/libo/master/unotools/source/config/configitem.cxx:231
#7 0x00007ffff2b046b6 in SvtSysLocaleOptions_Impl::SvtSysLocaleOptions_Impl (this=0x61dc10) at /home/kyoshida/libo/master/unotools/source/config/syslocaleoptions.cxx:167
#8 0x00007ffff2b04cdb in SvtSysLocaleOptions::SvtSysLocaleOptions (this=0x61c548) at /home/kyoshida/libo/master/unotools/source/config/syslocaleoptions.cxx:474
#9 0x00007ffff2b2b016 in SvtSysLocale_Impl::SvtSysLocale_Impl (this=<value optimized out>) at /home/kyoshida/libo/master/unotools/source/misc/syslocale.cxx:63
#10 0x00007ffff2b2b45d in SvtSysLocale::SvtSysLocale (this=<value optimized out>) at /home/kyoshida/libo/master/unotools/source/misc/syslocale.cxx:103
#11 0x00007ffff5121a92 in OnDemandLocaleDataWrapper (this=0x61d770, pEE=0x7fffffff8340, pItemPool=<value optimized out>) at /home/kyoshida/libo/master/solver/unxlngx6.pro/inc/svl/ondemand.hxx:80
#12 ImpEditEngine::ImpEditEngine (this=0x61d770, pEE=0x7fffffff8340, pItemPool=<value optimized out>) at /home/kyoshida/libo/master/editeng/source/editeng/impedit2.cxx:112
#13 0x00007ffff50f4c82 in EditEngine::EditEngine (this=0x7fffffff8340, pItemPool=0x7fffffff8320) at /home/kyoshida/libo/master/editeng/source/editeng/editeng.cxx:115
#14 0x00007ffff5fe2b0b in (anonymous namespace)::Test::testConstruction() () from /home/kyoshida/libo/master/workdir/unxlngx6.pro/LinkTarget/CppunitTest/libtest_editeng_core.so
#15 0x00007ffff7948f20 in CppUnit::TestCaseMethodFunctor::operator()() const () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#16 0x00007ffff793aee2 in CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#17 0x00007ffff7944223 in CppUnit::ProtectorChain::ProtectFunctor::operator()() const () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#18 0x00007ffff79440d1 in CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#19 0x00007ffff795321c in CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#20 0x00007ffff79489d6 in CppUnit::TestCase::run(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#21 0x00007ffff79495f0 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#22 0x00007ffff7949472 in CppUnit::TestComposite::run(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#23 0x00007ffff79495f0 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#24 0x00007ffff7949472 in CppUnit::TestComposite::run(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#25 0x00007ffff7957266 in CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#26 0x00007ffff7952ff8 in CppUnit::TestResult::runTest(CppUnit::Test*) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#27 0x00007ffff79574b5 in CppUnit::TestRunner::run(CppUnit::TestResult&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /home/kyoshida/libo/master/solver/unxlngx6.pro/lib/libcppunit-1.12.so.1
#28 0x0000000000402ca1 in ?? ()
#29 0x00000000004031eb in ?? ()
More information about the LibreOffice
mailing list