Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593514 - gnome-extra/gnome-documents-3.20.1: segmentation fault at startup with libreoffice[gtk3]
Summary: gnome-extra/gnome-documents-3.20.1: segmentation fault at startup with libreo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 560172 gnome-3.20 lo-stable
  Show dependency tree
 
Reported: 2016-09-11 18:55 UTC by Francesco Turco
Modified: 2016-11-26 19:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnome-documents command output (gnome-documents.log,3.46 KB, text/plain)
2016-09-11 18:55 UTC, Francesco Turco
Details
emerge --info (emerge-info.txt,6.42 KB, text/plain)
2016-09-11 18:56 UTC, Francesco Turco
Details
gdb backtrace (gnome-documents.log,13.87 KB, text/plain)
2016-09-17 20:36 UTC, Francesco Turco
Details
full gdb backtrace (gnome-documents-full.log,84.19 KB, text/plain)
2016-09-17 20:37 UTC, Francesco Turco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2016-09-11 18:55:39 UTC
Created attachment 445500 [details]
gnome-documents command output

Today I updated gnome-documents to version 3.20.1 but now I can't launch it anymore because of a segmentation fault. I would gladly submit a backtrace but unfortunately gnome-documents doesn't seem to work with gdb. Please tell me how to create it.
Comment 1 Francesco Turco 2016-09-11 18:56:16 UTC
Created attachment 445502 [details]
emerge --info
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-11 19:39:03 UTC
What gjs version are you running ?
Comment 3 Francesco Turco 2016-09-11 19:40:46 UTC
dev-libs/gjs-1.45.4
Comment 4 Pacho Ramos gentoo-dev 2016-09-17 14:43:31 UTC
I cannot reproduce, even with your gjs version

You should try to get a better backtrace:
https://wiki.gentoo.org/wiki/Project:GNOME/GNOME3-Troubleshooting#Getting_backtraces
Comment 5 Francesco Turco 2016-09-17 20:35:31 UTC
I managed to find a way for obtaining a backtrace. But first I had to rebuild the following packages:

------------------------

$ emerge -pv dev-lang/spidermonkey dev-libs/gjs dev-libs/glib gnome-extra/gnome-documents app-misc/tracker dev-db/sqlite dev-libs/nspr gnome-base/dconf

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-db/sqlite-3.14.2:3::gentoo  USE="readline -debug -doc -icu -secure-delete -static-libs -tcl {-test} -tools" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-libs/nspr-4.12::gentoo  USE="-debug" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] dev-lang/spidermonkey-24.2.0-r3:24::gentoo  USE="system-icu -debug -icu -jit -minimal -static-libs {-test}" 0 KiB
[ebuild   R    ] dev-libs/glib-2.48.2:2::gentoo  USE="dbus (mime) -debug (-fam) (-selinux) -static-libs -systemtap {-test} -utils -xattr" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R    ] dev-libs/gjs-1.45.4::gentoo  USE="cairo gtk -examples {-test}" 0 KiB
[ebuild   R    ] app-misc/tracker-1.8.0:0/100::gentoo  USE="exif flac gif gstreamer gtk iso jpeg miner-fs mp3 nautilus networkmanager pdf rss tiff upower vorbis xml -cue -ffmpeg -firefox-bookmarks -gsf -iptc -libav -playlist -stemmer {-test} -thunderbird -upnp-av -xmp -xps" 0 KiB
[ebuild   R    ] gnome-base/dconf-0.26.0::gentoo  USE="{-test}" 0 KiB
[ebuild   R    ] gnome-extra/gnome-documents-3.20.1::gentoo  0 KiB

Total: 8 packages (8 reinstalls), Size of downloads: 0 KiB

----------------------

For all of the previous packages I enabled the following build options:

CFLAGS="-march=native -O2 -ggdb -pipe"
CXXFLAGS="${CFLAGS}"
FEATURES="${FEATURES} nostrip"

-----------------------

I'm going to attach the backtraces next.
Comment 6 Francesco Turco 2016-09-17 20:36:51 UTC
Created attachment 446208 [details]
gdb backtrace

For this backtrace I simply used the "bt" gdb command.
Comment 7 Francesco Turco 2016-09-17 20:37:46 UTC
Created attachment 446210 [details]
full gdb backtrace

For this backtrace I used the following gdb command: thread apply all bt full
Comment 8 Francesco Turco 2016-09-17 20:39:15 UTC
There are still some ?? symbols in both backtraces but I don't know how to get rid of them.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-17 22:50:34 UTC
Looking at the trace, maybe this is a problem happening in sqlite.
You can test that by resetting tracker index, using:
$ tracker reset --hard

You can make a copy of the database by copying ~/.cache/tracker somewhere else.
Comment 10 Francesco Turco 2016-09-18 08:08:18 UTC
I reset the tracker cache as you said, but gnome-documents still crashes with a segmentation fault.
Comment 11 Pacho Ramos gentoo-dev 2016-09-18 08:55:06 UTC
Please provide "emerge -Opv libreoffice", maybe this is caused by:
https://lists.freedesktop.org/archives/libreoffice/2016-March/073787.html

I cannot reproduce probably because gtk3 USE flag is masked for stable libreoffice and, hence, gnome-documents doesn't even try to load that support
Comment 12 Francesco Turco 2016-09-18 09:11:19 UTC
$ emerge -Opv libreoffice

These are the packages that would be merged, in order:

[ebuild   R    ] app-office/libreoffice-5.1.4.2::gentoo  USE="branding cups dbus eds gnome gstreamer gtk gtk3 java (-aqua) -bluetooth -coinmp -collada -debug (-firebird) -gltf -google -jemalloc -kde -libressl -mysql -odk -postgres -quickstarter (-telepathy) {-test} -vlc" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_5 -python3_4" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 13 Francesco Turco 2016-09-18 09:16:01 UTC
I tried manually creating the following symlink:

cd /usr/lib64
ln -s /usr/lib64/libreoffice/program/liblibreofficekitgtk.so

And now GNOME Documents doesn't crash anymore.
Comment 14 Pacho Ramos gentoo-dev 2016-09-18 09:16:57 UTC
Indeed, you have USE gtk3 enabled, that is masked because of:
# Andreas Huettel <dilfridge@gentoo.org> (26 Sep 2015)
# Not stable enough for stable (Debian and SuSE disable it completely)
=app-office/libreoffice-5.0* gtk3
=app-office/libreoffice-5.1* gtk3


Anyway, as https://lists.freedesktop.org/archives/libreoffice/2016-March/073787.html states, we should get libreoffice ebuild to symlink liblibreofficekitgtk.so to libdir
Comment 15 Pacho Ramos gentoo-dev 2016-09-18 09:17:27 UTC
(In reply to Francesco Turco from comment #13)
> I tried manually creating the following symlink:
> 
> cd /usr/lib64
> ln -s /usr/lib64/libreoffice/program/liblibreofficekitgtk.so
> 
> And now GNOME Documents doesn't crash anymore.

Yep, we were commenting at the same time here and collided ;)
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-09-30 18:23:15 UTC
Should we do anything about this then ? Masked features for stability issues causing crashes seems like a "invalid" to me.
Comment 17 Pacho Ramos gentoo-dev 2016-09-30 20:31:50 UTC
The missing symlink is a valid bug, gnome-documents need it and, hence, it should be fixed in libreoffice for the future (when they unmask gtk3 USE at some point)
Comment 18 Andreas K. Hüttel archtester gentoo-dev 2016-11-19 22:43:54 UTC
(In reply to Pacho Ramos from comment #17)
> The missing symlink is a valid bug, gnome-documents need it and, hence, it
> should be fixed in libreoffice for the future (when they unmask gtk3 USE at
> some point)

Is planned for 5.2, so soon...
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2016-11-19 23:12:29 UTC
(In reply to Andreas K. Hüttel from comment #18)
> (In reply to Pacho Ramos from comment #17)
> > The missing symlink is a valid bug, gnome-documents need it and, hence, it
> > should be fixed in libreoffice for the future (when they unmask gtk3 USE at
> > some point)
> 
> Is planned for 5.2, so soon...

Link added to the live ebuilds, will be in the next release.
Comment 20 Andreas K. Hüttel archtester gentoo-dev 2016-11-19 23:13:23 UTC
PS. On a first glance this might look like a gnome-documents bug. However, if LibreOffice announces the presence of the library file in the .gir, then it should also be present and loadable...
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2016-11-26 19:26:55 UTC
Fixed in libreoffice-5.2.3.3-r1 and later