Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144669 - quake2-icculus experiences in-game crashes with -Os
Summary: quake2-icculus experiences in-game crashes with -Os
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 11:26 UTC by Ben Leggett
Modified: 2006-09-05 09:54 UTC (History)
0 users

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 Ben Leggett 2006-08-21 11:26:12 UTC
Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 Intel(R) Celeron(R) M processor         1.40GHz
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe -fweb -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -mfpmath=sse -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf"
CXXFLAGS="-march=pentium-m -Os -pipe -fweb -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -mfpmath=sse -msse2"
DISTDIR="/hda3/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi alsa asf asm audiofile avahi avi bash-completion beagle berkdb bitmap-fonts bookmarks bzip2 cairo cdparanoia cdr cli crypt daap dbus dga dhcp dio directfb divx4linux dlloader doc dri dts dvd dvdread dvi eds emacs emboss encode examples exif fam fat fbcon ffmpeg firefox flac flash fortran gdbm gif gimp gnome gphoto2 gpm grammar gstreamer gtk gtk2 gtkhtml hal howl howl-compat icq imlib innodb ipv6 isdnlog jabber java javascript jfs jikes joystick jpeg lcms libg++ libwww mad madwifi matroska mdnsresponder-compat mikmod mime mjpeg mmap mmx mmx2 mmxext mng mono mp3 mp4 mpeg musepack mysql nautilus ncurses nls noamazon nocd nptl nsplugin ntfs ogg oggvorbis pam pcre pdf pdflib perl png pppd python quicktime readline real reflection reiser4 reiserfs sdk sdl session skey sndfile snmp soap sox speex spell spl sse sse2 ssl svg symlink szip tagwriting tcpd theora thesaurus threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd visualization vorbis wifi win32codecs wmf wxwindows xfs xine xml xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_kbd input_devices_mouse input_devices_synaptics kernel_linux linguas_en userland_GNU video_cards_radeon video_cards_vesa video_cards_fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-21 11:32:28 UTC
Are you positive that it is -Os causing this and not another of your flags?

Can you reproduce the problem with just: CFLAGS="-Os" ?
Comment 2 Ben Leggett 2006-08-21 11:37:01 UTC
If emerged with -0s, quake2-icculus experiences in-game crashes in certain places, 
for instance in the room with the girder sticking out of the floor in the 
first level(where you get the shotgun).

I changed -Os to -O2 and recompiled. The crashes no longer occured. 
I recompiled a few more time to check, 
and the results were always the same. This may be a machine-specific issue.

USE flags for ebuild in question:

games-fps/quake2-icculus-0.16.1  USE="X ipv6 joystick noqmax rogue sdl xatrix -aalib -alsa -arts -dedicated -opengl -svga" 0 kB

I changed nothing else but the -O setting. I'll try your suggestion and see what happens.
Comment 3 Ben Leggett 2006-08-21 15:01:58 UTC
Okay, after trial-and-error testing, I found that this combination 
causes the in-game crashes.

-Os -mfpmath=sse -msse2

No other flags cause the issue, and none of the above flags 
singly cause the crashes.

"-O2 -mfpmath=sse -msse2" does not cause crashes, however.

Comment 4 Ben Leggett 2006-09-05 09:54:00 UTC
Update: No longer occurs when recompiled with now-stable gcc4.