<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div style="font-family: Arial; font-size: 13px;">
<p style="margin: 0px; font-size: 13px; font-family: Arial;">Dear
Devs:</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">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.<br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">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:</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">$
/opt/libreofficedev7.3/program/soffice<br>
warn:configmgr:1397383:1397383:configmgr/source/xcuparser.cxx:901:
ignoring modify of unknown set member node "StarOffice XML
(Base) Report" in
<a class="moz-txt-link-rfc2396E" href="file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd">"file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd"</a><br>
warn:configmgr:1397383:1397383:configmgr/source/xcuparser.cxx:901:
ignoring modify of unknown set member node "StarOffice XML
(Base) Report Chart" in
<a class="moz-txt-link-rfc2396E" href="file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd">"file:///opt/libreofficedev7.3/program/../share/registry/res/fcfg_langpack_en-US.xcd"</a><br>
terminate called after throwing an instance of
'com::sun::star::deployment::DeploymentException'<br>
Unspecified Application Error<br>
<br>
<br>
Fatal exception: Signal 6<br>
Stack:<br>
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4623)[0x7f2f9175c623]<br>
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4857)[0x7f2f9175c857]<br>
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4a8c)[0x7f2f9175ca8c]<br>
/lib64/libc.so.6(+0x3ea70)[0x7f2f91239a70]<br>
/lib64/libc.so.6(+0x8ec4c)[0x7f2f91289c4c]<br>
/lib64/libc.so.6(raise+0x16)[0x7f2f912399c6]<br>
/lib64/libc.so.6(abort+0xcf)[0x7f2f912237f4]<br>
/opt/libreofficedev7.3/program/libvcllo.so(+0x10ca2c3)[0x7f2f893592c3]<br>
/opt/libreofficedev7.3/program/libvcllo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0x22)[0x7f2f89099a80]<br>
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x344e1)[0x7f2f914494e1]<br>
/opt/libreofficedev7.3/program/libvcllo.so(+0xe2a5f2)[0x7f2f890b95f2]<br>
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0x1ef55)[0x7f2f916d6f55]<br>
/opt/libreofficedev7.3/program/libuno_sal.so.3(+0xa4a51)[0x7f2f9175ca51]<br>
/lib64/libc.so.6(+0x3ea70)[0x7f2f91239a70]<br>
/lib64/libc.so.6(+0x8ec4c)[0x7f2f91289c4c]<br>
/lib64/libc.so.6(raise+0x16)[0x7f2f912399c6]<br>
/lib64/libc.so.6(abort+0xcf)[0x7f2f912237f4]<br>
/lib64/libstdc++.so.6(+0xa2b57)[0x7f2f9104fb57]<br>
/lib64/libstdc++.so.6(+0xae3dc)[0x7f2f9105b3dc]<br>
/lib64/libstdc++.so.6(+0xae447)[0x7f2f9105b447]<br>
/lib64/libstdc++.so.6(+0xae6a8)[0x7f2f9105b6a8]<br>
/opt/libreofficedev7.3/program/../program/libdeployment.so(+0x3d90e)[0x7f2f543b590e]<br>
/opt/libreofficedev7.3/program/libdeploymentmisclo.so(_ZN7dp_misc16syncRepositoriesEbRKN3com3sun4star3uno9ReferenceINS2_3ucb19XCommandEnvironmentEEE+0x1b3)[0x7f2f8fddf849]<br>
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x6a810)[0x7f2f9147f810]<br>
/opt/libreofficedev7.3/program/libsofficeapp.so(+0x3533f)[0x7f2f9144a33f]<br>
/opt/libreofficedev7.3/program/libvcllo.so(_Z10ImplSVMainv+0x209)[0x7f2f890b9853]<br>
/opt/libreofficedev7.3/program/libvcllo.so(_Z6SVMainv+0x9)[0x7f2f890b9974]<br>
/opt/libreofficedev7.3/program/libsofficeapp.so(soffice_main+0x244)[0x7f2f914b1295]<br>
/opt/libreofficedev7.3/program/soffice.bin[0x400901]<br>
/opt/libreofficedev7.3/program/soffice.bin[0x4008e7]<br>
/lib64/libc.so.6(+0x29550)[0x7f2f91224550]<br>
/lib64/libc.so.6(__libc_start_main+0x89)[0x7f2f91224609]<br>
/opt/libreofficedev7.3/program/soffice.bin[0x4007c5]</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">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).</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">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?</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"> <br>
</p>
</div>
<div style="font-family: Tahoma, sans-serif; font-size: 13px;
padding-top: 5px; border-top: 1px solid #b5c4df;"><strong>From: </strong>Kevin
Suo [<a class="moz-txt-link-freetext" href="mailto:suokunlong@126.com">mailto:suokunlong@126.com</a>]<br>
<strong>Sent: </strong>Wednesday, September 14, 2022 05:33 PM +08<br>
<strong>To: </strong><a class="moz-txt-link-abbreviated" href="mailto:libreoffice@lists.freedesktop.org">libreoffice@lists.freedesktop.org</a><br>
<strong>Subject: </strong>terminate called after throwing an
instance of 'com::sun::star::deployment::DeploymentException'</div>
<br>
<div type="cite"
cite="mid:e908b0f2-5dce-a843-4991-bb8be6b6480d@126.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div style="font-family: Arial; font-size: 13px;">
<p style="margin: 0px; font-size: 13px; font-family: Arial;">Below
is a backtrace without debug symbols:</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">(gdb)
bt<br>
#0 __pthread_kill_implementation (threadid=<optimized
out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at
pthread_kill.c:44<br>
#1 0x00007ffff2daecb3 in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at pthread_kill.c:78<br>
#2 0x00007ffff2d5e9c6 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26<br>
#3 0x00007ffff2d487f4 in __GI_abort () at abort.c:79<br>
#4 0x00007ffff04c2b57 in
__gnu_cxx::__verbose_terminate_handler() () at
../../../../libstdc++-v3/libsupc++/vterminate.cc:95<br>
#5 0x00007ffff04ce3dc in __cxxabiv1::__terminate(void (*)())
(handler=<optimized out>) at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48<br>
#6 0x00007ffff04ce447 in std::terminate() () at
../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58<br>
#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)<br>
at ../../../../libstdc++-v3/libsupc++/eh_throw.cc:98<br>
#8 0x00007ffff3e30836 in () at
/opt/libreoffice7.3/program/libmergedlo.so<br>
#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<br>
#10 0x00007ffff539859a in () at
/opt/libreoffice7.3/program/libmergedlo.so<br>
#11 0x00007ffff539125e in () at
/opt/libreoffice7.3/program/libmergedlo.so<br>
#12 0x00007ffff650b356 in ImplSVMain() () at
/opt/libreoffice7.3/program/libmergedlo.so<br>
#13 0x00007ffff53af69d in soffice_main () at
/opt/libreoffice7.3/program/libmergedlo.so<br>
#14 0x000000000040106b in ()<br>
#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<br>
#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<br>
#17 0x00000000004010a5 in ()</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">Not
sure whether it is possible to generate a bt with debug
symbols for this case, but I will try.<br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"> <br>
</p>
</div>
<div style="font-family: Tahoma, sans-serif; font-size: 13px;
padding-top: 5px; border-top: 1px solid #b5c4df;"><strong>From:
</strong>Kevin Suo [<a class="moz-txt-link-freetext"
href="mailto:suokunlong@126.com" moz-do-not-send="true">mailto:suokunlong@126.com</a>]<br>
<strong>Sent: </strong>Wednesday, September 14, 2022 05:11 PM
+08<br>
<strong>To: </strong><a class="moz-txt-link-abbreviated
moz-txt-link-freetext"
href="mailto:libreoffice@lists.freedesktop.org"
moz-do-not-send="true">libreoffice@lists.freedesktop.org</a><br>
<strong>Subject: </strong>terminate called after throwing an
instance of 'com::sun::star::deployment::DeploymentException'</div>
<br>
<div type="cite"
cite="mid:046b8939-5a47-c4e0-2c0a-7587de3fcb05@126.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<div style="font-family: Arial; font-size: 13px;">
<p style="margin: 0px; font-size: 13px; font-family: Arial;">soffice
does not have "x" permission after the rpm installation:</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">$
ls -l /opt/libreoffice7.3/program/soffice<br>
-rw-r--r-- 1 root root 6731 9月 14 15:45
/opt/libreoffice7.3/program/soffice</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">Problem
still exists after I chmod +x:<br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;">$
sudo chmod +x /opt/libreoffice7.3/program/soffice<br>
$ /opt/libreoffice7.3/program/soffice<br>
terminate called after throwing an instance of
'com::sun::star::deployment::DeploymentException'<br>
Unspecified Application Error</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"><br>
</p>
<p style="margin: 0px; font-size: 13px; font-family: Arial;"> <br>
</p>
</div>
<div style="font-family: Tahoma, sans-serif; font-size: 13px;
padding-top: 5px; border-top: 1px solid #b5c4df;"><strong>From:
</strong>Michael Stahl [<a class="moz-txt-link-freetext"
href="mailto:mst@libreoffice.org" moz-do-not-send="true">mailto:mst@libreoffice.org</a>]<br>
<strong>Sent: </strong>Wednesday, September 14, 2022 04:36 PM
+08<br>
<strong>To: </strong>Kevin Suo; libreoffice-dev<br>
<strong>Subject: </strong>terminate called after throwing an
instance of 'com::sun::star::deployment::DeploymentException'</div>
<br>
<div type="cite"
cite="mid:375b377c-d148-4ee6-9e50-ff17a748c7ad@libreoffice.org">On
12.09.22 15:35, Kevin Suo wrote: <br>
<br>
<blockquote type="cite">However, if I install the RPMs: <br>
<br>
$ sudo dnf install
./workdir/installation/LibreOfficeDev/rpm/install/LibreOfficeDev_7.3.7.0.0_Linux_x86-64_rpm/RPMS/*.rpm<br>
<br>
and then run the installed application, I got the following
error: <br>
<br>
$ /opt/libreofficedev7.3/program/soffice.bin <br>
terminate called after throwing an instance of
'com::sun::star::deployment::DeploymentException' <br>
Unspecified Application Error <br>
</blockquote>
<br>
running "soffice.bin" directly is not supported. you need to
run "soffice" or similar wrapper to start LO. <br>
</div>
</div>
</div>
</body>
</html>