[SOLVED] libreoffice fails to start on a -current clean install
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
People with "application error" can you check /etc/profile.d/libreoffice.sh and tell me if there's any line that is UN-commented? Here on my Slackware-current running Plasma5, I do not have any line un-commented.
here it seems there are no lines that are UN-commented.
Quote:
$more /etc/profile.d/libreoffice.sh
#!/bin/sh
# To force the use of a certain VCL UI interface, use one of these envvars.
#export SAL_USE_VCLPLUGIN=gen
#export SAL_USE_VCLPLUGIN=gtk3
#export SAL_USE_VCLPLUGIN=gtk3_kde5
#export SAL_USE_VCLPLUGIN=kf5
#export SAL_USE_VCLPLUGIN=qt5
bash-5.1$ cat /etc/profile.d/libreoffice.sh
#!/bin/sh
# To force the use of a certain VCL UI interface, use one of these envvars.
#export SAL_USE_VCLPLUGIN=gen
#export SAL_USE_VCLPLUGIN=gtk3
#export SAL_USE_VCLPLUGIN=gtk3_kde5
#export SAL_USE_VCLPLUGIN=kf5
#export SAL_USE_VCLPLUGIN=qt5
bash-5.1$
_peter I assume that you are experiencing the exact same problema as I am. Can you run libreoffice through gdb just to check why it is failing?
Code:
gdb /usr/lib64/libreoffice/program/soffice.bin
Just type 'run' when prompted
Code:
...
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/libreoffice/program/soffice.bin...
(No debugging symbols found in /usr/lib64/libreoffice/program/soffice.bin)
(gdb) run
gdb /usr/lib64/libreoffice/program/soffice.bin
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/libreoffice/program/soffice.bin...
(No debugging symbols found in /usr/lib64/libreoffice/program/soffice.bin)
(gdb) run
Starting program: /usr/lib64/libreoffice/program/soffice.bin
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Detaching after fork from child process 25501]
[New Thread 0x7fffeacd4700 (LWP 25506)]
[New Thread 0x7fffea4d3700 (LWP 25507)]
[New Thread 0x7fffe99b5700 (LWP 25508)]
[New Thread 0x7fffe91b4700 (LWP 25509)]
[New Thread 0x7fffdbfff700 (LWP 25510)]
[New Thread 0x7fffdb7fe700 (LWP 25511)]
[Thread 0x7fffdb7fe700 (LWP 25511) exited]
[Thread 0x7fffeacd4700 (LWP 25506) exited]
[New Thread 0x7fffeacd4700 (LWP 25515)]
[New Thread 0x7fffdb7fe700 (LWP 25516)]
[Thread 0x7fffdb7fe700 (LWP 25516) exited]
[New Thread 0x7fffdb7fe700 (LWP 25517)]
[Thread 0x7fffdb7fe700 (LWP 25517) exited]
[Thread 0x7fffeacd4700 (LWP 25515) exited]
Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffc66f1ec9 in ?? () from /usr/lib64/gallium-pipe/pipe_iris.so
(gdb)
Because it's a weekend I don't have access to the machine (it's switched off). But tomorrow I may try to recompile mesa (which is where the pipe_iris.so lives) or downgrade it to a previous package to see what happens.
Very strange! I'm running mesa-20.3.0 on three machines (two Intel, one AMD gfx) and LibreOffice-7.0.3 works fine on all of them (since Eric's last update)!
Very strange! I'm running mesa-20.3.0 on three machines (two Intel, one AMD gfx) and LibreOffice-7.0.3 works fine on all of them (since Eric's last update)!
--
Pete
Strange it is. I also have many other machines all running slackware -current without issues. My main workstation is now at home due to COVID19 and it has an i5 4300 with a strange xeon intel graphics card. Works like a charm! The problem only reveals itself on this particular machine at may office, which has an intel UHD 630 (built into an i5 7400). I suspect that _peter, who has an intel 5500, has the exact same problem. Let's see if he downgrades mesa and solves the problem for now! Meanwhile I'll do some more research in my spare time. This issues really make me mad (I mean, failing software that leaves no trace of why it fails).
NOTE: rebuilding mesa-20.3.0 using Slackbuild in source also didn't solve the problem...
OK, so this is getting even stranger! My main desktop machine is an i7 on a Gigabyte motherboard with Intel integrated graphics: Intel Xeon E3-1200 rev06. Libreoffice works perfectly.
My laptop is an Intel i5, again with Intel integrated graphics: Intel UHD 620 rev 30. Libreoffice works perfectly.
Most interestingly, from your perspective, is an old Dell laptop that I was given because it has a faulty connection between the motherboard and LCD (I would replace the cable but some of the captive bolts are no longer captive, meaning I can't dismantle it!). Usually a wiggle of the lid fixes it for a while.
The Dell is an i5, Intel integrated graphics: Intel HD 5500 rev 09 - which is the one I think is giving you problems! I've put a clean install of 64-current on it, and Libreoffice works perfectly!
This probably isn't what you wanted to hear, but sometimes even a negative result can be useful.
Let me know if there's anything you want me to check on it, and I'll see if I can help.
In my case (OP), the "faulty" GPU is an Intel Corporation HD Graphics 630 (rev 04), not the 5500 (that's from _peter). For your information, I've tried everything, from a standard -current install with multilib (this is the "norm" for me), to a clean -current install without any extras, "clean" (new) account, deleting libreoffice config folder... in all cases libreoffice fails with the "Application error" message and nothing more. Using gdb I traced the problem to pipe_iris.so. Again, I don't need libreoffice for what I normally do (although I like to have it around) but it bothers me when something breaks in slackware and I can't understand why. Right now, in this particular machine, downgrading mesa to version 20.2 was a fix. I do have lots of other machines (more than 10!) where this problem does not occur, including some like yours with an Intel Xeon E3-1200 or an UHD 620. In all them AlienBob's libreoffice is working flawlessly.
Yesterday I tried to recompile mesa from stock -current and it didn't help. I will now try to recompile mesa with some debugging turned on to understand where exactly it fails. The gdb's message is itself not very informative as it cannot signal the exact place where the segmentation violation occurred (??).
Code:
Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault.
0x00007fffa8cccec9 in ?? () from /usr/lib64/gallium-pipe/pipe_iris.so
(gdb)
I'm going to try reverting to mesa 20.2.3 and see if that works.
EDIT: Yep, reverting to mesa 20.2.3 fixed it for me. I'll try upgrading to version 20.2.6 and see if there are any problems.
EDIT2: Upgrading to mesa 20.2.6 still works fine for me.
Last edited by mumahendras3; 12-17-2020 at 05:57 AM.
Reason: Added further info
Can you try the new mesa-20.3.1-x86_64-1.txz that got out yesterday? Today, I don't have access to my machine with the intel 630, but I'm curious if this has not been fixed in this new version of mesa. There is a suspicious bug fixed with the commit string "Storing pointer to temporary value inside the Iris driver". Check it if you can!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.