Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31235 - SDL applications segfault when trying to set fullscreen modes
Summary: SDL applications segfault when trying to set fullscreen modes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-15 19:30 UTC by Philip Allison
Modified: 2003-11-03 14:34 UTC (History)
1 user (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 Philip Allison 2003-10-15 19:30:31 UTC
SDL 1.2.6-r1 fails when starting orbital-eunuchs-sniper, frozen-bubble or
tuxracer in fullscreen mode. o-e-s and f-b do work in windowed modes; however,
when you try to start a game from the frozen-bubble menu screen, it exits with
the message "Illegal Instruction".

I'm using XFree 4.3 with the hardware-accelerated ATI drivers (i.e. ati-drivers
package) on an M9 (Radeon Mobility 9000). The problem was fixed by downgrading
with 'emerge "=libsdl-1.2.5-r2"'.

orbital-eunuchs-sniper was also jerky and prone to segfaulting even in windowed
mode prior to downgrading.

Reproducible: Always
Steps to Reproduce:
1. Emerge libsdl-1.2.6-r1
2. Emerge orbital-eunuchs-sniper, frozen-bubble, or tuxracer
3. Try to run one of the above in fullscreen mode
Actual Results:  
Program exits with a segfault

Expected Results:  
Er.. no crash :)

emerge info output:

Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6)
=================================================================
System uname: 2.6.0-test6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -funroll-loops -fomit-frame-pointer
-fprefetch-loop-arrays -pipe"
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="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 crypt cups encode foomaticdb libg++ libwww mad pdflib spell xml2 xmms
gdbm berkdb slang tcltk sdl tcpd pam perl imlib gtk -oss dga cscope X gtk2 gnome
alsa -qt -kde -debug mmx sse 3dnow acpi -apm -arts avi cdr dvd -esd -fbcon gif
gpm gstreamer imap joystick jpeg mikmod mozilla mpeg ncurses oggvorbis opengl
png quicktime readline samba ssl tiff truetype wmf xv zlib -nls -python java
-svgalib -svga -motif moznocompose moznoirc mozsvg"
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2003-10-16 02:22:37 UTC
I've had the same problem with dosbox and abuse.
I get segfault trying to do fulll screen.

I'm using voodoo 3 3000 card, latest stable xfree - 4.3.0-r3,  and xfree-drm
4.3.0-r6.

Comment 2 SpanKY gentoo-dev 2003-10-18 00:04:23 UTC
could you try this ?
export EXTRA_ECONF="--disable-nasm"
emerge libsdl
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2003-10-18 05:25:34 UTC
Doesn't work for me.
I'm getting "Fatal signal: Segmentation Fault (SDL Parachute Deployed)" trying
to do fullscreen.
Comment 4 Eldad Zack (RETIRED) gentoo-dev 2003-10-18 06:41:34 UTC
I had a reason to believe that export EXTRA_ECONF="--disable-nasm" had no
effect as I saw the configure script saying it detected nasm.

I made a change to the ebuild itself, and put the --disable-nasm in the econf
and removed the `use_enable x86 nasm` line.

But that didn't help as well, and the same result persists.


Comment 5 Gerald Normandin (RETIRED) 2003-10-18 21:10:29 UTC
I had the same exact problem as you. To fix it, please make sure you have
more modeline definitions (ie 1024x768, 800x600, and 640x480) in your /etc/XF66Config
file.

Restart X, and hopefully this will fix your issue.
Comment 6 Philip Allison 2003-10-19 10:39:44 UTC
Adding extra modelines did stop the segfaulting, but tuxracer and o-e-s are
INCREDIBLY jerky (and run perfecly using 1.2.5-r2), and the problem of being
unable to start games in frozen-bubble also persists. So although I can now
get fullscreen apps to at least run with 1.2.6, until the other two issues
are cleared up, I'll stick to 1.2.5...
Comment 7 Philip Allison 2003-10-19 10:47:21 UTC
export EXTRA_ECONF="--disable-nasm" doesn't fix the jerkiness or frozen-bubble
problems I'm having.
Comment 8 Eldad Zack (RETIRED) gentoo-dev 2003-10-19 12:21:56 UTC
No segfaults after adding other modelines as well.


Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2003-11-01 00:23:02 UTC
Try libsdl-1.2.6-r2.ebuild and see if that works better for you please.
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2003-11-03 14:34:26 UTC
Pretty sure this is fixed with libsdl-1.2.6-r2.ebuild.