Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375277

Summary: app-office/libreoffice-3.4.1 (3.4.2): Calc crash if select and drag some cells in KDE
Product: Gentoo Linux Reporter: BerS <pitachx>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: normal CC: ville.aakko
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.youtube.com/watch?v=CmnmiaD-DOI
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: backtrace

Description BerS 2011-07-15 12:33:16 UTC
Calc crash every time when I drag some selected cells.

If start libreoffice with "OOO_FORCE_DESKTOP=gnome" everything ok.

Reproducible: Always

Steps to Reproduce:
1. Install KDE
2. Install libreoffice
3. Open calc file with some cells
4. Select some cells
5. Drag selected cells somewhere
Comment 1 BerS 2011-07-15 12:34:26 UTC
emerge --info
Portage 2.2.0_alpha45 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r4, 2.6.39.3-utf8 x86_64)
=================================================================
System uname: Linux-2.6.39.3-utf8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 15 Jul 2011 05:00:01 +0000
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2, 3.2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo kde mozilla
Installed sets: @kdebase-4.7
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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=nocona -pipe -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="ru_RU.UTF-8"                                                                                                                                                     
LC_ALL=""                                                                                                                                                              
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                      
LINGUAS="ru"                                                                                                                                                           
MAKEOPTS="-j3"                                                                                                                                                         
PKGDIR="/usr/portage/packages"                                                                                                                                         
PORTAGE_CONFIGROOT="/"                                                                                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                                                                                
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                              
PORTDIR="/usr/portage"                                                                                                                                                 
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/mozilla"                                                                                                          
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                                                                                                         
USE="X a52 aac accessibility acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cleartype cli consolekit cracklib crypt cups cxx dbus declarative djvu dlloader dri dts dvd dvdr emboss encode esd exif fam firefox flac fortran gdbm gdu gif glitz gnutls gpm gtk iconv javascript jpeg jpeg2k kde kipi lcms ldap libnotify lm_sensors lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp oss pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline rtc samba sdl semantic-desktop session spell sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vdpau vim-syntax vorbis wmp x264 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" APACHE2_MPMS="itk" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Pacho Ramos gentoo-dev 2011-07-15 12:47:14 UTC
You will need to get a backtrace:
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 3 BerS 2011-07-15 12:52:36 UTC
Some errors from console:

$libreoffice Price3_15.07.2011.xls 
Warning: failed to launch javaldx - java may not fuction correctly
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
Comment 4 BerS 2011-07-15 13:52:49 UTC
(In reply to comment #2)
> You will need to get a backtrace:
> http://www.gentoo.org/proj/en/qa/backtraces.xml

(gdb) run
Starting program: /usr/lib64/libreoffice/program/soffice.bin
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffee8eb700 (LWP 22794)]
[New Thread 0x7fffdfe07700 (LWP 22795)]
[New Thread 0x7fffdf606700 (LWP 22796)]
[New Thread 0x7fffd692a700 (LWP 22797)]
[New Thread 0x7fffd512c700 (LWP 22800)]
[Thread 0x7fffd512c700 (LWP 22800) exited]
[Thread 0x7fffdfe07700 (LWP 22795) exited]
[New Thread 0x7fffdfe07700 (LWP 22801)]
[New Thread 0x7fffd512c700 (LWP 22802)]
[New Thread 0x7fffd1749700 (LWP 22804)]
[Thread 0x7fffd1749700 (LWP 22804) exited]
[Thread 0x7fffdfe07700 (LWP 22801) exited]
[New Thread 0x7fffdfe07700 (LWP 22805)]
[New Thread 0x7fffd1749700 (LWP 22808)]
[New Thread 0x7fffc9ac0700 (LWP 22809)]
[Thread 0x7fffc9ac0700 (LWP 22809) exited]
[New Thread 0x7fffc9ac0700 (LWP 22810)]
[Thread 0x7fffc9ac0700 (LWP 22810) exited]
[Thread 0x7fffd1749700 (LWP 22808) exited]
[New Thread 0x7fffd1749700 (LWP 22811)]
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
[Thread 0x7fffd1749700 (LWP 22811) exited]
[New Thread 0x7fffd1749700 (LWP 22812)]
[Thread 0x7fffd1749700 (LWP 22812) exited]
[New Thread 0x7fffd1749700 (LWP 22813)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd692a700 (LWP 22797)]
0x00007fffe9fc1841 in ?? () from /usr/lib64/qt4/libQtGui.so.4
(gdb)
Comment 5 Pacho Ramos gentoo-dev 2011-07-15 13:57:18 UTC
(In reply to comment #4)
[...]
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffd692a700 (LWP 22797)]
> 0x00007fffe9fc1841 in ?? () from /usr/lib64/qt4/libQtGui.so.4
> (gdb)

That "??" are caused by package supplying  that lib was compiled without debugging symbols, you will need to recompile it and any other package providing libs with "??"
Comment 6 BerS 2011-07-15 14:04:21 UTC
it takes a long time :(
Comment 7 Pacho Ramos gentoo-dev 2011-07-17 11:48:46 UTC
(In reply to comment #6)
> it takes a long time :(

Try looking to dependencies in libreoffice ebuild for knowing what packages could you need to merge with debugging symbols... :-/
Comment 8 BerS 2011-07-17 11:58:49 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > it takes a long time :(
> 
> Try looking to dependencies in libreoffice ebuild for knowing what packages
> could you need to merge with debugging symbols... :-/

I can only do this tomorrow when I get to a computer at work.
Comment 9 BerS 2011-07-19 06:46:07 UTC
(gdb) run
Starting program: /usr/lib64/libreoffice/program/soffice.bin 
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffee8eb700 (LWP 27752)]
I18N: Operating system doesn't support locale "en_US"
Qt: gdb: -nograb added to command-line options.
         Use the -dograb option to enforce grabbing.
[New Thread 0x7fffdfe31700 (LWP 27753)]
[New Thread 0x7fffdf630700 (LWP 27754)]
[New Thread 0x7fffd911b700 (LWP 27755)]
[Thread 0x7fffdfe31700 (LWP 27753) exited]
[New Thread 0x7fffdfe31700 (LWP 27756)]
[New Thread 0x7fffd763a700 (LWP 27759)]
[Thread 0x7fffd763a700 (LWP 27759) exited]
[New Thread 0x7fffd763a700 (LWP 27760)]
[New Thread 0x7fffd574f700 (LWP 27763)]
[Thread 0x7fffd574f700 (LWP 27763) exited]
[New Thread 0x7fffd574f700 (LWP 27764)]
[Thread 0x7fffd574f700 (LWP 27764) exited]
[New Thread 0x7fffd574f700 (LWP 27765)]
[Thread 0x7fffd574f700 (LWP 27765) exited]
[New Thread 0x7fffd574f700 (LWP 27766)]
[New Thread 0x7fffccfea700 (LWP 27768)]
[Thread 0x7fffccfea700 (LWP 27768) exited]
[Thread 0x7fffd574f700 (LWP 27766) exited]
[New Thread 0x7fffd574f700 (LWP 27769)]
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread
QPixmap: It is not safe to use pixmaps outside the GUI thread

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd911b700 (LWP 27755)]
0x00007fffea19d231 in classId (pixmap=...) at ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h:115
115     ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h: No such file or directory.
        in ../../include/QtGui/private/../../../src/gui/image/qpixmapdata_p.h
(gdb)
Comment 10 Matt Turner gentoo-dev 2011-07-20 20:44:39 UTC
After the SIGSEGV in gdb, type `bt full` and press enter. That'll give you the backtrace.
Comment 11 BerS 2011-07-21 06:29:22 UTC
I have a problem. I can not do backtrace because my KDE freezes after the SIGSEGV.
Comment 12 Matt Turner gentoo-dev 2011-07-21 16:24:02 UTC
(In reply to comment #11)
> I have a problem. I can not do backtrace because my KDE freezes after the
> SIGSEGV.

Perhaps you can run gdb in a virtual terminal?
Comment 13 BerS 2011-07-21 17:39:57 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > I have a problem. I can not do backtrace because my KDE freezes after the
> > SIGSEGV.
> 
> Perhaps you can run gdb in a virtual terminal?

for example?
Comment 14 BerS 2011-07-22 08:31:28 UTC
Created attachment 280581 [details]
backtrace
Comment 15 Pacho Ramos gentoo-dev 2011-07-22 12:00:49 UTC
Please post "emerge -pv libreoffice" and be sure you are not setting "custom-cflags" USE for it.
Comment 16 BerS 2011-07-22 12:03:19 UTC
emerge -vp libreoffice

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

Calculating dependencies... done!
[ebuild   R   #] app-office/libreoffice-3.4.1  USE="cups dbus debug gtk kde ldap opengl (-aqua) -binfilter -custom-cflags -eds -gnome -gstreamer -java (-kdeenablefinal) -nsplugin -odk -offlinehelp -templates" LINGUAS="ru -af -ar -as -ast -be_BY -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gd -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -ky -lo -lt -lv -mai -mk -ml -mn -mni -mr -ms -my -nb -ne -nl -nn -nr -ns -oc -om -or -pa% -pap -pl -ps -pt -pt_BR -ro -rw -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -ti -tn -tr -ts -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu (-en_US%) (-pa_IN%) (-sa_IN%)" 0 kB
Comment 17 BerS 2011-07-22 12:06:51 UTC
And yes, the same bug reproduced in Arch Linux.
Comment 18 BerS 2011-07-25 10:50:07 UTC
Same here libreoffice-3.4.2.2
Comment 19 Tomáš Chvátal (RETIRED) gentoo-dev 2011-07-25 11:10:36 UTC
This is for sure upstream bug.

Could you try to locate the report on bugs.freedesktop.org or open new report about this there?
Comment 20 BerS 2011-07-25 11:37:22 UTC
Ok. I locate report on bugs.freedesktop.org - https://bugs.freedesktop.org/show_bug.cgi?id=39521
Comment 21 Tomáš Chvátal (RETIRED) gentoo-dev 2011-10-22 19:36:20 UTC
Fixed in the 3.4.9999 will be in 3.4.4.

It was quite serious bug in the backend. I wrote blog entry about it http://blogs.gentoo.org/scarabeus/2011/10/22/libreoffice-qt4-issues-fixed/
Comment 22 BerS 2011-10-22 19:53:57 UTC
Very glad to hear it.
Comment 23 BerS 2011-11-10 13:57:08 UTC
Same here - app-office/libreoffice-3.4.4.2-r1
Comment 24 Tomáš Chvátal (RETIRED) gentoo-dev 2011-11-10 18:40:49 UTC
(In reply to comment #23)
> Same here - app-office/libreoffice-3.4.4.2-r1

As still broken?

I can't reproduce it with 3.4.4 and qt-4.8.0_rc2...
Comment 25 BerS 2011-11-11 07:15:02 UTC
(In reply to comment #24)
> (In reply to comment #23)
> > Same here - app-office/libreoffice-3.4.4.2-r1
> 
> As still broken?
> 
> I can't reproduce it with 3.4.4 and qt-4.8.0_rc2...

Yes, for me. Maybe because I have qt-4.7.4.
Comment 26 Ville Aakko 2013-07-06 22:21:47 UTC
Hi,

I can still reproduce this on 4.1.0.1 (the OOO_FORCE_DESKTOP works around this). Is this bug not fixed in the 4.X branch, or maybe a regression? Should I file a new bug report?
Comment 27 Tomáš Chvátal (RETIRED) gentoo-dev 2013-07-07 06:28:32 UTC
(In reply to Ville Aakko from comment #26)
> Hi,
> 
> I can still reproduce this on 4.1.0.1 (the OOO_FORCE_DESKTOP works around
> this). Is this bug not fixed in the 4.X branch, or maybe a regression?
> Should I file a new bug report?

Open a bug at bugs.freedesktop.org for upstream about this.