2017-01-16 11:55 GMT+01:00 Miklos Vajna <vmiklos@collabora.co.uk>:
Hi Tomáš,
On Fri, Jan 06, 2017 at 10:56:04AM +0100, Tomáš Chvátal <
tomas.chvatal@gmail.com> wrote:
Ah now i get it. Well it happens always on the same test:
[ 649s] trying to instantiate implementation
"com.sun.star.wizards.agenda.CallWizard"
[ 649s] unknown:0:(anonymous namespace)::Test::test
[ 649s] uncaught exception of type std::bad_alloc
[ 649s] - std::bad_alloc
Here is how I would continue debugging this. Add this after the
SAL_DEBUG() that prints the service name:
if (i.first == "com.sun.star.wizards.agenda.CallWizard")
SAL_DEBUG("foo");
Then in gdb you can put a breakpoint on the SAL_DEBUG("foo"); line,
before the test attempts to instantiate
com.sun.star.wizards.agenda.CallWizard. When you hit the breakpoint, do
"catch throw" and "continue". Hopefully that'll show us where
std::bad_alloc is thrown.
Hi, got to it and attaching the trace of the point. Seems like if I just
break there and then catch the bad_alloc it stops on the right place finaly
:)
Cheers
Tom
(gdb) bt
#0 0x00007ffff764f870 in __cxa_throw () at /usr/lib64/libstdc++.so.6
#1 0x00007fffa387f4d4 in com::sun::star::uno::Sequence<com::sun::star::uno::Any>::Sequence(int) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/include/com/sun/star/uno/Sequence.hxx:93
#2 0x00007fffa388069b in pyuno::RuntimeCargo::getUnoModule() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/inc/pyuno.hxx:107
#3 0x00007fffa388069b in pyuno::RuntimeCargo::getUnoModule() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/module/pyuno_runtime.cxx:159
#4 0x00007fffa388069b in pyuno::RuntimeCargo::getUnoModule() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/module/pyuno_runtime.cxx:1032
#5 0x00007fffa3886bd0 in pyuno::Runtime::extractUnoException(pyuno::PyRef const&, pyuno::PyRef
const&, pyuno::PyRef const&) const ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/module/pyuno_runtime.cxx:909
#6 0x00007fffa401a0f5 in
pyuno_loader::CreateInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/loader/pyuno_loader.cxx:73
#7 0x00007fffa401a0f5 in
pyuno_loader::CreateInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/loader/pyuno_loader.cxx:87
#8 0x00007fffa401a0f5 in
pyuno_loader::CreateInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/loader/pyuno_loader.cxx:98
#9 0x00007fffa401a0f5 in
pyuno_loader::CreateInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/pyuno/source/loader/pyuno_loader.cxx:251
#10 0x00007ffff5fedc8b in
cppu::OSingleFactoryHelper::createInstanceEveryTime(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/factory.cxx:149
#11 0x00007ffff5fecb0b in
cppu::OFactoryComponentHelper::createInstanceWithContext(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/factory.cxx:190
#12 0x00007ffff5fecb0b in
cppu::OFactoryComponentHelper::createInstanceWithContext(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/factory.cxx:412
#13 0x00007ffff60248a2 in
cppuhelper::ServiceManager::Data::Implementation::createInstance(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, bool) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/servicemanager.cxx:695
#14 0x00007ffff6027970 in cppuhelper::ServiceManager::createInstanceWithContext(rtl::OUString
const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/servicemanager.cxx:1050
#15 0x00007ffff60255ca in
cppuhelper::ServiceManager::loadImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, std::shared_ptr<cppuhelper::ServiceManager::Data::Implementation>&) () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/servicemanager.cxx:860
#16 0x00007ffff6027849 in
cppuhelper::ServiceManager::findServiceImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>
const&, rtl::OUString const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/servicemanager.cxx:1904
#17 0x00007ffff602795a in cppuhelper::ServiceManager::createInstanceWithContext(rtl::OUString
const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) ()
at /home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/cppuhelper/source/servicemanager.cxx:1047
#18 0x00007fffdf106966 in createInstance() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/postprocess/qa/services.cxx:305
#19 0x00007fffdf10c119 in test() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/postprocess/qa/services.cxx:270
#20 0x00007ffff7bbe9f2 in CppUnit::TestCaseMethodFunctor::operator()() const () at
/usr/lib64/libcppunit-1.13.so.0
#21 0x00007ffff64d4793 in protect() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/unotest/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx:65
#22 0x00007ffff7bb5213 in CppUnit::DefaultProtector::protect(CppUnit::Functor const&,
CppUnit::ProtectorContext const&) () at /usr/lib64/libcppunit-1.13.so.0
#23 0x00007ffff7bbbbb5 in CppUnit::ProtectorChain::protect(CppUnit::Functor const&,
CppUnit::ProtectorContext const&) () at /usr/lib64/libcppunit-1.13.so.0
#24 0x00007ffff7bc465c in CppUnit::TestResult::protect(CppUnit::Functor const&, CppUnit::Test*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
at /usr/lib64/libcppunit-1.13.so.0
#25 0x00007ffff7bbe830 in CppUnit::TestCase::run(CppUnit::TestResult*) () at
/usr/lib64/libcppunit-1.13.so.0
#26 0x00007ffff7bbed03 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () at
/usr/lib64/libcppunit-1.13.so.0
#27 0x00007ffff7bbec1e in CppUnit::TestComposite::run(CppUnit::TestResult*) () at
/usr/lib64/libcppunit-1.13.so.0
#28 0x00007ffff7bbed03 in CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) () at
/usr/lib64/libcppunit-1.13.so.0
#29 0x00007ffff7bbec1e in CppUnit::TestComposite::run(CppUnit::TestResult*) () at
/usr/lib64/libcppunit-1.13.so.0
#30 0x00007ffff7bc4582 in CppUnit::TestResult::runTest(CppUnit::Test*) () at
/usr/lib64/libcppunit-1.13.so.0
#31 0x00007ffff7bc702e in CppUnit::TestRunner::run(CppUnit::TestResult&,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () at
/usr/lib64/libcppunit-1.13.so.0
#32 0x0000000000404423 in run() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/sal/cppunittester/cppunittester.cxx:305
#33 0x0000000000404dc4 in sal_main() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/sal/cppunittester/cppunittester.cxx:455
#34 0x000000000040336b in main() () at
/home/abuild/rpmbuild/BUILD/libreoffice-5.3.0.1/sal/cppunittester/cppunittester.cxx:362
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.