Hi,
I copied the C++ DocumentLoader example, but I get an segmentation fault.
The segfault is caused by invoking
`cppu::defaultBootstrap_InitialComponentContext()`
gdb:
Thread 1 "generator" received signal SIGABRT, Aborted.
0x00007ffff699386b in raise () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff699386b in raise () from /usr/lib/libc.so.6
#1 0x00007ffff697e40e in abort () from /usr/lib/libc.so.6
#2 0x00007ffff734f44a in __gnu_cxx::__verbose_terminate_handler () at
/build/gcc/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#3 0x00007ffff73559d6 in __cxxabiv1::__terminate(void (*)()) () at
/build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4 0x00007ffff7355a13 in std::terminate () at
/build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5 0x00007ffff7355c48 in __cxxabiv1::__cxa_throw (obj=<optimized out>,
tinfo=0x555555764d48 <typeinfo for
com::sun::star::uno::DeploymentException>,
dest=0x7ffff78d8c10) at
/build/gcc/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
#6 0x00007ffff78d3506 in ?? () from
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
#7 0x00007ffff794869e in ?? () from
/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
#8 0x00007ffff78e9c7e in
cppu::defaultBootstrap_InitialComponentContext(rtl::OUString const&) ()
from /usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
#9 0x00007ffff78eac91 in cppu::defaultBootstrap_InitialComponentContext()
() from /usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3
#10 0x0000555555556009 in sal_main_with_args (argc=4, argv=0x7fffffffe708)
at generator.cpp:84
#11 0x0000555555555f66 in main (argc=4, argv=0x7fffffffe708) at
generator.cpp:67
I'm using libreoffice-sdk 6.0.5, gcc-8.1.1
command line was: ./generator -env:URE_MORE_TYPES=file://"./offapi.rdb"
"./test.odt"
"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"
Libreoffice was started with: soffice
"-accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"
Could I get a hint how to fix it?
ty, Oliver
Context
- segfault in DocumentLoader example · Oliver Kowalke
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.