[libreoffice-kde4] LO crashes when trying to save

Bug #1750087 reported by Lyn Perrine
46
This bug affects 11 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Critical
Olivier Tilloy

Bug Description

To reproduce type hello world into a libreoffice document. Then press the save icon. libreoffice crashes. Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04

to try to save and then try it crashes.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libreoffice (not installed)
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: LXQt
Date: Fri Feb 16 16:19:38 2018
InstallationDate: Installed on 2017-06-20 (241 days ago)
InstallationMedia: Lubuntu-Next 17.10 "Artful Aardvark" - Alpha amd64 (20170619)
SourcePackage: libreoffice
UpgradeStatus: Upgraded to bionic on 2018-02-02 (14 days ago)

Revision history for this message
Lyn Perrine (walterorlin) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

Can you please share the version of libreoffice you're using?

    apt policy libreoffice-core

Are there any crash files for libreoffice in /var/crash/ ? If so, can you please attach them here?

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Lyn Perrine (walterorlin) wrote :

libreoffice-core:
  Installed: 1:5.4.4-0ubuntu5
  Candidate: 1:5.4.4-0ubuntu5
  Version table:
 *** 1:5.4.4-0ubuntu5 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Lyn Perrine (walterorlin) wrote :

Doubt this is helpful but it was in /var/crash/

Revision history for this message
Olivier Tilloy (osomon) wrote :

That crash file is not relevant indeed.

Can you install debug symbols for libreoffice, then run libreoffice in gdb and see if you get a useful stacktrace?

See https://wiki.ubuntu.com/Debug%20Symbol%20Packages for how to install the debug packages, and then from a terminal run "gdb --args libreoffice --writer" and reproduce the crash. At the gdb prompt input "bt" to get a backtrace.

summary: - libreoffoice crashes when trying to save
+ libreoffice crashes when trying to save
Revision history for this message
Chris Taylor (chris-taylor-t) wrote : Re: libreoffice crashes when trying to save

The same situation for me with:

libreoffice-core:
  Installed: 1:5.4.5-0ubuntu0.17.10.1
  Candidate: 1:5.4.5-0ubuntu0.17.10.1
  Version table:
 *** 1:5.4.5-0ubuntu0.17.10.1 500
        500 http://gb.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu artful-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:5.4.1-0ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu artful/main amd64 Packages

Revision history for this message
Chris Taylor (chris-taylor-t) wrote :

Temporary workaround is to modify setting in Tools -> Options -> LibreOffice -> General and Check 'Use LibreOffice dialogue boxes'. See https://bugs.documentfoundation.org/show_bug.cgi?id=98776

Revision history for this message
TomaszChmielewski (mangoo-wpkg) wrote :

Also affects me, using Kubuntu.

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can reliably reproduce the issue after installing kubuntu. As suggested by Chris in comment #7, using custom dialog boxes works around the issue.

Changed in libreoffice (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → High
summary: - libreoffice crashes when trying to save
+ [libreoffice-kde4] LO crashes when trying to save
Revision history for this message
Alexander Lochmann (alexander-lochmann) wrote :

As I've already mentioned, one of my machines is also affected. I posted context information for that machine which is *not* affected: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1751783 .

Revision history for this message
Olivier Tilloy (osomon) wrote :

Stack trace top:

#0 0x00007fb052cbf168 in KFileDialog::KFileDialog (this=0x55b5116273e0, startDir=..., filter=..., parent=<optimized out>, customWidget=0x55b5116a3270) at ./kio/kfile/kfiledialog.cpp:266
#1 0x00007fb052fa7236 in KDE4FilePicker::KDE4FilePicker (this=0x55b511666250) at ./vcl/unx/kde4/KDE4FilePicker.cxx:123
#2 0x00007fb052fb3528 in KDEXLib::createFilePicker (this=0x55b50fd5c110, xMSF=...) at ./vcl/unx/kde4/KDEXLib.cxx:414
#3 0x00007fb052fb2c26 in KDESalInstance::createFilePicker (this=<optimized out>, xMSF=...) at ./vcl/unx/kde4/KDESalInstance.cxx:51
#4 0x00007fb06a859d38 in Application::createFilePicker(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) () from /usr/lib/libreoffice/program/libmergedlo.so
#5 0x00007fb069b56cbe in ?? () from /usr/lib/libreoffice/program/libmergedlo.so

Revision history for this message
Olivier Tilloy (osomon) wrote :

Disabling the apparmor profiles makes the crash go away (being implemented to fix bug #1751005).

This looks related to https://cgit.freedesktop.org/libreoffice/core/commit/?id=b13678b1e1d6f4cac548ae7e088b6030c31cf081.

Revision history for this message
Horst Schirmeier (horst) wrote :

I can confirm that disabling the apparmor profiles (comment #12) makes the crash go away until next reboot:

  apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

Olivier Tilloy (osomon)
Changed in libreoffice (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Olivier Tilloy (osomon)
importance: High → Critical
Revision history for this message
Olivier Tilloy (osomon) wrote :

This bug was fixed in the package libreoffice - 1:5.4.5-0ubuntu0.17.10.4

---------------
libreoffice (1:5.4.5-0ubuntu0.17.10.4) artful; urgency=medium

  * debian/libreoffice-common.preinst.in: added to disable apparmor profiles on
    fresh installs and upgrades from 1:5.4.5-0ubuntu0.17.10.1 (LP: #1751005)
  * debian/patches/apparmor-senddoc-fixes.patch: updated to reflect upstream
    commit

 -- Olivier Tilloy <email address hidden> Mon, 26 Feb 2018 15:17:18 +0100

Changed in libreoffice (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Alexander Lochmann (alexander-lochmann) wrote :

Do you seriously consider "added to disable apparmor profiles on" as a fix for this issue?
On my opinion, this is just a workaround.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Copying here comment #51 from bug #1751005:

Apparmor profiles were not enabled before the 1:5.4.5-0ubuntu0.17.10.1 SRU.
The SRU accidentally enabled them and broke a flurry of use cases. That was a very bad regression.
The 1:5.4.5-0ubuntu0.17.10.4 SRU disabled them again. Regression fixed, hence the status.

We will work towards enabling apparmor profiles in a controlled manner.

Revision history for this message
Alexander Lochmann (alexander-lochmann) wrote :

Oh. If so, please excuse my harsh question.
I was not aware that apparmor profiles never been activated before for LO.

Revision history for this message
m.eik michalke (m.eik) wrote :

i ran into this with 1:6.0.7-0ubuntu0.18.04.7 and the aforementioned workaround still saved me. is this another regression?

Revision history for this message
Alexander Adam (7ql6) wrote :

I can confirm that this issue is still present in 1:6.0.7-0ubuntu0.18.04.10.

the command

  $ sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

still works though.

Revision history for this message
lukyluke (luca-tagliacozzo) wrote :

As Alexander already said I confirm that in Kubuntu 18.04 and the following version is still there the output of apt policy libreoffice-core:

libreoffice-core:
  Installed: 1:6.0.7-0ubuntu0.18.04.10
  Candidate: 1:6.0.7-0ubuntu0.18.04.10
  Version table:
 *** 1:6.0.7-0ubuntu0.18.04.10 500
        500 http://es.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:6.0.3-0ubuntu1 500
        500 http://es.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

In my case the sudo apparmor_parser -R /etc/apparmor.d/usr.lib.libreoffice.program.*

disprove the situation, since when I try to save a file, I get a lot of errors about not finding the apparmor profile and then whenever I try to type a name the first character I press gets repeated indefinitely and then Libreoffice crashes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.