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
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
i have the same problem. confirmed. i just was wondering why it worked some days ago, and now no more.
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)
Workaround (use Gnome instead of KDE decorations): Start OOo with # OOO_FORCE_DESKTOP=gnome ooffice2
here it seems starting, but it loops on "document restore" or similar procedure
(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.
i use -O3 and it's the only kde problem i have actually.
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.
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.
you're right, recompiling kdelibs without --fast-math fixed this issue. i suggest closing this bug and marking as invalid so.
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.