AbiWord 2.0.1 will compile and run fine with the -Os CFLAG, but trying to save a document (in ANY supported format) will result in a crash with no output/error-message. The same crash will occur if text is copied or cut by highlighting a sting of text and copying/cutting with either the keyboard shortcuts or by using the menu. The same problem occurs with AbiWord 2.0.0. Reproducible: Always Steps to Reproduce: 1. Compile AbiWord 2.0.1 with the -Os CFLAG. 2. Save a written document or.. 3. Copy/cut a string of text in a document. Actual Results: A crash with no error-message or other output that would lead to the cause of the crash. Expected Results: AbiWord should be able to save and copy/cut without crashing. emerge info: Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-test10-mm1) ================================================================= System uname: 2.6.0-test10-mm1 i686 Mobile AMD Athlon(tm) 4 Processor Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-4 -Os -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-4 -Os -pipe -fomit-frame-pointer -falign-functions=16 -falign-loops=16 -falign-jumps=16" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/cypher/ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline svga tcltk java X sdl tcpd pam ssl python imlib oggvorbis gtk opengl 3dnow aalib acpi alsa -arts dga directfb dvd esd fbcon -gnome gpm gtk2 -kde mmx -motif perl -qt sse usb" This bug is squashed when AbiWord 2.0.x is compiled with -O2; I am submitting an ebuild which replaces -Os with -O2.
humm why dont you submit the ebuild here ? is this Os crash reproducable beyond your one machine ? Are you sure the crashing has nothing todo with your -f* optimizations ?
Created attachment 21388 [details] Patched abiword ebuild.
This has been tested on another machine using -Os (which caused the aforementioned crash) and later with -O2 (which worked fine). I tested with and without the -f* optimisations. They seemingly had no effect.
I can also confirm the cut/copy crash happens on 2.0.2 also with -Os, and was very annoying. -O2 fixes it. -Dan
And what is your 'emerge info', i can't reproduce this. Could someone also get a backtrace with debugging info and attach it here ?
waiting for backtrace I'm not about to put more restrictions on ebuilds without some real evidence.
eek, aren't we supposed to avoid athlon-4? Not that that causes it... Yeah, I can't reproduce it or find anyone that can, and don't see much in the way of real evidence, and that's not a gcc version we need to worry about, and so on... So I agree with foser. Find some more people and determine a single commonality and then we'll look into conditional restrictions. make sure to try with 3.3.2-r5 (I think the latest stable on x86) or later (3.3.3 is in ~). and...yeah, needinfo.
I had this problem...what fixed it for me was I had to emerge aiksaurus using gcc-3.3.4 then emerge abiword with gcc-3.3.4...gcc-3.4.* seemed to break it. Here's my emerge info, only diffrence was I switched gcc version Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r6 i686) ================================================================= System uname: 2.6.9-gentoo-r6 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.5.3 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -m3dnow -msse -mmmx -mfpmath=sse,387 -pipe -fforce-addr -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -ftracer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -m3dnow -msse -mmmx -mfpmath=sse,387 -pipe -fforce-addr -fomit-frame-pointer -frerun-cse-after-loop -frerun-loop-opt -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -ftracer" DISTDIR="/home/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg candy ccache distcc distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/home/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde libg++ libwww mad mikmod mmx mmxext motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tiff truetype x x86 xine xml xml2 xmms xv zlib"
That suddenly looks a whole lot like certain other reports that've made their way to my desk. But it doesn't look to me like the same bug as this original report. So, wrt that comment, it doesnt work with a 3.4 build, you switch to 3.3.4, emerge aik, emerge abi, it works, now if you switch right back to 3.4, emerge aik, emerge abi, it does not work?