Bug 129742 - Libreoffice Crash on startup in Arch Linux
Summary: Libreoffice Crash on startup in Arch Linux
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-02 17:13 UTC by Victor
Modified: 2020-01-04 19:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2020-01-02 17:13:50 UTC
Im getting a crash on startup with all Libreoffice apps on both versions 6.3.4 & 6.2.8.

If I set the environment variable SAL_USE_VCLPLUGIN to "gen", writer/calc starts up. But as soon as I click on the "View" menu option, it crashes.

I've removed my libreoffice config, disabled hardware acceleration, disabled java, yet the problem still persists.

I've received the following error:

soffice
\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(+0x3b474)[0x7ff30a293474]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3b5fc)[0x7ff30a2935fc]
/usr/lib/libc.so.6(+0x3bfb0)[0x7ff309fcdfb0]
/usr/lib/libc.so.6(gsignal+0x145)[0x7ff309fcdf25]
/usr/lib/libc.so.6(abort+0x12b)[0x7ff309fb7897]
/usr/lib/libstdc++.so.6(+0x9681d)[0x7ff309e1781d]
/usr/lib/libstdc++.so.6(+0xa34da)[0x7ff309e244da]
/usr/lib/libstdc++.so.6(+0xa24aa)[0x7ff309e234aa]
/usr/lib/libstdc++.so.6(__gxx_personality_v0+0x2a5)[0x7ff309e23e75]
/usr/lib/libgcc_s.so.1(+0x10723)[0x7ff309c2f723]
/usr/lib/libgcc_s.so.1(_Unwind_Resume+0x12e)[0x7ff309c3001e]
/usr/lib/libreoffice/program/libvcllo.so(+0x2d3284)[0x7ff306a18284]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x16cf2)[0x7ff30a26ecf2]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3b560)[0x7ff30a293560]
/usr/lib/libc.so.6(+0x3bfb0)[0x7ff309fcdfb0]
/usr/lib/libc.so.6(gsignal+0x145)[0x7ff309fcdf25]
/usr/lib/libc.so.6(abort+0x12b)[0x7ff309fb7897]
/usr/lib/libreoffice/program/libvcllo.so(+0x2d13d6)[0x7ff306a163d6]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0x9c2ca)[0x7ff3011ac2ca]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x14f)[0x7ff302e1626f]
/usr/lib/libglib-2.0.so.0(+0x6c1b1)[0x7ff302e181b1]
/usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x31)[0x7ff302e181f1]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0x9d59d)[0x7ff3011ad59d]
/usr/lib/libreoffice/program/libvcllo.so(+0x63e773)[0x7ff306d83773]
/usr/lib/libreoffice/program/libvcllo.so(_ZN11Application7ExecuteEv+0x46)[0x7ff306d85626]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x32b77)[0x7ff30a1bcb77]
/usr/lib/libreoffice/program/libvcllo.so(_Z10ImplSVMainv+0x64)[0x7ff306d8bc34]
/usr/lib/libreoffice/program/libsofficeapp.so(soffice_main+0x9b)[0x7ff30a1e304b]
/usr/lib/libreoffice/program/soffice.bin(+0x102e)[0x558d559be02e]
/usr/lib/libc.so.6(__libc_start_main+0xf3)[0x7ff309fb9153]
/usr/lib/libreoffice/program/soffice.bin(+0x106e)[0x558d559be06e]

And here is my backtrace:

warning: Currently logging to gdbtrace.log.  Turn the logging off and on to make the new setting effective.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /usr/lib/libstdc++.so.6]
/usr/lib/../share/gcc-9.2.0/python/libstdcxx/v6/xmethods.py:731: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
  refcounts = ['_M_refcount']['_M_pi']
[Detaching after fork from child process 7040]
[New Thread 0x7fffee087700 (LWP 7064)]
[New Thread 0x7fffed886700 (LWP 7065)]
[New Thread 0x7fffecb89700 (LWP 7066)]
[New Thread 0x7fffdffff700 (LWP 7067)]
[New Thread 0x7fffdf7fe700 (LWP 7068)]
[New Thread 0x7fffdeffd700 (LWP 7069)]
[New Thread 0x7fffcffff700 (LWP 7070)]
[Thread 0x7fffcffff700 (LWP 7070) exited]
[New Thread 0x7fffcffff700 (LWP 7071)]
[Thread 0x7fffcffff700 (LWP 7071) exited]
[New Thread 0x7fffcffff700 (LWP 7072)]
[Thread 0x7fffcffff700 (LWP 7072) exited]
[Detaching after vfork from child process 7073]
[New Thread 0x7fffcffff700 (LWP 7075)]
[Thread 0x7fffcffff700 (LWP 7075) exited]
[Thread 0x7fffdf7fe700 (LWP 7068) exited]
[Thread 0x7fffee087700 (LWP 7064) exited]
[New Thread 0x7fffee087700 (LWP 7076)]
warning: the debug information found in "/usr/lib/jvm/java-13-openjdk/lib/server/libjvm.debuginfo" does not match "/usr/lib/jvm/java-13-openjdk/lib/server/libjvm.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/jvm/java-13-openjdk/lib/libverify.debuginfo" does not match "/usr/lib/jvm/java-13-openjdk/lib/libverify.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/jvm/java-13-openjdk/lib/libjava.debuginfo" does not match "/usr/lib/jvm/java-13-openjdk/lib/libjava.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/jvm/java-13-openjdk/lib/libzip.debuginfo" does not match "/usr/lib/jvm/java-13-openjdk/lib/libzip.so" (CRC mismatch).

warning: the debug information found in "/usr/lib/jvm/java-13-openjdk/lib/libjimage.debuginfo" does not match "/usr/lib/jvm/java-13-openjdk/lib/libjimage.so" (CRC mismatch).


Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffb079f61b in ?? ()
#0  0x00007fffb079f61b in  ()
#1  0x0000000000000246 in  ()
#2  0x00007fffb079f380 in  ()
#3  0x00007fffcdb9d508 in  () at /usr/lib/jvm/java-13-openjdk/lib/server/libjvm.so
#4  0x00007fffffffb8e0 in  ()
#5  0x00007fffcd72f8d9 in  () at /usr/lib/jvm/java-13-openjdk/lib/server/libjvm.so

Thread 12 (Thread 0x7fffee087700 (LWP 7076)):
#0  0x00007ffff7c96f7a in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007ffff7fa0df9 in osl_waitCondition () at /usr/lib/libreoffice/program/libuno_sal.so.3
#2  0x00007fffee0d1b80 in  () at /usr/lib/libreoffice/program/../program/libconfigmgrlo.so
#3  0x00007ffff70517b8 in salhelper::Thread::run() () at /usr/lib/libreoffice/program/libuno_salhelpergcc3.so.3
#4  0x00007ffff705192a in  () at /usr/lib/libreoffice/program/libuno_salhelpergcc3.so.3
#5  0x00007ffff7fad1cb in  () at /usr/lib/libreoffice/program/libuno_sal.so.3
#6  0x00007ffff7c904cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007ffff7da82d3 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fffdeffd700 (LWP 7069)):
#0  0x00007ffff7da2e9d in syscall () at /usr/lib/libc.so.6
#1  0x00007ffff0ae011b in g_cond_wait_until () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0b5df63 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff0b5e154 in g_async_queue_timeout_pop () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff0b0502a in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff0b0bbb1 in  () at /usr/lib/libglib-2.0.so.0
#6  0x00007ffff7c904cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007ffff7da82d3 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fffdffff700 (LWP 7067)):
#0  0x00007ffff7d9d9ef in poll () at /usr/lib/libc.so.6
#1  0x00007ffff0b2f120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0b300c3 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff0c9dbc8 in  () at /usr/lib/libgio-2.0.so.0
#4  0x00007ffff0b0bbb1 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff7c904cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff7da82d3 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fffecb89700 (LWP 7066)):
#0  0x00007ffff7d9d9ef in poll () at /usr/lib/libc.so.6
#1  0x00007ffff0b2f120 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff0b2f1f1 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff0b2f242 in  () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff0b0bbb1 in  () at /usr/lib/libglib-2.0.so.0
#5  0x00007ffff7c904cf in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007ffff7da82d3 in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fffed886700 (LWP 7065)):
#0  0x00007ffff7da92df in accept () at /usr/lib/libc.so.6
#1  0x00007ffff7fa78af in osl_acceptPipe () at /usr/lib/libreoffice/program/libuno_sal.so.3
#2  0x00007ffff7ef6e23 in  () at /usr/lib/libreoffice/program/libsofficeapp.so
#3  0x00007ffff70517b8 in salhelper::Thread::run() () at /usr/lib/libreoffice/program/libuno_salhelpergcc3.so.3
#4  0x00007ffff705192a in  () at /usr/lib/libreoffice/program/libuno_salhelpergcc3.so.3
#5  0x00007ffff7fad1cb in  () at /usr/lib/libreoffice/program/libuno_sal.so.3
#6  0x00007ffff7c904cf in start_thread () at /usr/lib/libpthread.so.0
#7  0x00007ffff7da82d3 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fffef2a1040 (LWP 7036)):
#0  0x00007fffb079f61b in  ()
#1  0x0000000000000246 in  ()
#2  0x00007fffb079f380 in  ()
#3  0x00007fffcdb9d508 in  () at /usr/lib/jvm/java-13-openjdk/lib/server/libjvm.so
#4  0x00007fffffffb8e0 in  ()
#5  0x00007fffcd72f8d9 in  () at /usr/lib/jvm/java-13-openjdk/lib/server/libjvm.so
A debugging session is active.

	Inferior 1 [process 7036] will be killed.

Quit anyway? (y or n) [answered Y; input not from terminal]
Comment 1 Victor 2020-01-02 17:15:31 UTC
Forgot to mention, I am running this on Arch Linux, all packages are up to date as of 2020-01-02
Comment 2 Roman Kuznetsov 2020-01-04 13:21:29 UTC
(In reply to Victor from comment #1)
> Forgot to mention, I am running this on Arch Linux, all packages are up to
> date as of 2020-01-02

Victor, hi. Thank you for report.
Do you use LibreOffice from Arch repo? If yes, can you test vanille LibreOffice from libreoffice.org/download or try create your own build as write here https://wiki.documentfoundation.org/Development/BuildingOnLinux?
Comment 3 Victor 2020-01-04 17:20:34 UTC
Hey Roman, thanks for the reply, I attempted to run autogen, but it halts at this error:

checking if jdk.net.URLClassPath.ClassPathURLCheck is disabled... configure: error: no - Java unit tests will break!

Not really sure how to proceed from here.
Comment 4 Roman Kuznetsov 2020-01-04 17:22:54 UTC
(In reply to Victor from comment #3)
> Hey Roman, thanks for the reply, I attempted to run autogen, but it halts at
> this error:
> 
> checking if jdk.net.URLClassPath.ClassPathURLCheck is disabled... configure:
> error: no - Java unit tests will break!
> 
> Not really sure how to proceed from here.

Try

./autogen.sh --without-java
Comment 5 Victor 2020-01-04 18:05:03 UTC
It made it much further this time, but it failed at this step:

make[4]: Leaving directory '/home/victor/Downloads/libreoffice-6.3.4.2/workdir/UnpackedTarball/openssl/crypto/evp'
making all in crypto/asn1...
make[4]: Entering directory '/home/victor/Downloads/libreoffice-6.3.4.2/workdir/UnpackedTarball/openssl/crypto/asn1'
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_object.o a_object.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_bitstr.o a_bitstr.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_utctm.o a_utctm.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_gentm.o a_gentm.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_time.o a_time.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_int.o a_int.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_octet.o a_octet.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_print.o a_print.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_type.o a_type.c
gcc -fPIC  -fvisibility=hidden -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -DOPENSSL_THREADS -D_REENTRANT -O3 -Wall   -c -o a_set.o a_set.c
a_set.c:74:12: internal compiler error: Segmentation fault
   74 | static int SetBlobCmp(const void *elem1, const void *elem2)
      |            ^~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make[4]: *** [<builtin>: a_set.o] Error 1
make[4]: Leaving directory '/home/victor/Downloads/libreoffice-6.3.4.2/workdir/UnpackedTarball/openssl/crypto/asn1'
make[3]: *** [Makefile:90: subdirs] Error 1
make[3]: Leaving directory '/home/victor/Downloads/libreoffice-6.3.4.2/workdir/UnpackedTarball/openssl/crypto'
make[2]: *** [Makefile:287: build_crypto] Error 1
make[2]: Leaving directory '/home/victor/Downloads/libreoffice-6.3.4.2/workdir/UnpackedTarball/openssl'
make[1]: *** [/home/victor/Downloads/libreoffice-6.3.4.2/external/openssl/ExternalProject_openssl.mk:71: /home/victor/Downloads/libreoffice-6.3.4.2/workdir/ExternalProject/openssl/build] Error 1
make: *** [Makefile:282: build] Error 2
Comment 6 Victor 2020-01-04 19:01:36 UTC
Hey Roman, I resolved the issue. It looks like there was something borked specific to my system.

I ran a pacman command to reinstall every package on my system:

```sudo pacman -Qqn | sudo pacman -S -```

After running this & rebooting, libreoffice works now!