Dear Devs:
I
tried to investigate this issue (i.e., DeploymentException when
run the rpm package, while no exception when run within the
instdir) further, but with no success. Below are some further
information.
1. I compiled the source with --enable-dbgutil (and --with-package-format=rpm). However, the rpm package generated seems not having any debug symbols, although the instdir does have debug symbols. As a result, I can only get the following output:
$
/opt/libreofficedev7.3/program/soffice
warn:configmgr:1397383:1397383:configmgr/source/xcuparser.cxx:901:
ignoring modify of unknown set member node "StarOffice XML
(Base) Report" in
"file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd"
warn:configmgr:1397383:1397383:configmgr/source/xcuparser.cxx:901:
ignoring modify of unknown set member node "StarOffice XML
(Base) Report Chart" in
"file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd"
terminate called after throwing an instance of
'com::sun::star::deployment::DeploymentException'
Unspecified Application Error
Fatal exception: Signal 6
Stack:
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4623)[0x7f2f9175c623]
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4857)[0x7f2f9175c857]
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4a8c)[0x7f2f9175ca8c]
/lib64/libc.so.6(+0x3ea70)[0x7f2f91239a70]
/lib64/libc.so.6(+0x8ec4c)[0x7f2f91289c4c]
/lib64/libc.so.6(raise+0x16)[0x7f2f912399c6]
/lib64/libc.so.6(abort+0xcf)[0x7f2f912237f4]
/opt/libreofficedev7.3/program/libvcllo.so(+0x10ca2c3)[0x7f2f893592c3]
/opt/libreofficedev7.3/program/libvcllo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0x22)[0x7f2f89099a80]
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x344e1)[0x7f2f914494e1]
/opt/libreofficedev7.3/program/libvcllo.so(+0xe2a5f2)[0x7f2f890b95f2]
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0x1ef55)[0x7f2f916d6f55]
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4a51)[0x7f2f9175ca51]
/lib64/libc.so.6(+0x3ea70)[0x7f2f91239a70]
/lib64/libc.so.6(+0x8ec4c)[0x7f2f91289c4c]
/lib64/libc.so.6(raise+0x16)[0x7f2f912399c6]
/lib64/libc.so.6(abort+0xcf)[0x7f2f912237f4]
/lib64/libstdc++.so.6(+0xa2b57)[0x7f2f9104fb57]
/lib64/libstdc++.so.6(+0xae3dc)[0x7f2f9105b3dc]
/lib64/libstdc++.so.6(+0xae447)[0x7f2f9105b447]
/lib64/libstdc++.so.6(+0xae6a8)[0x7f2f9105b6a8]
/opt/libreofficedev7.3/program/../program/libdeployment.so(+0x3d90e)[0x7f2f543b590e]
/opt/libreofficedev7.3/program/libdeploymentmisclo.so(_ZN7dp_misc16syncRepositoriesEbRKN3com3sun4star3uno9ReferenceINS2_3ucb19XCommandEnvironmentEEE+0x1b3)[0x7f2f8fddf849]
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x6a810)[0x7f2f9147f810]
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x3533f)[0x7f2f9144a33f]
/opt/libreofficedev7.3/program/libvcllo.so(_Z10ImplSVMainv+0x209)[0x7f2f890b9853]
/opt/libreofficedev7.3/program/libvcllo.so(_Z6SVMainv+0x9)[0x7f2f890b9974]
/opt/libreofficedev7.3/program/libsofficeapp.so(soffice_main+0x244)[0x7f2f914b1295]
/opt/libreofficedev7.3/program/soffice.bin[0x400901]
/opt/libreofficedev7.3/program/soffice.bin[0x4008e7]
/lib64/libc.so.6(+0x29550)[0x7f2f91224550]
/lib64/libc.so.6(__libc_start_main+0x89)[0x7f2f91224609]
/opt/libreofficedev7.3/program/soffice.bin[0x4007c5]
2. A gdb bt with the --enable-dbgutil build generated the same backtrace (i.e. without helpful dbg information as there is no debug symbol).
3. Question: with a --with-package-format=rpm and --enable-dbgutil, how can I get a backtrace with debug symbol when I run the binary in /opt/libreofficedev7.3/program/soffice?
Sent: Wednesday, September 14, 2022 05:33 PM +08
To: libreoffice@xxxxxxxxxxxxxxxxxxxxx
Subject: terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
Below is a backtrace without debug symbols:
(gdb)
bt
#0 __pthread_kill_implementation (threadid=<optimized
out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at
pthread_kill.c:44
#1 0x00007ffff2daecb3 in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff2d5e9c6 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff2d487f4 in __GI_abort () at abort.c:79
#4 0x00007ffff04c2b57 in
__gnu_cxx::__verbose_terminate_handler() () at
../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#5 0x00007ffff04ce3dc in __cxxabiv1::__terminate(void (*)())
(handler=<optimized out>) at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#6 0x00007ffff04ce447 in std::terminate() () at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#7 0x00007ffff04ce6a8 in __cxxabiv1::__cxa_throw(void*,
std::type_info*, void (*)(void*)) (obj=<optimized out>,
tinfo=0x7ffff7b71218 <typeinfo for
com::sun::star::deployment::DeploymentException>,
dest=0x7ffff4683110)
at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:98
#8 0x00007ffff3e30836 in () at
/opt/libreoffice7.3/program/libmergedlo.so
#9 0x00007ffff46e1d41 in dp_misc::syncRepositories(bool,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&) () at /opt/libreoffice7.3/program/libmergedlo.so
#10 0x00007ffff539859a in () at
/opt/libreoffice7.3/program/libmergedlo.so
#11 0x00007ffff539125e in () at
/opt/libreoffice7.3/program/libmergedlo.so
#12 0x00007ffff650b356 in ImplSVMain() () at
/opt/libreoffice7.3/program/libmergedlo.so
#13 0x00007ffff53af69d in soffice_main () at
/opt/libreoffice7.3/program/libmergedlo.so
#14 0x000000000040106b in ()
#15 0x00007ffff2d49550 in __libc_start_call_main
(main=main@entry=0x401060, argc=argc@entry=1,
argv=argv@entry=0x7fffffffe038) at
../sysdeps/nptl/libc_start_call_main.h:58
#16 0x00007ffff2d49609 in __libc_start_main_impl
(main=0x401060, argc=1, argv=0x7fffffffe038,
init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe028) at
../csu/libc-start.c:389
#17 0x00000000004010a5 in ()
Not
sure whether it is possible to generate a bt with debug
symbols for this case, but I will try.
Sent: Wednesday, September 14, 2022 05:11 PM +08
To: libreoffice@xxxxxxxxxxxxxxxxxxxxx
Subject: terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
soffice does not have "x" permission after the rpm installation:
$
ls -l /opt/libreoffice7.3/program/soffice
-rw-r--r-- 1 root root 6731 9月 14 15:45
/opt/libreoffice7.3/program/soffice
Problem
still exists after I chmod +x:
$
sudo chmod +x /opt/libreoffice7.3/program/soffice
$ /opt/libreoffice7.3/program/soffice
terminate called after throwing an instance of
'com::sun::star::deployment::DeploymentException'
Unspecified Application Error
Sent: Wednesday, September 14, 2022 04:36 PM +08
To: Kevin Suo; libreoffice-dev
Subject: terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
However, if I install the RPMs:
$ sudo dnf install ./workdir/installation/LibreOfficeDev/rpm/install/LibreOfficeDev_7.3.7.0.0_Linux_x86-64_rpm/RPMS/*.rpm
and then run the installed application, I got the following error:
$ /opt/libreofficedev7.3/program/soffice.bin
terminate called after throwing an instance of 'com::sun::star::deployment::DeploymentException'
Unspecified Application Error
running "soffice.bin" directly is not supported. you need to run "soffice" or similar wrapper to start LO.