Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77850 - [libreoffice] crash after launched

Attached to Project: Arch Linux
Opened by Dmytro Bagrii (dimich) - Tuesday, 14 March 2023, 14:35 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 16 March 2023, 19:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

LibreOffice application crashes after some actions (both -fresh and -still).

Steps to reproduce:

* Run libreoffice
* Select "Create: Writer Document" on left pane.
Dialog box appears: "Due to an error, LibreOffice crashed. All the files you were working on will now be saved. The next time LibreOffice is launched, your files will be recovered automatically."
Pressing "Ok" causes "LibreOffice will attempt to recover the state of the files you were working on before it crashed..." dialog to appear. After pressing "Discard All" and confirmation LibreOffice launcher appears again.
No messages in console.

* Run libreoffice
* Select "Help" -> "About LibreOffice" in menu
Window closes, in console:
[code]
$ libreoffice
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'

Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f263)[0x7f62ab532263]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f460)[0x7f62ab532460]
/usr/lib/libc.so.6(+0x38f50)[0x7f62ab222f50]
/usr/lib/libc.so.6(+0x878ec)[0x7f62ab2718ec]
/usr/lib/libc.so.6(gsignal+0x18)[0x7f62ab222ea8]
/usr/lib/libc.so.6(abort+0xd7)[0x7f62ab20c53d]
/usr/lib/libstdc++.so.6(+0x9a833)[0x7f62aae9a833]
/usr/lib/libstdc++.so.6(+0xa6d0c)[0x7f62aaea6d0c]
/usr/lib/libstdc++.so.6(+0xa6d79)[0x7f62aaea6d79]
/usr/lib/libstdc++.so.6(__cxa_rethrow+0x4f)[0x7f62aaea702f]
/usr/lib/libreoffice/program/libfwklo.so(+0x8f2ad)[0x7f62aa28f2ad]
/usr/lib/libreoffice/program/libfwklo.so(+0xde463)[0x7f62aa2de463]
/usr/lib/libreoffice/program/libsvxlo.so(+0x143ab4)[0x7f62a9543ab4]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x33df7)[0x7f62ab446df7]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x3403f)[0x7f62ab44703f]
/usr/lib/libreoffice/program/libvcllo.so(+0x70bddd)[0x7f62a7b0bddd]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f39a)[0x7f62ab53239a]
/usr/lib/libc.so.6(+0x38f50)[0x7f62ab222f50]
/usr/lib/libreoffice/program/libsfxlo.so(+0x1907eb)[0x7f62a9b907eb]
/usr/lib/libreoffice/program/libsfxlo.so(+0x1f08b2)[0x7f62a9bf08b2]
/usr/lib/libreoffice/program/libsfxlo.so(_ZN13SfxDispatcher7ExecuteEt11SfxCallModePK10SfxItemSetS3_t+0x1d0)[0x7f62a9bf72c0]
/usr/lib/libreoffice/program/libsfxlo.so(+0x227f91)[0x7f62a9c27f91]
/usr/lib/libreoffice/program/libsfxlo.so(+0x2283ad)[0x7f62a9c283ad]
/usr/lib/libreoffice/program/libfwklo.so(+0x2031bf)[0x7f62aa4031bf]
/usr/lib/libreoffice/program/libvcllo.so(_ZN4Menu6SelectEv+0x8f)[0x7f62a77d0f1f]
/usr/lib/libreoffice/program/libvcllo.so(+0x440108)[0x7f62a7840108]
/usr/lib/libreoffice/program/libvcllo.so(_ZN16SalUserEventList18DispatchUserEventsEb+0x189)[0x7f62a7ab68e9]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0xe5eb0)[0x7f62a0ee5eb0]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x19b)[0x7f62a4299afb]
/usr/lib/libglib-2.0.so.0(+0xb75d9)[0x7f62a42f65d9]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x32)[0x7f62a4297382]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0xef544)[0x7f62a0eef544]
/usr/lib/libreoffice/program/libvcllo.so(+0x706b13)[0x7f62a7b06b13]
/usr/lib/libreoffice/program/libvcllo.so(_ZN11Application7ExecuteEv+0x8e)[0x7f62a7b0c15e]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x3a9dc)[0x7f62ab44d9dc]
/usr/lib/libreoffice/program/libvcllo.so(_Z10ImplSVMainv+0x38a)[0x7f62a7b1094a]
/usr/lib/libreoffice/program/libsofficeapp.so(soffice_main+0x136)[0x7f62ab4642b6]
/usr/lib/libreoffice/program/soffice.bin(+0x1031)[0x55b57579d031]
/usr/lib/libc.so.6(+0x23790)[0x7f62ab20d790]
/usr/lib/libc.so.6(__libc_start_main+0x8a)[0x7f62ab20d84a]
/usr/lib/libreoffice/program/soffice.bin(+0x1065)[0x55b57579d065]
[/code]

Also reproduced after removing ~/.config/libreoffice

Additional info:
* libreoffice-fresh 7.5.1-1
* libreoffice-still 7.4.6-1
[code]
$ java --version
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7)
OpenJDK 64-Bit Server VM (build 19.0.2+7, mixed mode)
$
$ archlinux-java status
Available Java environments:
java-19-openjdk (default)
[/code]

The same with "openjdk 17.0.6", "openjdk 11.0.18", "java 19.0.2" (AUR jdk package) and "java 17.0.6 (AUR jdk-lts package).

Let me know if any additional information is required.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 16 March 2023, 19:28 GMT
Reason for closing:  Not a bug
Additional comments about closing:  both -fresh and -still have zxing-cpp in depends array and would always pull it in.
Comment by Dmytro Bagrii (dimich) - Tuesday, 14 March 2023, 18:59 GMT
I built libreoffice-still from sources with following changes:
==========
--- PKGBUILD
+++ PKGBUILD
@@ -37 +37 @@
-options=('!lto') # using --enable-lto (for parallel link-time optimization)
+options=('!lto' '!strip') # using --enable-lto (for parallel link-time optimization)
@@ -161,2 +161,2 @@
- CFLAGS=${CFLAGS/-g /-g1 }
- CXXFLAGS=${CXXFLAGS/-g /-g1 }
+# CFLAGS=${CFLAGS/-g /-g1 }
+# CXXFLAGS=${CXXFLAGS/-g /-g1 }
@@ -252 +252,2 @@
- --disable-dependency-tracking
+ --disable-dependency-tracking \
+ --enable-debug
==========
and it doesn't crash but there are some warnings in console. Output after creating new Writer Document attached.
Comment by Dmytro Bagrii (dimich) - Tuesday, 14 March 2023, 19:16 GMT
Hmm, i re-installed libreoffice-still and it didn't help. Then installed custom-built package, run it (it worked), and then installed package from repo - it started to work as well.
Comment by Toolybird (Toolybird) - Tuesday, 14 March 2023, 21:26 GMT
Seems to work fine here in a fresh install inside a test VM. Although, new glib2 is causing same warnings as shown here [1] which suggests libreoffice will need some patching for new glib2. Does coredumpctl report anything? If yes, then please post backtrace with symbols [2].

[1] https://github.com/ximion/appstream/issues/470
[2] https://wiki.archlinux.org/title/Debugging/Getting_traces#Debuginfod
Comment by Dmytro Bagrii (dimich) - Tuesday, 14 March 2023, 22:04 GMT
No core was dumped (i have custom /proc/sys/kernel/core_pattern, so curedumpctl is useless, i just enable coredumps with `ulimit -c unlimited`). Looks like exception is catched internally and no default handler executed.
Comment by Andreas Radke (AndyRTR) - Thursday, 16 March 2023, 08:52 GMT
Please downgrade to last glib2 and try again.
Comment by Dmytro Bagrii (dimich) - Thursday, 16 March 2023, 10:26 GMT
Downgraded glib2 to 2.74.6-1: libreoffice-still crashes.
Upgraded glib2 back to 2.76.0-1: libreoffice-still crashes.
Installed custom-built libreoffice-still: now it also crashes with both glib2 2.74 and 2.76.
Comment by Dmytro Bagrii (dimich) - Thursday, 16 March 2023, 10:48 GMT
Managed to get core dump (1.1 Gb) with glib2 2.76.0-1.

========
Core was generated by `/usr/lib/libreoffice/program/soffice.bin --splash-pipe=5'.
Program terminated with signal SIGABRT, Aborted.
--Type <RET> for more, q to quit, c to continue without paging--
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7f3d0a44cfc0 (LWP 1082317))]

========

(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 0x00007f3d13ed5953 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007f3d13e86ea8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007f3d13e7053d in __GI_abort () at abort.c:79
#4 0x00007f3d14191386 in signalHandlerFunction(int, siginfo_t*, void*) (signal=6, info=0x7ffdf8ec7170, context=0x7ffdf8ec7040) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sal/osl/unx/signal.cxx:438
#5 0x00007f3d13e86f50 in <signal handler called> () at /usr/lib/libc.so.6
#6 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#7 0x00007f3d13ed5953 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#8 0x00007f3d13e86ea8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#9 0x00007f3d13e7053d in __GI_abort () at abort.c:79
#10 0x00007f3d13a9a833 in __gnu_cxx::__verbose_terminate_handler() () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#11 0x00007f3d13aa6d0c in __cxxabiv1::__terminate(void (*)()) (handler=<optimized out>) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#12 0x00007f3d13aa6d79 in std::terminate() () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#13 0x00007f3d13aa702f in __cxxabiv1::__cxa_rethrow() () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_throw.cc:136
#14 0x00007f3d12e8e2a9 in implts_dispatch((anonymous namespace)::DispatchParams const&) (this=0x5622b43c2d80, aParams=...) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/framework/source/services/autorecovery.cxx:1473
#15 0x00007f3d12edcf33 in dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence const&) (this=0x5622b43c2d80, aURL=..., lArguments=...)
at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/framework/source/services/autorecovery.cxx:1352
#16 0x00007f3d12144162 in svx::DocRecovery::RecoveryCore::doEmergencySavePrepare() () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/svx/source/dialog/docrecovery.cxx:270
#17 svx::DocRecovery::SaveDialog::SaveDialog(weld::Window*, svx::DocRecovery::RecoveryCore*) () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/svx/source/dialog/docrecovery.cxx:549
#18 impl_doEmergencySave () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/svx/source/unodraw/recoveryui.cxx:253
#19 dispatchWithReturnValue(com::sun::star::util::URL const&, com::sun::star::uno::Sequence const&) (this=0x1083cd, aURL=...) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/svx/source/unodraw/recoveryui.cxx:147
#20 0x00007f3d140aac67 in impl_callRecoveryUI(bool, bool) (bEmergencySave=205, bExistsRecoveryData=205) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/app.cxx:1000
#21 0x00007f3d140aaeaf in desktop::Desktop::Exception(ExceptionCategory) (this=0x7ffdf8ec9810, nCategory=(unknown: 0x1)) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/app.cxx:1155
#22 0x00007f3d107027fd in VCLExceptionSignal_impl(void*, oslSignalInfo*) (pInfo=0x1083cd) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/svmain.cxx:172
#23 0x00007f3d141912ba in callSignalHandler(oslSignalInfo*) () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sal/osl/all/signalshared.cxx:48
#24 signalHandlerFunction(int, siginfo_t*, void*) (signal=11, info=0x7ffdf8ec8170, context=0x7ffdf8ec8040) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sal/osl/unx/signal.cxx:425
#25 0x00007f3d13e86f50 in <signal handler called> () at /usr/lib/libc.so.6
#26 SfxApplication::MiscExec_Impl(SfxRequest&) (this=0x0, rReq=...) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sfx2/source/appl/appserv.cxx:638
#27 0x00007f3d127f1702 in SfxDispatcher::Call_Impl(SfxShell&, SfxSlot const&, SfxRequest&, bool) (this=0x5622b44c6b98, rShell=..., rSlot=..., rReq=..., bRecord=64)
at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sfx2/source/control/dispatch.cxx:254
#28 0x00007f3d127f80e0 in SfxDispatcher::Execute(unsigned short, SfxCallMode, SfxItemSet const*, SfxItemSet const*, unsigned short)
(this=0x5622b44c6b98, nSlot=24592, nCall=(unknown: 0x6f22), pArgs=0x7ffdf8ec8b70, pInternalArgs=0x7ffdf8ec8d10, nModi=34272) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sfx2/source/control/dispatch.cxx:811
#29 0x00007f3d12832b93 in SfxDispatchController_Impl::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener> const&) (this=0x7ffdf8ec8b70, aURL=..., aArgs=..., rListener=...) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sfx2/source/control/unoctitm.cxx:720
#30 0x00007f3d12832fcd in SfxOfficeDispatch::dispatch(com::sun::star::util::URL const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0x5622b4a28710, aURL=..., aArgs=...)
at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/sfx2/source/control/unoctitm.cxx:262
#31 0x00007f3d13003daf in framework::MenuBarManager::Select(Menu*) () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/framework/source/uielement/menubarmanager.cxx:802
#32 framework::MenuBarManager::LinkStubSelect(void*, Menu*) (instance=0x5622b47309f0, data=0x1) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/framework/source/uielement/menubarmanager.cxx:766
#33 0x00007f3d103cb04f in Link<Menu*, bool>::Call(Menu*) const () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/include/tools/link.hxx:111
#34 Menu::Select() (this=0x5622b49beae0) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/window/menu.cxx:358
#35 0x00007f3d1043ceb8 in Link<void*, void>::Call(void*) const () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/include/tools/link.hxx:111
#36 ImplHandleUserEvent () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/window/winproc.cxx:2229
#37 ImplWindowFrameProc(vcl::Window*, SalEvent, void const*) (_pWindow=0x5622b4550fd0, nEvent=(unknown: 0x13), pEvent=0x5627d6856f22) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/window/winproc.cxx:2799
#38 0x00007f3d106af1c9 in operator() () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/salusereventlist.cxx:119
#39 SalUserEventList::DispatchUserEvents(bool) (this=0x5622b43e10e0, bHandleAllCurrentEvents=16) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/salusereventlist.cxx:120
#40 0x00007f3d09ae14d0 in call_userEventFn(void*) (data=0x5622b36e6d70) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/unx/gtk3/gtkdata.cxx:824
#41 0x00007f3d0cd71afb in g_main_dispatch (context=0x5622b43c2510) at ../glib/glib/gmain.c:3460
#42 g_main_context_dispatch (context=0x5622b43c2510) at ../glib/glib/gmain.c:4200
#43 0x00007f3d0cdce5d9 in g_main_context_iterate.constprop.0 (context=0x5622b43c2510, block=1, dispatch=1, self=<optimized out>) at ../glib/glib/gmain.c:4276
#44 0x00007f3d0cd6f382 in g_main_context_iteration (context=0x5622b43c2510, may_block=1) at ../glib/glib/gmain.c:4343
#45 0x00007f3d09ae9984 in GtkSalData::Yield(bool, bool) () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/unx/gtk3/gtkdata.cxx:405
#46 GtkInstance::DoYield(bool, bool) (this=0x7ffdf8ec8b70, bWait=true, bHandleAllCurrentEvents=34) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/unx/gtk3/gtkinst.cxx:430
#47 0x00007f3d106f4613 in ImplYield(bool, bool) (i_bWait=112, i_bAllEvents=16) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/svapp.cxx:474
#48 0x00007f3d106fa45e in Application::Execute() () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/svapp.cxx:452
#49 0x00007f3d140b1c9c in desktop::Desktop::Main() (this=0x7ffdf8ec9810) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/app.cxx:1600
#50 0x00007f3d107080ea in ImplSVMain() () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/vcl/source/app/svmain.cxx:202
#51 0x00007f3d140c8ae4 in soffice_main() () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/sofficemain.cxx:94
#52 0x00005622b1b1d031 in sal_main () at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/main.c:51
#53 main (argc=-118715536, argv=0x5622b35d6010) at /usr/src/debug/libreoffice-still/libreoffice-7.4.6.2/desktop/source/app/main.c:49

========

(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f3d0a44cfc0 (LWP 1082317) __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
2 Thread 0x7f3d023ff6c0 (LWP 1082320) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
3 Thread 0x7f3d03fff6c0 (LWP 1082319) 0x00007f3d13f578bf in __libc_accept (fd=6, addr=..., len=0x0) at ../sysdeps/unix/sysv/linux/accept.c:26
4 Thread 0x7f3d00bfc6c0 (LWP 1082327) syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
5 Thread 0x7f3d01bfe6c0 (LWP 1082321) 0x00007f3d13f489df in __GI___poll (fds=0x5622b4617fc0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
6 Thread 0x7f3d013fd6c0 (LWP 1082322) 0x00007f3d13f489df in __GI___poll (fds=0x7f3cec000b90, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
========
Comment by Dmytro Bagrii (dimich) - Thursday, 16 March 2023, 18:55 GMT
Installing zxing-cpp package solves the issue.
This explains why custom-built package didn't crash: i installed zxing-cpp as build dependency, later deinstalled it.
I had installed zxing-cpp-git from AUR, it provides 'zxing-cpp' so libreoffice package dependencies is satisfied, but seems ABI is not compatible.
I think the ticket can be closed. Sorry for noise.

Loading...