Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34527 - AbiWord 2.0.1 will crash on save and copy/cut if compiled with -Os
Summary: AbiWord 2.0.1 will crash on save and copy/cut if compiled with -Os
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-27 10:56 UTC by cypher
Modified: 2004-11-28 19:41 UTC (History)
1 user (show)

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


Attachments
Patched abiword ebuild. (abiword-2.0.1.ebuild,2.09 KB, text/plain)
2003-11-27 15:39 UTC, cypher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cypher 2003-11-27 10:56:11 UTC
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.
Comment 1 foser (RETIRED) gentoo-dev 2003-11-27 14:18:16 UTC
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 ?

Comment 2 cypher 2003-11-27 15:39:14 UTC
Created attachment 21388 [details]
Patched abiword ebuild.
Comment 3 cypher 2003-11-27 15:42:41 UTC
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.
Comment 4 Dan 2004-01-11 00:07:01 UTC
I can also confirm the cut/copy crash happens on 2.0.2 also with -Os, and was very annoying.  -O2 fixes it. -Dan
Comment 5 foser (RETIRED) gentoo-dev 2004-01-11 07:40:56 UTC
And what is your 'emerge info', i can't reproduce this.

Could someone also get a backtrace with debugging info and attach it here ?
Comment 6 foser (RETIRED) gentoo-dev 2004-02-29 08:29:44 UTC
waiting for backtrace

I'm not about to put more restrictions on ebuilds without some real evidence.
Comment 7 Mark Gilbert 2004-03-01 17:38:11 UTC
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.
Comment 8 Robert Cole 2004-11-27 15:47:23 UTC
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"
Comment 9 Mark Gilbert 2004-11-28 19:41:25 UTC
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?