Bug 121149 - LibreOffice crashes on startup in Kubuntu 18.04 (with malloc errors or no output)
Summary: LibreOffice crashes on startup in Kubuntu 18.04 (with malloc errors or no out...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-03 20:23 UTC by enanitoleg
Modified: 2019-01-17 18:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
dpkg -l 'libreoffice*' (8.75 KB, text/plain)
2018-11-03 20:25 UTC, enanitoleg
Details
ldd -v /usr/lib/libreoffice/program/libmergedlo.so (91.18 KB, text/plain)
2018-11-03 20:26 UTC, enanitoleg
Details
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --valgrind 2>&1 | tee valgrind.log (196.13 KB, text/x-log)
2018-11-03 20:26 UTC, enanitoleg
Details
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --strace (602.70 KB, text/x-log)
2018-11-03 20:27 UTC, enanitoleg
Details
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --backtrace (8.96 KB, text/x-log)
2018-11-03 20:28 UTC, enanitoleg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description enanitoleg 2018-11-03 20:23:50 UTC
Description:
Ever since I installed Kubuntu 18.04, I have not been able to get LibreOffice to start up. 
 
Curiously, running with the --valgrind option allowed the program to get past the splash window (at an unusably slow pace).

Steps to Reproduce:
1. Run any libreoffice program, whether through GUI or command line, with any options
2.
3.

Actual Results:
Logo flashes briefly, and program exits. If run from the command line, I either see no output or one of the following: "malloc(): smallbin double linked list corrupted", or "munmap_chunk(): invalid pointer". 



Expected Results:
Logo shows, then program starts up.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Adding any or all of the following options does not change the outcome (other than removing the logo flash): --nologo --norestore --safe-mode

I tried uninstalling and reinstalling libreoffice, without any change.
 
versions:
 * libreoffice --version: LibreOffice 6.0.6.2 00m0(Build:2)
 * OpenGL ES 3.0 Mesa 18.0.5

hardware:
 * graphics card: GK107GLM [Quadro K1000M] (set to integrated graphics mode)

I will attach the following:
 * dpkg-libreoffice.txt - dpkg installed and not installed libreoffice packages
 * gdbtrace.log 
 * ldd.txt - output of ldd -v  on libmergedlo.so
 * strace.log
 * valgrind.log
Comment 1 enanitoleg 2018-11-03 20:25:04 UTC
Created attachment 146270 [details]
dpkg -l 'libreoffice*'
Comment 2 enanitoleg 2018-11-03 20:26:19 UTC
Created attachment 146271 [details]
ldd -v /usr/lib/libreoffice/program/libmergedlo.so
Comment 3 enanitoleg 2018-11-03 20:26:47 UTC
Created attachment 146272 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --valgrind 2>&1 | tee valgrind.log
Comment 4 enanitoleg 2018-11-03 20:27:12 UTC
Created attachment 146273 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --strace
Comment 5 enanitoleg 2018-11-03 20:28:00 UTC
Created attachment 146274 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode  --backtrace
Comment 6 enanitoleg 2018-11-05 20:44:45 UTC
Comment on attachment 146273 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --strace

Search for "malloc" to jump to malloc error.
Comment 7 enanitoleg 2018-11-05 20:47:45 UTC
Comment on attachment 146272 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode --valgrind 2>&1 | tee valgrind.log

As mentioned, the --valgrind option allowed the program to get past the splash screen, showed the safe mode dialog, and even opened a new document, but this process was excruciatingly slow, and the program froze up whenever I tried to open menus.
Comment 8 enanitoleg 2018-11-05 20:48:47 UTC
Comment on attachment 146274 [details]
/usr/lib/libreoffice/program/soffice --calc --nologo --norestore --safe-mode  --backtrace

I seem to be missing a requirement to use --backtrace mode.
Comment 9 Roman Kuznetsov 2018-11-07 17:47:55 UTC
try delete ubuntu packages with libreoffice and install libreoffice from official site

try update your Kubuntu too
Comment 10 enanitoleg 2018-11-12 20:10:03 UTC
(In reply to Roman Kuznetsov from comment #9)
> try delete ubuntu packages with libreoffice and install libreoffice from
> official site
> 
> try update your Kubuntu too

apt purge libreoffice* and then installing all of the 6.1 deb packages downloaded from the website worked.
 
The snap package also works, so I will use that for now.
 
I had upgraded (apt dist-upgrade) my Kubuntu packages multiple times in the last few months hoping an update would fix the issue, but it never did. I prefer to stick to an LTS instead of upgrading to 18.10.
Comment 11 enanitoleg 2018-11-27 01:27:48 UTC
It would be nice to get this fixed so I can use packages such as "unoconv", which are not working well with the snap installation.
Comment 12 enanitoleg 2019-01-09 00:47:19 UTC
Strange, it's now happening all of a sudden today with the same downloaded version that was working fine a few days ago. 
 
The difference from before is that now any soffice command is simply returning exit code 0 with neither command-line output nor logo flash. 
 
I had installed 6.1.3.2-2 via dpkg and have not upgraded it. I just now upgraded to 6.1.4.2-2 and it did not fix the problem.
Comment 13 Xisco Faulí 2019-01-09 12:28:21 UTC
Since LibreOffice 6.2 is moving to KDE5, could you please try with LibreOffice 6.2.0.1 from https://wiki.documentfoundation.org/QA/GetInvolved#Test_Pre-releases ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 14 enanitoleg 2019-01-11 05:53:54 UTC
I purged 6.1, installed 6.2, tried to launch it, and the same thing happened (process exited right away).... But then I rebooted and it started working :/. Could this second bug be related to a graphics card issue?
 
(NOTE: in the original bug with the packaged version, I did reboot multiple times, and it didn't help)
Comment 15 Xisco Faulí 2019-01-11 13:00:49 UTC
(In reply to enanitoleg from comment #14)
> I purged 6.1, installed 6.2, tried to launch it, and the same thing happened
> (process exited right away).... But then I rebooted and it started working
> :/. Could this second bug be related to a graphics card issue?
>  
> (NOTE: in the original bug with the packaged version, I did reboot multiple
> times, and it didn't help)

So, if you remove your profile and launch LibreOffice 6.2, it will fail the first time, but success the second time?
Comment 16 enanitoleg 2019-01-11 17:56:52 UTC
(In reply to Xisco Faulí from comment #15)
> So, if you remove your profile and launch LibreOffice 6.2, it will fail the
> first time, but success the second time?

I just tried removing the profile, and it still launches normally.
 
I apologize though, I think this might be a different bug than the one with the distro version, because this one was fixed simply by rebooting. I did not think to try removing the profile for this new bug, since the first bug was not fixed by that. But, I did try running with --nologo --norestore --safe-mode, and it had the same result of exit immediately with code 0... until I rebooted that is.
Comment 17 Xisco Faulí 2019-01-17 11:41:42 UTC
ok, let's then close this as RESOLVED WORKSFORME for now...
Please, create a new report if you face the problem again in the future...
Comment 18 enanitoleg 2019-01-17 18:04:56 UTC
(In reply to Xisco Faulí from comment #17)
> ok, let's then close this as RESOLVED WORKSFORME for now...
> Please, create a new report if you face the problem again in the future...

Actually, I was hoping that the package in the Kubuntu 18.04 LTS distro would be updated/ fixed. The LTS version is supported until 2021. Do you know who I can submit that request to?