warnings with thread sanitizer

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Mon Aug 22 20:04:38 UTC 2016


Hello,

i'm trying to debug segmentation faults with pylokit, python bindings for 
libreofficekit. The crashes happens when calling the hook function more than 
once in the same process. I've tried bibisecting it but it looks like they 
segfault quite randomly around pthread locks (see bt-4.3.4). I've also tried to 
run the thing under helgrind but it ends with valgrind consuming all the ram and 
then killing itself.

So I've built latest master with GCC thread sanitizer. Running make check 
there's quite a lot of warnings: some duplicated, some with holes in the 
stackstrace. You can find two of them attached. Is there something useful?

Libo has been built with this configuration:
./autogen.sh --without-java --without-epm --with-system-libs 
--without-system-libzmf --without-system-libstaroffice --without-system-boost 
--without-system-lpsolve --disable-pdfimport --disable-firebird-sdbc 
--enable-dbgutil --without-system-mysql-cppconn --without-system-libgltf 
--disable-ccache

Thanks in advance

-- 
Riccardo Magliocchetti
@rmistaken

http://menodizero.it
-------------- next part --------------
WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock) (pid=1535)
  Cycle in lock order graph: M3461 (0x7d0c00005c10) => M124453 (0x7d0c00004770) => M3461

  Mutex M124453 acquired here while holding mutex M3461 in main thread:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::ClearableGuard<osl::Mutex>::ClearableGuard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:163 (libutllo.so+0x000000101ae8)
    #4 osl::ResettableGuard<osl::Mutex>::ResettableGuard(osl::Mutex&) <null> (libutllo.so+0x0000001004d5)
    #5 ItemHolder1::impl_addItem(EItem) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:99 (libutllo.so+0x0000000fe9b6)
    #6 ItemHolder1::holdConfigItem(EItem) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:87 (libutllo.so+0x0000000fe84e)
    #7 SvtSysLocaleOptions::SvtSysLocaleOptions() /home/rm/src/libo/unotools/source/config/syslocaleoptions.cxx:520 (libutllo.so+0x00000015291d)
    #8 Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:36 (libvclbootstrapprotector.so+0x000000002543)
    #9 vclbootstrapprotector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:93 (libvclbootstrapprotector.so+0x000000002b15)
    #10 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:443 (cppunittester+0x00000040ab68)
    #11 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M3461 previously acquired by the same thread here:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::Guard<osl::Mutex>::Guard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:129 (libutllo.so+0x00000005c9ba)
    #4 SvtSysLocaleOptions::SvtSysLocaleOptions() /home/rm/src/libo/unotools/source/config/syslocaleoptions.cxx:515 (libutllo.so+0x0000001528bb)
    #5 Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:36 (libvclbootstrapprotector.so+0x000000002543)
    #6 vclbootstrapprotector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:93 (libvclbootstrapprotector.so+0x000000002b15)
    #7 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:443 (cppunittester+0x00000040ab68)
    #8 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M3461 acquired here while holding mutex M124453 in main thread:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::Guard<osl::Mutex>::Guard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:129 (libutllo.so+0x00000005c9ba)
    #4 SvtSysLocaleOptions::~SvtSysLocaleOptions() /home/rm/src/libo/unotools/source/config/syslocaleoptions.cxx:528 (libutllo.so+0x000000152a7d)
    #5 SvtSysLocaleOptions::~SvtSysLocaleOptions() /home/rm/src/libo/unotools/source/config/syslocaleoptions.cxx:535 (libutllo.so+0x000000152c1f)
    #6 ItemHolder1::impl_deleteItem(TItemInfo&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:243 (libutllo.so+0x0000000ff508)
    #7 ItemHolder1::impl_releaseAllItems() /home/rm/src/libo/unotools/source/config/itemholder1.cxx:128 (libutllo.so+0x0000000fecaf)
    #8 ItemHolder1::disposing(com::sun::star::lang::EventObject const&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:94 (libutllo.so+0x0000000fe8eb)
    #9 cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:304 (libuno_cppuhelpergcc3.so.3+0x000000086b45)
    #10 cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:477 (libuno_cppuhelpergcc3.so.3+0x000000087b1e)
    #11 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:106 (libuno_cppuhelpergcc3.so.3+0x00000008006c)
    #12 <null> <null> (libconfigmgrlo.so+0x0000000bd0ae)
    #13 cppu::ComponentContext::disposing() /home/rm/src/libo/cppuhelper/source/component_context.cxx:479 (libuno_cppuhelpergcc3.so.3+0x00000003f97e)
    #14 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:107 (libuno_cppuhelpergcc3.so.3+0x0000000800a0)
    #15 cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext, com::sun::star::container::XNameContainer>::dispose() <null> (libuno_cppuhelpergcc3.so.3+0x00000005c6ae)
    #16 deinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:84 (libvclbootstrapprotector.so+0x0000000029cb)
    #17 LinkStubdeinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:67 (libvclbootstrapprotector.so+0x000000002825)
    #18 Link<LinkParamNone*, void>::Call(LinkParamNone*) const /home/rm/src/libo/include/tools/link.hxx:84 (libvcllo.so+0x0000006a6d77)
    #19 DeInitVCL() /home/rm/src/libo/vcl/source/app/svmain.cxx:504 (libvcllo.so+0x000000bd5397)
    #20 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:52 (libvclbootstrapprotector.so+0x000000002714)
    #21 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:53 (libvclbootstrapprotector.so+0x00000000276b)
    #22 CppUnit::ProtectorChain::pop() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:47 (libcppunit-1.13.so.0+0x0000000b4b2e)
    #23 CppUnit::TestResult::popProtector() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:195 (libcppunit-1.13.so.0+0x0000000d6fba)
    #24 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:314 (cppunittester+0x00000040a0f9)
    #25 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #26 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M124453 previously acquired by the same thread here:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::ClearableGuard<osl::Mutex>::ClearableGuard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:163 (libutllo.so+0x000000101ae8)
    #4 osl::ResettableGuard<osl::Mutex>::ResettableGuard(osl::Mutex&) <null> (libutllo.so+0x0000001004d5)
    #5 ItemHolder1::impl_releaseAllItems() /home/rm/src/libo/unotools/source/config/itemholder1.cxx:120 (libutllo.so+0x0000000fec09)
    #6 ItemHolder1::disposing(com::sun::star::lang::EventObject const&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:94 (libutllo.so+0x0000000fe8eb)
    #7 cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:304 (libuno_cppuhelpergcc3.so.3+0x000000086b45)
    #8 cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:477 (libuno_cppuhelpergcc3.so.3+0x000000087b1e)
    #9 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:106 (libuno_cppuhelpergcc3.so.3+0x00000008006c)
    #10 <null> <null> (libconfigmgrlo.so+0x0000000bd0ae)
    #11 cppu::ComponentContext::disposing() /home/rm/src/libo/cppuhelper/source/component_context.cxx:479 (libuno_cppuhelpergcc3.so.3+0x00000003f97e)
    #12 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:107 (libuno_cppuhelpergcc3.so.3+0x0000000800a0)
    #13 cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext, com::sun::star::container::XNameContainer>::dispose() <null> (libuno_cppuhelpergcc3.so.3+0x00000005c6ae)
    #14 deinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:84 (libvclbootstrapprotector.so+0x0000000029cb)
    #15 LinkStubdeinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:67 (libvclbootstrapprotector.so+0x000000002825)
    #16 Link<LinkParamNone*, void>::Call(LinkParamNone*) const /home/rm/src/libo/include/tools/link.hxx:84 (libvcllo.so+0x0000006a6d77)
    #17 DeInitVCL() /home/rm/src/libo/vcl/source/app/svmain.cxx:504 (libvcllo.so+0x000000bd5397)
    #18 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:52 (libvclbootstrapprotector.so+0x000000002714)
    #19 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:53 (libvclbootstrapprotector.so+0x00000000276b)
    #20 CppUnit::ProtectorChain::pop() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:47 (libcppunit-1.13.so.0+0x0000000b4b2e)
    #21 CppUnit::TestResult::popProtector() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:195 (libcppunit-1.13.so.0+0x0000000d6fba)
    #22 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:314 (cppunittester+0x00000040a0f9)
    #23 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #24 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)
-------------- next part --------------
WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock) (pid=1535)
  Cycle in lock order graph: M143508 (0x7d0c003cc4b0) => M124453 (0x7d0c00004770) => M143508

  Mutex M124453 acquired here while holding mutex M143508 in main thread:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::ClearableGuard<osl::Mutex>::ClearableGuard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:163 (libutllo.so+0x000000101ae8)
    #4 osl::ResettableGuard<osl::Mutex>::ResettableGuard(osl::Mutex&) <null> (libutllo.so+0x0000001004d5)
    #5 ItemHolder1::impl_addItem(EItem) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:99 (libutllo.so+0x0000000fe9b6)
    #6 ItemHolder1::holdConfigItem(EItem) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:87 (libutllo.so+0x0000000fe84e)
    #7 SvtHistoryOptions::SvtHistoryOptions() /home/rm/src/libo/unotools/source/config/historyoptions.cxx:541 (libutllo.so+0x0000000fbaba)
    #8 <null> <null> (libsfxlo.so+0x00000030d0fe)
    #9 <null> <null> (libsfxlo.so+0x000000223cb7)
    #10 <null> <null> (libsfxlo.so+0x0000002229cc)
    #11 <null> <null> (libsfxlo.so+0x0000001fb964)
    #12 <null> <null> (libsfxlo.so+0x00000020675f)
    #13 <null> <null> (libsfxlo.so+0x0000002ce623)
    #14 <null> <null> (libsfxlo.so+0x0000002ce567)
    #15 <null> <null> (libtest_sw_uwriter.so+0x00000179e02a)
    #16 <null> <null> (libtest_sw_uwriter.so+0x000001797075)
    #17 <null> <null> (libtest_sw_uwriter.so+0x00000179613d)
    #18 <null> <null> (libtest_sw_uwriter.so+0x000001795e04)
    #19 <null> <null> (libtest_sw_uwriter.so+0x0000017967e3)
    #20 <null> <null> (libtest_sw_uwriter.so+0x000001795f2c)
    #21 <null> <null> (libtest_sw_uwriter.so+0x00000055ace2)
    #22 <null> <null> (libtest_sw_uwriter.so+0x0000005824e8)
    #23 CppUnit::TestCaseMethodFunctor::operator()() const /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:32 (libcppunit-1.13.so.0+0x0000000c131c)
    #24 protect /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:58 (libvclbootstrapprotector.so+0x0000000027cf)
    #25 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #26 protect /home/rm/src/libo/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx:89 (unobootstrapprotector.so+0x000000001d3d)
    #27 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #28 protect /home/rm/src/libo/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx:65 (unoexceptionprotector.so+0x000000002e6d)
    #29 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #30 CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/DefaultProtector.cpp:15 (libcppunit-1.13.so.0+0x0000000a069e)
    #31 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #32 CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:77 (libcppunit-1.13.so.0+0x0000000b4d70)
    #33 CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:181 (libcppunit-1.13.so.0+0x0000000d6ed9)
    #34 CppUnit::TestCase::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:87 (libcppunit-1.13.so.0+0x0000000c0a1b)
    #35 CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64 (libcppunit-1.13.so.0+0x0000000c2063)
    #36 CppUnit::TestComposite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23 (libcppunit-1.13.so.0+0x0000000c1d74)
    #37 CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64 (libcppunit-1.13.so.0+0x0000000c2063)
    #38 CppUnit::TestComposite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23 (libcppunit-1.13.so.0+0x0000000c1d74)
    #39 CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:47 (libcppunit-1.13.so.0+0x0000000e1461)
    #40 CppUnit::TestResult::runTest(CppUnit::Test*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:148 (libcppunit-1.13.so.0+0x0000000d6ab9)
    #41 CppUnit::TestRunner::run(CppUnit::TestResult&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:96 (libcppunit-1.13.so.0+0x0000000e18df)
    #42 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:305 (cppunittester+0x000000409f24)
    #43 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #44 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M143508 previously acquired by the same thread here:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::Guard<osl::Mutex>::Guard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:129 (libutllo.so+0x00000005c9ba)
    #4 SvtHistoryOptions::SvtHistoryOptions() /home/rm/src/libo/unotools/source/config/historyoptions.cxx:534 (libutllo.so+0x0000000fba1d)
    #5 <null> <null> (libsfxlo.so+0x00000030d0fe)
    #6 <null> <null> (libsfxlo.so+0x000000223cb7)
    #7 <null> <null> (libsfxlo.so+0x0000002229cc)
    #8 <null> <null> (libsfxlo.so+0x0000001fb964)
    #9 <null> <null> (libsfxlo.so+0x00000020675f)
    #10 <null> <null> (libsfxlo.so+0x0000002ce623)
    #11 <null> <null> (libsfxlo.so+0x0000002ce567)
    #12 <null> <null> (libtest_sw_uwriter.so+0x00000179e02a)
    #13 <null> <null> (libtest_sw_uwriter.so+0x000001797075)
    #14 <null> <null> (libtest_sw_uwriter.so+0x00000179613d)
    #15 <null> <null> (libtest_sw_uwriter.so+0x000001795e04)
    #16 <null> <null> (libtest_sw_uwriter.so+0x0000017967e3)
    #17 <null> <null> (libtest_sw_uwriter.so+0x000001795f2c)
    #18 <null> <null> (libtest_sw_uwriter.so+0x00000055ace2)
    #19 <null> <null> (libtest_sw_uwriter.so+0x0000005824e8)
    #20 CppUnit::TestCaseMethodFunctor::operator()() const /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:32 (libcppunit-1.13.so.0+0x0000000c131c)
    #21 protect /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:58 (libvclbootstrapprotector.so+0x0000000027cf)
    #22 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #23 protect /home/rm/src/libo/unotest/source/cpp/unobootstrapprotector/unobootstrapprotector.cxx:89 (unobootstrapprotector.so+0x000000001d3d)
    #24 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #25 protect /home/rm/src/libo/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx:65 (unoexceptionprotector.so+0x000000002e6d)
    #26 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #27 CppUnit::DefaultProtector::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/DefaultProtector.cpp:15 (libcppunit-1.13.so.0+0x0000000a069e)
    #28 CppUnit::ProtectorChain::ProtectFunctor::operator()() const <null> (libcppunit-1.13.so.0+0x0000000b4ff6)
    #29 CppUnit::ProtectorChain::protect(CppUnit::Functor const&, CppUnit::ProtectorContext const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:77 (libcppunit-1.13.so.0+0x0000000b4d70)
    #30 CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:181 (libcppunit-1.13.so.0+0x0000000d6ed9)
    #31 CppUnit::TestCase::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestCase.cpp:87 (libcppunit-1.13.so.0+0x0000000c0a1b)
    #32 CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64 (libcppunit-1.13.so.0+0x0000000c2063)
    #33 CppUnit::TestComposite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23 (libcppunit-1.13.so.0+0x0000000c1d74)
    #34 CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:64 (libcppunit-1.13.so.0+0x0000000c2063)
    #35 CppUnit::TestComposite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestComposite.cpp:23 (libcppunit-1.13.so.0+0x0000000c1d74)
    #36 CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:47 (libcppunit-1.13.so.0+0x0000000e1461)
    #37 CppUnit::TestResult::runTest(CppUnit::Test*) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:148 (libcppunit-1.13.so.0+0x0000000d6ab9)
    #38 CppUnit::TestRunner::run(CppUnit::TestResult&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestRunner.cpp:96 (libcppunit-1.13.so.0+0x0000000e18df)
    #39 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:305 (cppunittester+0x000000409f24)
    #40 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #41 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M143508 acquired here while holding mutex M124453 in main thread:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::Guard<osl::Mutex>::Guard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:129 (libutllo.so+0x00000005c9ba)
    #4 SvtHistoryOptions::~SvtHistoryOptions() /home/rm/src/libo/unotools/source/config/historyoptions.cxx:547 (libutllo.so+0x0000000fbbb5)
    #5 SvtHistoryOptions::~SvtHistoryOptions() /home/rm/src/libo/unotools/source/config/historyoptions.cxx:550 (libutllo.so+0x0000000fbc55)
    #6 ItemHolder1::impl_deleteItem(TItemInfo&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:243 (libutllo.so+0x0000000ff508)
    #7 ItemHolder1::impl_releaseAllItems() /home/rm/src/libo/unotools/source/config/itemholder1.cxx:128 (libutllo.so+0x0000000fecaf)
    #8 ItemHolder1::disposing(com::sun::star::lang::EventObject const&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:94 (libutllo.so+0x0000000fe8eb)
    #9 cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:304 (libuno_cppuhelpergcc3.so.3+0x000000086b45)
    #10 cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:477 (libuno_cppuhelpergcc3.so.3+0x000000087b1e)
    #11 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:106 (libuno_cppuhelpergcc3.so.3+0x00000008006c)
    #12 <null> <null> (libconfigmgrlo.so+0x0000000bd0ae)
    #13 cppu::ComponentContext::disposing() /home/rm/src/libo/cppuhelper/source/component_context.cxx:479 (libuno_cppuhelpergcc3.so.3+0x00000003f97e)
    #14 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:107 (libuno_cppuhelpergcc3.so.3+0x0000000800a0)
    #15 cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext, com::sun::star::container::XNameContainer>::dispose() <null> (libuno_cppuhelpergcc3.so.3+0x00000005c6ae)
    #16 deinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:84 (libvclbootstrapprotector.so+0x0000000029cb)
    #17 LinkStubdeinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:67 (libvclbootstrapprotector.so+0x000000002825)
    #18 Link<LinkParamNone*, void>::Call(LinkParamNone*) const /home/rm/src/libo/include/tools/link.hxx:84 (libvcllo.so+0x0000006a6d77)
    #19 DeInitVCL() /home/rm/src/libo/vcl/source/app/svmain.cxx:504 (libvcllo.so+0x000000bd5397)
    #20 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:52 (libvclbootstrapprotector.so+0x000000002714)
    #21 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:53 (libvclbootstrapprotector.so+0x00000000276b)
    #22 CppUnit::ProtectorChain::pop() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:47 (libcppunit-1.13.so.0+0x0000000b4b2e)
    #23 CppUnit::TestResult::popProtector() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:195 (libcppunit-1.13.so.0+0x0000000d6fba)
    #24 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:314 (cppunittester+0x00000040a0f9)
    #25 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #26 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

  Mutex M124453 previously acquired by the same thread here:
    #0 pthread_mutex_lock <null> (libtsan.so.0+0x00000003653f)
    #1 osl_acquireMutex /home/rm/src/libo/sal/osl/unx/mutex.cxx:99 (libuno_sal.so.3+0x00000008c74d)
    #2 osl::Mutex::acquire() /home/rm/src/libo/include/osl/mutex.hxx:56 (libutllo.so+0x00000005a5bb)
    #3 osl::ClearableGuard<osl::Mutex>::ClearableGuard(osl::Mutex&) /home/rm/src/libo/include/osl/mutex.hxx:163 (libutllo.so+0x000000101ae8)
    #4 osl::ResettableGuard<osl::Mutex>::ResettableGuard(osl::Mutex&) <null> (libutllo.so+0x0000001004d5)
    #5 ItemHolder1::impl_releaseAllItems() /home/rm/src/libo/unotools/source/config/itemholder1.cxx:120 (libutllo.so+0x0000000fec09)
    #6 ItemHolder1::disposing(com::sun::star::lang::EventObject const&) /home/rm/src/libo/unotools/source/config/itemholder1.cxx:94 (libutllo.so+0x0000000fe8eb)
    #7 cppu::OInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:304 (libuno_cppuhelpergcc3.so.3+0x000000086b45)
    #8 cppu::OMultiTypeInterfaceContainerHelper::disposeAndClear(com::sun::star::lang::EventObject const&) /home/rm/src/libo/cppuhelper/source/interfacecontainer.cxx:477 (libuno_cppuhelpergcc3.so.3+0x000000087b1e)
    #9 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:106 (libuno_cppuhelpergcc3.so.3+0x00000008006c)
    #10 <null> <null> (libconfigmgrlo.so+0x0000000bd0ae)
    #11 cppu::ComponentContext::disposing() /home/rm/src/libo/cppuhelper/source/component_context.cxx:479 (libuno_cppuhelpergcc3.so.3+0x00000003f97e)
    #12 cppu::WeakComponentImplHelperBase::dispose() /home/rm/src/libo/cppuhelper/source/implbase.cxx:107 (libuno_cppuhelpergcc3.so.3+0x0000000800a0)
    #13 cppu::PartialWeakComponentImplHelper<com::sun::star::uno::XComponentContext, com::sun::star::container::XNameContainer>::dispose() <null> (libuno_cppuhelpergcc3.so.3+0x00000005c6ae)
    #14 deinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:84 (libvclbootstrapprotector.so+0x0000000029cb)
    #15 LinkStubdeinitHook /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:67 (libvclbootstrapprotector.so+0x000000002825)
    #16 Link<LinkParamNone*, void>::Call(LinkParamNone*) const /home/rm/src/libo/include/tools/link.hxx:84 (libvcllo.so+0x0000006a6d77)
    #17 DeInitVCL() /home/rm/src/libo/vcl/source/app/svmain.cxx:504 (libvcllo.so+0x000000bd5397)
    #18 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:52 (libvclbootstrapprotector.so+0x000000002714)
    #19 ~Protector /home/rm/src/libo/test/source/vclbootstrapprotector.cxx:53 (libvclbootstrapprotector.so+0x00000000276b)
    #20 CppUnit::ProtectorChain::pop() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/ProtectorChain.cpp:47 (libcppunit-1.13.so.0+0x0000000b4b2e)
    #21 CppUnit::TestResult::popProtector() /home/rm/src/libo/workdir/UnpackedTarball/cppunit/src/cppunit/TestResult.cpp:195 (libcppunit-1.13.so.0+0x0000000d6fba)
    #22 run /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:314 (cppunittester+0x00000040a0f9)
    #23 sal_main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:455 (cppunittester+0x00000040ad19)
    #24 main /home/rm/src/libo/sal/cppunittester/cppunittester.cxx:362 (cppunittester+0x00000040a852)

-------------- next part --------------
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI___pthread_mutex_lock (mutex=0x440033004c0047) at ../nptl/pthread_mutex_lock.c:67
67	../nptl/pthread_mutex_lock.c: File o directory non esistente.
[Current thread is 1 (Thread 0x7fe2e679b700 (LWP 16273))]
(gdb) 
(gdb) bt full
#0  0x00007fe2e639eaa4 in __GI___pthread_mutex_lock (mutex=0x440033004c0047)
    at ../nptl/pthread_mutex_lock.c:67
        __PRETTY_FUNCTION__ = "__pthread_mutex_lock"
        type = <optimized out>
        id = <optimized out>
#1  0x00007fe2d7e15b6e in osl_acquireMutex () at /usr/lib/libreoffice/program/libuno_sal.so.3
#2  0x00007fe2e1f617c4 in ItemHolder1::impl_addItem(EItem) (this=<optimized out>)
    at ./include/osl/mutex.hxx:56
        pIt = <optimized out>
        aNewItem = {pItem = 0x0, eItem = 220344208}
#3  0x00007fe2e1f617c4 in ItemHolder1::impl_addItem(EItem) (t=..., this=<synthetic pointer>)
    at ./include/osl/mutex.hxx:163
        pIt = <optimized out>
        aNewItem = {pItem = 0x0, eItem = 220344208}
#4  0x00007fe2e1f617c4 in ItemHolder1::impl_addItem(EItem) (rT=..., this=<synthetic pointer>)
    at ./include/osl/mutex.hxx:209
        pIt = <optimized out>
        aNewItem = {pItem = 0x0, eItem = 220344208}
#5  0x00007fe2e1f617c4 in ItemHolder1::impl_addItem(EItem) (this=0x2edcf10, eItem=E_SYSLOCALEOPTIONS)
    at ./unotools/source/config/itemholder1.cxx:100
        pIt = <optimized out>
        aNewItem = {pItem = 0x0, eItem = 220344208}
#6  0x00007fe2e1f8c8ea in SvtSysLocaleOptions::SvtSysLocaleOptions() (this=0x7ffe0d222f90)
    at ./unotools/source/config/syslocaleoptions.cxx:520
        aGuard = {pT = 0x2f6f130}
#7  0x00007fe2e13bac38 in lo_initialize(LibreOfficeKit*, char const*, char const*) ()
    at ./desktop/source/lib/init.cxx:1815
        aLangISO = {pData = 0x2f81e30}
        aLocale = 
          {maLocale = {Language = {pData = 0x7fe2d7e1f5a0}, Country = {pData = 0x7fe2d7e1f5a0}, Variant = {pData = 0x7fe2d7e1f5a0}}, maBcp47 = {pData = 0x2f81e30}, mnLangID = 1023, mpImpl = std::shared_ptr (empty) 0x0, mbSystemLocale = false, mbInitializedBcp47 = true, mbInitializedLocale = false, mbInitializedLangID = false, mbIsFallback = false}
        aLocalOptions = 
          {<utl::detail::Options> = {<utl::ConfigurationBroadcaster> = {_vptr.ConfigurationBroadcaster = 0x7fe2e3941ea8 <vtable for SvtSysLocaleOptions+16>, mpList = 0x0, m_nBroadcastBlocked = 0, m_nBlockedHint = 0}, <utl::ConfigurationListener> = {_vptr.ConfigurationListener = 0x7fe2e3941ed8 <vtable for SvtSysLocaleOptions+64>}, <No data fields>}, static pOptions = 0x40ca7c0, static nRefCount = 0}
        eStage = <optimized out>
        bPreInited = false
        pLib = 0x3ff3760
        bViewCallback = false
        aAppPath = {pData = 0x416e340}
        aAppURL = {pData = 0x4198670}
#8  0x00007fe2e13bac38 in lo_initialize(LibreOfficeKit*, char const*, char const*) (pThis=pThis at entry=0x3ff3760, pAppPath=pAppPath at entry=0x7fe2e3f05cb4 "/usr/lib/libreoffice/program/", pUserProfileUrl=pUserProfileUrl at entry=0x0) at ./desktop/source/lib/init.cxx:2020
        eStage = <optimized out>
        bPreInited = false
        pLib = 0x3ff3760
        bViewCallback = false



More information about the LibreOffice mailing list