I get a segmentation violation in a call to defaultBootstrap_InitialComponentContext.
This is hidden in gdb output, except when run against libgcc3_uno debug library (LO 4.2.8 SDK) as in the following snippet (full output below):
#18 0x00007f6d73811120 in cppu::defaultBootstrap_InitialComponentContext (
iniUri=...)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppuhelper/source/defaultbootstrap.cxx:84
#19 0x00007f6d7381203c in cppu::defaultBootstrap_InitialComponentContext ()
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppuhelper/source/defaultbootstrap.cxx:110
#20 0x00007f6d7508e342 in grt::openoffice::Connection::openConnection() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/openoffice/oocommon/liboocommon.so
#21 0x000000000041bba1 in SpreadsheetOpenofficeService::initServiceLimited(boost::program_options::variables_map&) ()
#22 0x00007f6d74dd862b in zw::ZmqApplicationBase::exec() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/zmqworkers/zw-common/zw-common-server/libzw-common-server.so
#23 0x0000000000418027 in main ()
Running with standard libgcc3_uno (LO 4.2.8 SDK) I get:
Program received signal SIGSEGV, Segmentation fault.
0x00007fe688433f3b in ?? () from /usr/lib/ure/lib/libgcc3_uno.so
(gdb) bt
#0 0x00007fe688433f3b in ?? () from /usr/lib/ure/lib/libgcc3_uno.so
#1 0x00007fe68843b7c4 in privateSnippetExecutor ()
from /usr/lib/ure/lib/libgcc3_uno.so
#2 0x00007fe68e51aaf5 in grt::openoffice::Connection::openConnection() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/openoffice/oocommon/liboocommon.so
#3 0x000000000041bba1 in SpreadsheetOpenofficeService::initServiceLimited(boost::program_options::variables_map&) ()
#4 0x00007fe68e26462b in zw::ZmqApplicationBase::exec() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/zmqworkers/zw-common/zw-common-server/libzw-common-server.so
#5 0x0000000000418027 in main ()
The reference to privateSnippetExecutor recurs in other scenarios (including runs with OO 4.1.2 SDK!). With LO 5.2 SDK I get:
Program received signal SIGSEGV, Segmentation fault.
0x00007f770a42d723 in cpp_vtable_call ()
from /opt/libreoffice5.2/program/libgcc3_uno.so
(gdb) bt
#0 0x00007f770a42d723 in cpp_vtable_call ()
from /opt/libreoffice5.2/program/libgcc3_uno.so
#1 0x00007f770a4346ea in privateSnippetExecutor ()
from /opt/libreoffice5.2/program/libgcc3_uno.so
#2 0x00007f7711406af5 in grt::openoffice::Connection::openConnection() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/openoffice/oocommon/liboocommon.so
#3 0x000000000041bba1 in SpreadsheetOpenofficeService::initServiceLimited(boost::program_options::variables_map&) ()
#4 0x00007f771115062b in zw::ZmqApplicationBase::exec() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/zmqworkers/zw-common/zw-common-server/libzw-common-server.so
#5 0x0000000000418027 in main ()
Compiling with libgcc_uno debug library (LO 4.2.8 SDK) but running with standard gives:
Program received signal SIGSEGV, Segmentation fault.
0x00007eff6830cf3b in Reference (pInterface=0xb751b0, this=<optimised out>)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/include/com/sun/star/uno/Reference.hxx:140
140 /build/libreoffice-wPXuqd/libreoffice-4.2.8/include/com/sun/star/uno/Reference.hxx: No such file or directory.
(gdb) bt
#0 0x00007eff6830cf3b in Reference (pInterface=0xb751b0, this=<optimised out>)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/include/com/sun/star/uno/Reference.hxx:140
From /usr/include/com/sun/star/uno/Reference.hxx:
135 template< class interface_type >
136 inline Reference< interface_type >::Reference( interface_type * pInterface ) SAL_THROW(())
137 {
138 _pInterface = castToXInterface(pInterface);
139 if (_pInterface)
140 _pInterface->acquire();
141 }
#1 cpp_vtable_call (nFunctionIndex=1, nVtableOffset=<optimised out>,
gpreg=<optimised out>, fpreg=0x7ffd66041c50, ovrflw=0x7ffd66041ca0,
pRegisterReturn=0x7ffd66041c00)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx:285
#2 0x00007eff683147c4 in privateSnippetExecutor ()
from /usr/lib/ure/lib/libgcc3_uno.so
#3 0x00007eff6ead5af5 in grt::openoffice::Connection::openConnection() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/openoffice/oocommon/liboocommon.so
#4 0x000000000041bba1 in SpreadsheetOpenofficeService::initServiceLimited(boost::program_options::variables_map&) ()
#5 0x00007eff6e81f62b in zw::ZmqApplicationBase::exec() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/zmqworkers/zw-common/zw-common-server/libzw-common-server.so
#6 0x0000000000418027 in main ()
Compiling and running with libgcc_uno debug library (LO 4.2.8 SDK) gives:
Program received signal SIGSEGV, Segmentation fault.
_dl_relocate_object (scope=0x1205348, reloc_mode=reloc_mode@entry=1,
consider_profiling=consider_profiling@entry=0) at dl-reloc.c:238
238 dl-reloc.c: No such file or directory.
(gdb) bt
#0 _dl_relocate_object (scope=0x1205348, reloc_mode=reloc_mode@entry=1,
consider_profiling=consider_profiling@entry=0) at dl-reloc.c:238
#1 0x00007f6d752c4ca1 in dl_open_worker (a=a@entry=0x7ffd0ea5b218)
at dl-open.c:427
#2 0x00007f6d752bffc4 in _dl_catch_error (
objname=objname@entry=0x7ffd0ea5b208,
errstring=errstring@entry=0x7ffd0ea5b210,
mallocedp=mallocedp@entry=0x7ffd0ea5b200,
operate=operate@entry=0x7f6d752c4960 <dl_open_worker>,
args=args@entry=0x7ffd0ea5b218) at dl-error.c:187
#3 0x00007f6d752c437b in _dl_open (
file=0x7ffd0ea5b470 "/usr/lib/ure/lib/libgcc3_uno.so", mode=-2147483391,
caller_dlopen=<optimised out>, nsid=-2, argc=10, argv=0x7ffd0ea5d958,
env=0x7ffd0ea5d9b0) at dl-open.c:661
#4 0x00007f6d72a7202b in dlopen_doit (a=a@entry=0x7ffd0ea5b430) at dlopen.c:66
#5 0x00007f6d752bffc4 in _dl_catch_error (objname=0x11efbe0,
errstring=0x11efbe8, mallocedp=0x11efbd8,
operate=0x7f6d72a71fd0 <dlopen_doit>, args=0x7ffd0ea5b430)
at dl-error.c:187
#6 0x00007f6d72a7262d in _dlerror_run (
operate=operate@entry=0x7f6d72a71fd0 <dlopen_doit>,
args=args@entry=0x7ffd0ea5b430) at dlerror.c:163
#7 0x00007f6d72a720c1 in __dlopen (file=<optimised out>, mode=<optimised out>)
at dlopen.c:87
#8 0x00007f6d74627243 in osl_loadModule () from /usr/lib/libuno_sal.so.3
#9 0x00007f6d746061de in osl_loadModuleRelative ()
from /usr/lib/libuno_sal.so.3
#10 0x00007f6d73afb9b1 in cppu::detail::loadModule (name=...)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/loadmodule.cxx:44
#11 0x00007f6d73af09ee in (anonymous namespace)::loadEnv (cLibStem=...,
pEnv=pEnv@entry=0x1204af0)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/lbenv.cxx:1071
#12 0x00007f6d73af0f16 in (anonymous namespace)::initDefaultEnvironment (
rEnvDcp=..., pContext=pContext@entry=0x0)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/lbenv.cxx:1133
#13 0x00007f6d73af673d in (anonymous namespace)::uno_direct_getEnvironment (
ppEnv=0x7ffd0ea5c960, pEnvDcp=0x12049e0, pContext=0x0)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/lbenv.cxx:1170
#14 0x00007f6d73af06aa in uno_getEnvironment (ppEnv=0x7ffd0ea5c960,
pEnvDcp=<optimised out>, pContext=0x0)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/env_subst.cxx:44
#15 0x00007f6d73af00df in uno_getCurrentEnvironment (ppEnv=0x7ffd0ea5c960,
pTypeName=0x12049e0)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppu/source/uno/EnvStack.cxx:137
#16 0x00007f6d7383488c in getCurrent (typeName=...)
---Type <return> to continue, or q <return> to quit---
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/include/uno/environment.hxx:255
#17 cppuhelper::detail::create_bootstrap_macro_expander_factory ()
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppuhelper/source/macro_expander.cxx:200
#18 0x00007f6d73811120 in cppu::defaultBootstrap_InitialComponentContext (
iniUri=...)
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppuhelper/source/defaultbootstrap.cxx:84
#19 0x00007f6d7381203c in cppu::defaultBootstrap_InitialComponentContext ()
at /build/libreoffice-wPXuqd/libreoffice-4.2.8/cppuhelper/source/defaultbootstrap.cxx:110
#20 0x00007f6d7508e342 in grt::openoffice::Connection::openConnection() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/openoffice/oocommon/liboocommon.so
#21 0x000000000041bba1 in SpreadsheetOpenofficeService::initServiceLimited(boost::program_options::variables_map&) ()
#22 0x00007f6d74dd862b in zw::ZmqApplicationBase::exec() ()
from /var/lib/jenkins/jobs/WebGIS/workspace/trunk/build/release/zmqworkers/zw-common/zw-common-server/libzw-common-server.so
#23 0x0000000000418027 in main ()
Can you advise on how to resolve this problem?
solven