Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505564 - app-office/libreoffice-bin-4.1.3.2-r3 and 4.1.4.2 segfault when "saving as" at libgobject
Summary: app-office/libreoffice-bin-4.1.3.2-r3 and 4.1.4.2 segfault when "saving as" a...
Status: RESOLVED OBSOLETE
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:
 
Reported: 2014-03-24 18:13 UTC by Jesús Guerrero Botella (RETIRED)
Modified: 2014-12-29 20:18 UTC (History)
3 users (show)

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


Attachments
The backtrace (lo-bt.txt,32.71 KB, text/plain)
2014-03-26 18:03 UTC, Jesús Guerrero Botella (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Guerrero Botella (RETIRED) gentoo-dev 2014-03-24 18:13:10 UTC
Recently, libreoffice-bin started segfaulting when I select "Save as" from the menu. I am sure that some days ago it was working just fine, because I do a lot of xls to cvs conversion, and I always use localc for that.

The dmesg log says this:

===
[ 2316.967660] soffice.bin[4122]: segfault at 39 ip b3bcf7fe sp bf9afef0 error 4 in libgobject-2.0.so.0.3800.2[b3ba0000+4e000]
[/quote]

revdep-rebuild says nothing is wrong.

Things I've tried, in no particular order:

1.- recompiling libjpeg
2.- changing from libjpeg-turbo to regular libjpeg
3.- downgrading libreoffice-bin
4.- recompiling glib, which is the package containing libgobject
5.- downgrading glib
6.- setting/unsetting OOO_FORCE_DESKTOP

While I was writing this bug report, I remembered that libreoffice has an option to use its native dialogs, and setting that seems to solve the issue. So, the problem might have something to do with gtk+. Not sure. I only had gtk+-2.x installed until today (now I have 3.x as well because I had to install gnumeric in a rush to be able to continue working, it didn't make a difference though).

Reproducible: Always

Steps to Reproduce:
1. run localc
2. choose save as or open from the menu
3. it just segfaults at libgobject



Portage 2.2.8-r1 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.13.6 i686)
=================================================================
System uname: Linux-3.13.6-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.2
KiB Mem:     2589964 total,    918708 free
KiB Swap:    1023996 total,   1023996 free
Timestamp of tree: Mon, 24 Mar 2014 10:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4::pentoo
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo pentoo seden enlightenment foo-overlay x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs candy compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pentoo /var/lib/layman/seden /var/lib/layman/enlightenment /var/lib/layman/foo-overlay /usr/local/portage"
USE="X a52 aac acpi alsa archive berkdb bluetooth bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt css cups curl cxx dbus dri dts dvd dvdr emboss emotion encode exif fam fat firefox flac fluidsynth fortran fuse g3dvl gdbm gif gles2 glib goom gpm gsm gtk iconv icu imagemagick imlib infinality ipv6 jpeg lcms libcanberra libkms lzma mad midi mmx mng modules mp3 mp4 mpeg ncurses nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf png policykit ppds python qt3support readline rle samba session sndfile speex spell sqlite sse sse2 sse3 ssl startup-notification svg symlink syslog tcpd theora threads tiff truetype udev udisks ukit unicode upower usb vaapi vdpau vlc vorbis wxwidgets x264 x86 xcb xcomposite xft xml xorg xpm xrandr xscreensaver xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi sheets" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth caps gensplash" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-32" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es es_ES en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r300" XFCE_PLUGINS="clock" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-03-24 20:50:00 UTC
@Jesus: please if possible download and install libreoffice-bin-debug, and try to get a backtrace from the crash. (Warning, 800M download.)
 
See https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces for some background information. You dont have to recompile anything, since libreoffice-bin(-debug) is already built with the right flags. 

@gnome team: any known abi problems in recently stabilized gtk+ and friends?
Comment 2 Jesús Guerrero Botella (RETIRED) gentoo-dev 2014-03-24 20:59:57 UTC
I was planning to install the debug version to get a bt, but that will be tomorrow, becaause first I have to do some room to install it.
Comment 3 Francesco Riosa 2014-03-25 20:53:56 UTC
see also Bug 503272
Comment 4 Jesús Guerrero Botella (RETIRED) gentoo-dev 2014-03-26 18:03:48 UTC
Created attachment 373600 [details]
The backtrace

The backtrace is from running soffice, and then pushing the big "Open" button. 

At that point, the application crashes and I just dump the output of the gdb bt command.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-03-27 01:28:44 UTC
Does this happen only when using x11-themes/oxygen-gtk, or even with the default Adwaita theme from x11-themes/gnome-themes-standard?
Comment 6 Jesús Guerrero Botella (RETIRED) gentoo-dev 2014-03-27 07:52:17 UTC
I deleted ~/.gtkrc* and it doesn't segfault now.

I thought running with OOO_FORCE_DESKTOP='' or 'none' would fix that, but obviously I was wrong.

So it turns out that oxygen is related.
Comment 7 Jesús Guerrero Botella (RETIRED) gentoo-dev 2014-03-27 11:19:57 UTC
So, I now wonder why does libreoffice segfault, but the rest do not. I use a lot of gtk2 based software (bluefish, evince, gimp, inkscape... to name just a few), and neither of these suffers from this problem.

As a side note, I remember oxygen-gtk being updated from 1.4.3 to 1.4.4 some days ago, so maybe that's what triggered the issue.

In fact, downgrading to 1.4.3 "solves" the issue, meaning that I can use libreoffice with gtk dialogs.

For me it's hard to guess however if the problem is in oxygen-gtk, libreoffice-bin, or somewhere else. It could also be some kind of odd ABI issue which would explain why it doesn't affect any other package.
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2014-12-29 20:18:21 UTC
(In reply to Jesús Guerrero Botella from comment #6)
> I deleted ~/.gtkrc* and it doesn't segfault now.
> 
> I thought running with OOO_FORCE_DESKTOP='' or 'none' would fix that, but
> obviously I was wrong.
> 
> So it turns out that oxygen is related.

OK, summa summarum we don't have a clue and it looks like a configuration problem.

Closing this since it's been some time. Reopen if it happens again.