[snap] Math segfaults at startup on Ubuntu 16.04

Bug #1755178 reported by Olivier Tilloy on 2018-03-12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Olivier Tilloy

Bug Description

(initially reported on the forum: https://forum.snapcraft.io/t/call-for-testing-libreoffice-6-0-2/4185/6)

After installing libreoffice (stable) or (candidate) in a clean and up-to-date virtual machine running Ubuntu 16.04, libreoffice.math reliably crashes at startup. Other applications in the suite don't appear to be affected.

I'm attaching the terminal output, which exhibits GLib-GIO:ERROR and a symbolic stack trace.

Olivier Tilloy (osomon) wrote :
Changed in libreoffice (Ubuntu):
status: New → Triaged
Olivier Tilloy (osomon) wrote :

libreoffice.math doesn't crash at startup on 18.04, neither in the default Ubuntu session nor in the Unity one (installed with unity-session).
It doesn't crash either on 17.10.

It does crash on 14.04.

Olivier Tilloy (osomon) wrote :

If I run libreoffice.math on 16.04 through strace (as explained at https://forum.snapcraft.io/t/stracing-snap-commands/1433), it won't crash.

Olivier Tilloy (osomon) wrote :

I managed to get rid of the crash by unpacking the snap, deleting the following files, and repacking it:


This results in a harmless warning on the console at startup:

  Gtk-Message: Failed to load module "unity-gtk-module"

These are pulled in by the gtk3 desktop helper.

Olivier Tilloy (osomon) wrote :

I can also get rid of the crash by removing "unity-gtk-module" from the GTK_MODULES environment variable, i.e.:

    GTK_MODULES=gail:atk-bridge snap run libreoffice.math

Olivier Tilloy (osomon) wrote :

didrocks and seb128 confirmed that it's safe to remove "unity-gtk-module" from the libreoffice snap, as libreoffice already knows how to talk GMenuModel.

Changed in libreoffice (Ubuntu):
status: Triaged → In Progress
Olivier Tilloy (osomon) wrote :
Changed in libreoffice (Ubuntu):
status: In Progress → Fix Committed
Olivier Tilloy (osomon) on 2018-03-15
Changed in libreoffice (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers