Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129053 - Openoffice-bin segmentation fault on KDE-3.5.2 compiled with gcc-4.1.0
Summary: Openoffice-bin segmentation fault on KDE-3.5.2 compiled with gcc-4.1.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-06 11:34 UTC by Krzysztof Raczkowski
Modified: 2006-04-13 11:34 UTC (History)
3 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 Krzysztof Raczkowski 2006-04-06 11:34:17 UTC
I can't run openoffice-bin:

raku@demon ~ $ LC_ALL="posix" /usr/lib/openoffice/program/soffice
/usr/lib/openoffice/program/soffice: line 233:  8922 Segmentation fault      "$sd_prog/$sd_binary" "$@"

It's only when trying to run on KDE compiled with gcc-4.1.0. I can run OO on TWM, and people on Polish forum say that it works on xfce and Gnome (compiled with gcc-4.1.0).
On my second computer with gcc-3.4.6 it also works well.

User kicior from Polish forum show some output from debugger:

Program received signal SIGSEGV, Segmentation fault. 
0xb5837efa in QPointArray::~QPointArray () from /usr/kde/3.5/lib/libkdefx.so.4

My emerge info:
raku@demon ~ $ emerge --info
Portage 2.1_pre7-r4 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-ck3 i686)
=================================================================
System uname: 2.6.16-ck3 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -g0 -ftracer -ffast-math -fforce-addr -s -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg candy distlocks metadata-transfer moo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.prz.edu.pl ftp://mirrors.tds.net/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-Wl,-O1,--sort-common -s"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo.prz.edu.pl/gentoo-portage"
USE="x86 3dnow X acl acpi alsa avi bash-completion berkdb bitmap-fonts cdr cli crypt ctype cups dba dri eds encode expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif hal imlib isdnlog jpeg kde kdeenablefinal libwww mad memlimit mmx mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl pic png posix ppds pppd python qt quicktime readline sdl session simplexml soap sockets spell spl sse ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode usb videos vorbis xml xsl xv zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_pl userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 1 Leszek Salamacha 2006-04-06 12:21:20 UTC
I can also add that it is possible to run openoffice-bin under KDE like this:

kicior ~ $ ssh -X localhost
Password:
Last login: Wed Apr  5 01:14:21 2006 from localhost
kicior ~ $ oowriter2

Here you can read also logs from gdb and strace:
1. http://kicior.umcs.lublin.pl/~leszeks/oogdb.log
2. http://kicior.umcs.lublin.pl/~leszeks/oostrace.log
Comment 2 Patrizio Bassi 2006-04-06 12:34:57 UTC
i have the same problem.

confirmed. i just was wondering why it worked some days ago, and now no more.
Comment 3 Patrizio Bassi 2006-04-06 12:37:37 UTC
my backtrace: different point and function, same lib

no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1234855744 (LWP 11283)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1234855744 (LWP 11283)]
0xb57996ba in QMapPrivate<QPopupMenu const*, (anonymous namespace)::ShadowElements>::copy ()
   from /usr/kde/3.5/lib/libkdefx.so.4
(gdb)                                
Comment 4 Ian Hubbertz 2006-04-10 01:13:19 UTC
Workaround (use Gnome instead of KDE decorations):

Start OOo with

# OOO_FORCE_DESKTOP=gnome ooffice2
Comment 5 Patrizio Bassi 2006-04-10 01:54:05 UTC
here it seems starting, but it loops on "document restore" or similar procedure
Comment 6 Robin Bankhead 2006-04-10 12:46:47 UTC
(In reply to comment #4)
> Workaround (use Gnome instead of KDE decorations):
> 
> Start OOo with
> 
> # OOO_FORCE_DESKTOP=gnome ooffice2
> 

So does this mean the bug is in kdelibs?  I ask because I've had enormous problems with KDE since moving to gcc-4.1.x / gcc-2.4* and now I'm also getting this same problem.  I couldn't even get the KDE packages to run without changing -Os to -O2.
Comment 7 Patrizio Bassi 2006-04-12 00:58:22 UTC
i use -O3 and it's the only kde problem i have actually.
Comment 8 Robin Bankhead 2006-04-12 14:03:55 UTC
I overcame this by removing -ffast-math and -mfpmath=sse from my C(XX)FLAGS, and rebuilding Qt and kdelibs (and the rest of KDE for good measure).

From the above, looks like perhaps -ffast-math was the bogey.
Comment 9 Patrizio Bassi 2006-04-13 00:49:13 UTC
qt should filter that, so it's useless.
i'm now rebuilding my kdelibs, however i have really no troubles with my kde system, so i'm hopeless.

i'll report today when the compilation ends.
Comment 10 Patrizio Bassi 2006-04-13 05:29:56 UTC
you're right, recompiling kdelibs without --fast-math fixed this issue.

i suggest closing this bug and marking as invalid so.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2006-04-13 11:34:53 UTC
Usage of -ffast-math globally is unsafe and not supported. Please don't file bugs unless you can reproduce a problem on a system without it.