Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560172 - app-office/libreoffice-5.0.1.2 is highly unstable and segfaults when compiled with gtk3 flag
Summary: app-office/libreoffice-5.0.1.2 is highly unstable and segfaults when compiled...
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: 593514
Blocks:
  Show dependency tree
 
Reported: 2015-09-10 20:50 UTC by Harris Landgarten
Modified: 2017-05-13 22:58 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2015-09-10 20:50:46 UTC
writer runs but typing moves the cursor with nothing showing on screen. A scroll up and down then reveals the text. Same sort of anomalies on other normal actions.

After a few deletes the soffice.bin seqfaults with:

 kernel: soffice.bin[31083]: segfault at 0 ip 00007fbb4a758ee1 sp 00007ffc175db9a0 error 4 in libvclplug_gtk3lo.so[7fbb4a71d000+7f000]

I suggest you disable the gtk3 use flag by default until it works.

BTW: I am running a fully updated testing configuration with gnome-3.16 and a few packages from the gnome-overlay.
Comment 1 Derk W te Bokkel 2015-09-10 22:25:56 UTC
I've been using libreoffice in the follow use flag configuration and ~amd64 for about 12 months  .. libreoffice has been stable so far ..   



(use flags at bottom of list)

emerge --info libreoffice
Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.2.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.2
KiB Mem:     4004012 total,     62376 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Wed, 09 Sep 2015 21:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

brother-overlay
    location: /usr/local/overlay/brother-overlay
    sync-type: git
    sync-uri: git://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo

xfce-dev
    location: /var/lib/layman/xfce-dev
    masters: gentoo
    priority: 50

derk-personal
    location: /home/derk/portage
    masters: gentoo
    priority: 80

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask --autounmask-write --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
USE="X a52 aac acl alsa amd64 apng archive avcodec avformat bzip2 cairo cdda cddb cdr cifs cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr encode flac fortran fuse gallium gdbm gphoto2 gpm gstreamer gtk gtk3 iconv id3tag introspection ipv6 java jpeg jpeg2k lame lcms libnotify live mad mmx mmxext modules mp3 mpeg multilib ncurses nfs nls nptl ntp ogg opengl openmp openrc opus pam parted pcre pdf pm-utils png policykit postproc ppds readline samba scanner seccomp session sna spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype twolame udev unicode uxa v4l vaapi vdpau vorbis vpx wav webm wma wma-fixed x264 xcb xinerama xorg xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" 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" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LINGUAS="en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-office/libreoffice-5.0.1.2::gentoo was built with the following:
USE="branding cups dbus gstreamer gtk3 java (-aqua) -bluetooth -coinmp -collada -debug -eds (-firebird) -gltf -gnome -gtk -jemalloc -kde -mysql -odk -postgres (-telepathy) -test -vlc" ABI_X86="64" LIBREOFFICE_EXTENSIONS="nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_4 -python2_7 -python3_3" PYTHON_TARGETS="python3_4 -python2_7 -python3_3"

try minimizing your use flags .. I do not use gnome desktop but xfce ..
Comment 2 Harris Landgarten 2015-09-10 22:32:17 UTC
I notice your flags have -gtk +gtk3. My flags defaulted to +gtk +gtk3. I wonder if the problems are having both gtk and gtk3 enabled. These problems started for me on first use of 5.0 series. Never a problem with 4.3 or earlier.
Comment 3 Derk W te Bokkel 2015-09-10 22:39:06 UTC
I switch to gtk3 only as gtk(2) and gtk3 are different enough that they have to carefully isolated to work together .. (xfce is in middle of switching) so I chose to turn off gtk once full gtk3  support was announced .. no problems with any of the 5.*.*.* versions preceeding either
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2015-09-10 23:28:27 UTC
(In reply to Harris Landgarten from comment #0)
> writer runs but typing moves the cursor with nothing showing on screen. A
> scroll up and down then reveals the text. Same sort of anomalies on other
> normal actions.
> 
> After a few deletes the soffice.bin seqfaults with:
> 
>  kernel: soffice.bin[31083]: segfault at 0 ip 00007fbb4a758ee1 sp
> 00007ffc175db9a0 error 4 in libvclplug_gtk3lo.so[7fbb4a71d000+7f000]
> 
> I suggest you disable the gtk3 use flag by default until it works.
> 
> BTW: I am running a fully updated testing configuration with gnome-3.16 and
> a few packages from the gnome-overlay.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2015-09-10 23:31:05 UTC
(In reply to Andreas K. Hüttel from comment #4)
> (In reply to Harris Landgarten from comment #0)
> > writer runs but typing moves the cursor with nothing showing on screen. A
> > scroll up and down then reveals the text. Same sort of anomalies on other
> > normal actions.
> > 
> > After a few deletes the soffice.bin seqfaults with:
> > 
> >  kernel: soffice.bin[31083]: segfault at 0 ip 00007fbb4a758ee1 sp
> > 00007ffc175db9a0 error 4 in libvclplug_gtk3lo.so[7fbb4a71d000+7f000]
> > 
> > I suggest you disable the gtk3 use flag by default until it works.
> > 
> > BTW: I am running a fully updated testing configuration with gnome-3.16 and
> > a few packages from the gnome-overlay.

Sorry, it's kinda difficult to diagnose anything without debug info and a backtrace. So it would be great if... 

https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

Be warned though, the LO build with debug info needs a LOT of disk space, so no tmpfs for building and make sure there's at least 25G free on /var/tmp/portage...
Comment 6 Harris Landgarten 2015-09-13 21:56:30 UTC
I will try to get to the debugging next weekend. In the meantime lets see if anyone else is seeing anything like me. I am not sure how many gnome-3.16 users compile LO from source
Comment 7 timemars 2015-09-13 23:32:56 UTC
(In reply to Harris Landgarten from comment #6)
> I will try to get to the debugging next weekend. In the meantime lets see if
> anyone else is seeing anything like me. I am not sure how many gnome-3.16
> users compile LO from source

Well, I just spent a few hours to recompile libreoffice with different USE flag combinations, and the results are as follows:

1. both gtk and gtk3 enabled: Writer is highly unstable, just the same as Harris mentioned.
2. gtk disabled while gtk3 enabled: same as above.
3. gtk enabled while gtk3 disabled: seems everythin goes well.
Comment 8 Bernd Feige 2015-09-14 09:33:32 UTC
Since you're seeking user reports (and this bug is still "unconfirmed") I may chime in:

On my current x86_64 system (~amd64) keyworded, I observed the same problems.

In addition to the screen update problem and instability in writer, another quite effective way to crash LO was to copy, in calc, a cell and then try to switch to a different sheet in the same file. In summary, LO was utterly unusable. 

I downgraded to LO-4 until I found this bug report. I can report that disabling gtk3 (I have +eds +gnome +gtk) fixes all issues I had.

I've seen a patch in LO master making sure that gtk calls are issued from the main thread. Can't find it right now; it's not yet included in the 5.0.2.1 prerelease, which shows the same bugs here with +gtk3.
Comment 9 Derk W te Bokkel 2015-09-14 10:35:22 UTC
I wonder if the bad interaction involves the gnome USE flag as I run a "pure gtk3"  i.e. +gtk3 -gtk -gnome -kde .. etc as above (comment 1)

I have never had a crash with libreoffice 5 series even in beta ..(rc's)
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2015-09-17 22:28:11 UTC
(In reply to timemars from comment #7)

> 1. both gtk and gtk3 enabled: Writer is highly unstable, just the same as
> Harris mentioned.
> 2. gtk disabled while gtk3 enabled: same as above.

ok, here's a suggestion for some additional info: please, 

* install sys-process/lsof
* start writer in one of the "unstable" configurations
* add here in the bug the output of the following command: 

lsof|grep '^soffice'|grep ' /usr/lib'|sed -e 's:^.* /usr/::g'|sort
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-19 01:15:47 UTC
Data point for your consideration: libreoffice-5.0.1.2 with USE="bluetooth branding cups dbus eds gnome gstreamer gtk gtk3 java jemalloc kde mysql postgres".

I am using it under gnome3. Everything is stable.
Comment 12 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-19 01:16:54 UTC
(In reply to Alexandre Rostovtsev from comment #11)
> Everything is stable.

Stable in the sense that libreoffice works without segfaults. The system itself is ~amd64.
Comment 13 Harris Landgarten 2015-09-19 01:55:34 UTC
https://www.mail-archive.com/libreoffice-bugs@lists.freedesktop.org/msg279094.html

This upstream bug shows the crash. I think it has already been patched. I think it is a bug in clipboard conflicts with outside clipboard handling code.

I do use parcelite which could be contributing to the bug.

The mishandling of display text could be related. At any rate this is a real bug that is known to upstream
Comment 14 Harris Landgarten 2015-09-27 01:07:18 UTC
5.0.2.2 now displays properly with gtk3 flag but writer still crashes on selection of text block and deletion with parcelite running.
Comment 15 Harris Landgarten 2015-09-27 01:17:16 UTC
this bug is reported fixed in 5.0.3

See if we can get that in the tree.
Comment 16 Andreas K. Hüttel archtester gentoo-dev 2015-09-27 12:43:07 UTC
(In reply to Harris Landgarten from comment #15)
> this bug is reported fixed in 5.0.3
> 
> See if we can get that in the tree.

Sure, as soon as it exists. :)

I talked to Debian and SuSE maintainers and in both cases the 5.0 gtk3 frontend is completely removed because it's too unstable. It also seems that the used graphics card plays a role, which is why some people see no problems at all.

I'm keeping the gtk3 useflag available for ~arch users, but (should 5.0 get stabilized) it will be hard-masked in the stable version.
Comment 17 Andreas K. Hüttel archtester gentoo-dev 2016-07-03 19:44:15 UTC
Let's drop the stable mask with the first 5.2 stabilization.
Comment 18 Harris Landgarten 2016-07-03 19:46:55 UTC
Gtk3 works fine with current ~arch releases.
Comment 19 Andreas K. Hüttel archtester gentoo-dev 2016-11-19 21:12:13 UTC
(In reply to Harris Landgarten from comment #18)
> Gtk3 works fine with current ~arch releases.

Excellent, mask will be gone with next stable then
Comment 20 Pacho Ramos gentoo-dev 2016-11-22 19:23:31 UTC
Please remember to fix bug 593514 first :)

Thanks!
Comment 21 Andreas K. Hüttel archtester gentoo-dev 2017-05-13 22:58:29 UTC
(In reply to Andreas K. Hüttel from comment #19)
> (In reply to Harris Landgarten from comment #18)
> > Gtk3 works fine with current ~arch releases.
> 
> Excellent, mask will be gone with next stable then

This is long fixed.