segfault in DocumentLoader example

Oliver Kowalke oliver.kowalke at
Tue Jul 17 19:47:31 UTC 2018

I copied the C++ DocumentLoader example, but I get an segmentation fault.

The segfault is caused by invoking


Thread 1 "generator" received signal SIGABRT, Aborted.
0x00007ffff699386b in raise () from /usr/lib/
(gdb) bt
#0  0x00007ffff699386b in raise () from /usr/lib/
#1  0x00007ffff697e40e in abort () from /usr/lib/
#2  0x00007ffff734f44a in __gnu_cxx::__verbose_terminate_handler () at
#3  0x00007ffff73559d6 in __cxxabiv1::__terminate(void (*)()) () at
#4  0x00007ffff7355a13 in std::terminate () at
#5  0x00007ffff7355c48 in __cxxabiv1::__cxa_throw (obj=<optimized out>,
tinfo=0x555555764d48 <typeinfo for
    dest=0x7ffff78d8c10) at
#6  0x00007ffff78d3506 in ?? () from
#7  0x00007ffff794869e in ?? () from
#8  0x00007ffff78e9c7e in
cppu::defaultBootstrap_InitialComponentContext(rtl::OUString const&) ()
   from /usr/lib/libreoffice/program/
#9  0x00007ffff78eac91 in cppu::defaultBootstrap_InitialComponentContext()
() from /usr/lib/libreoffice/program/
#10 0x0000555555556009 in sal_main_with_args (argc=4, argv=0x7fffffffe708)
at generator.cpp:84
#11 0x0000555555555f66 in main (argc=4, argv=0x7fffffffe708) at

I'm using libreoffice-sdk 6.0.5, gcc-8.1.1

command line was: ./generator -env:URE_MORE_TYPES=file://"./offapi.rdb"

Libreoffice was started with: soffice

Could I get a hint how to fix it?
ty, Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list