Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145997 - games-fps/legends segfaults
Summary: games-fps/legends segfaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 161586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-02 07:01 UTC by Simon Vargblom
Modified: 2007-01-16 13:21 UTC (History)
2 users (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 Simon Vargblom 2006-09-02 07:01:41 UTC
ruskie@localhost /usr/games/bin $ ./legends 
Segmentation fault


Portage 2.1.1_rc1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Sempron(tm)  2000+
Gentoo Base System version 1.12.4
Last Sync: Sat, 02 Sep 2006 13:30:09 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS=""
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/dis
tfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl alsa apache2 asf avi bash-completion beagle binary-drivers bitmap-fonts bootsplash cairo cdr css curl dbus dga dio di
rectfb divx dlloader dri dts dv dvd dvdr dvdread elibc_glibc encode esd expat fbcon fbdev ffmpeg figlet firefox flac fltk font-server fortran gdbm gif glibc-compa
t20 glibc-omitfp glitz gmedia gnome gpm gstreamer gstreamer010 gtk gtk2 hal hddtemp input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 jack java 
javascript jpeg jpeg2k kde kdeenablefinal kernel_linux lame libcaca libvisual linuxthreads-tls lm_sensorsmplayer mad matroska mikmod mime mmx mmxext mng mono mp3 
mp4 mpeg mpeg2 mplayer music musicbrainz ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis openal opengl openssh oss pam pango pcre pdflib perl png posix p
pds pppd python qt3 qt4 quicktime rar readline real reflection remix sdl server session slang speex spell sse sse-filters ssl svg svga tcpd tga theora tiff truety
pe truetype-fonts type1 type1-fonts udev unicode userland_GNU vcd vcdimager video_cards_nv video_cards_nvidia video_cards_vesa videos visualization voice vorbis w
in32codecs wma wmf wmp wxgtk1 wxwindows x264 x86 xcomposite xine xml xmms xorg xpm xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-18 13:48:06 UTC
Which version?
Comment 2 Simon Vargblom 2006-09-18 15:31:15 UTC
[ebuild   R   ] games-fps/legends-0.4.1.40  USE="-dedicated" 0 kB 
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2006-09-23 02:31:44 UTC
legends-0.4.1.40 works for me.
Comment 4 aslvrstn 2006-09-28 22:27:27 UTC
I'm segfaulting on the same version of Legends.

Portage 2.1.2_pre1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHzGentoo Base System version 1.12.5
Last Sync: Mon, 25 Sep 2006 02:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -msse3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LINGUAS="en_US"
MAKEOPTS="-j3"
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/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa artworkextra asf bash-completion bashcompletion beagle bitmap-fonts browserplugin bzip2 cdparanoia cdr cli crypt cups dlloader dri dv dvd dvdr dvdread dvi elibc_glibc emacs encode esd ffmpeg firefox flac foomaticdb fortran gdbm gif gimpprint glx gnome gpm gstreamer gtk gtk2 hal howl input_devices_keyboard input_devices_mouse insecure-savers ipod ipv6 isdnlog java jpeg kernel_linux libg++ libwww linguas_en_US lm_sensors logrotate mad mikmod mono mp3 mpeg nautilus ncurses nfs nls no-seamonkey nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcmcia pcre pda pdflib perl png ppds pppd python quicktime readline real reflection sdl session slang spell spl ssl symlink tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l video_cards_nvidia wifi win32codecs xml2 xmms xorg xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Pietro Montorfano 2006-10-02 03:44:41 UTC
same problem here, tried to update legeds via rsync but always segfault

cd /opt/legends/
chmod +x update
./update

after that is still segfaulting

Any help or solution on this bug?

---------
h7-25 ~ # emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8-monto i686)
=================================================================
System uname: 2.6.16-suspend2-r8-monto i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.40GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 14:30:09 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
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.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -fomit-frame-pointer -mmmx -mfpmath=sse -fprefetch-loop-arrays -falign-functions=4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe -fomit-frame-pointer -mmmx -mfpmath=sse -fprefetch-loop-arrays -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/"
LINGUAS="it"
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/local/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3ds 7zip X Xaw3d a52 aac aalib abook acpi addbookmarks adsl aim aimextras alias allegro alsa amazon amr apache2 applet aqua_theme ares asf asm asterisk async audacious audiofile autoreplace avahi avi bash-completion bcmath beagle berkdb bigpatch binary-drivers bitmap-fonts bittorrent bl blender-game bluetooth bmpx bonjour bonobo boo bootsplash branding buttons bzip2 c++ cairo calendar carbone_theme cardbus cdda cddb cdio cdparanoia cdr cdrom cdsound cegui cg cgi chardet child-protection chipcard chipcard2 chm chroot cis cjk clamav clamd clearcase clearpasswd cli cmdsubmenu commercial connectionstatus contactnotes contentcache corba cpudetection crypt crypto_libgcrypt css csv ctrlmenu cups curl curlwrappers cvs dbus dcraw debugger depth32 dhcp dio directfb disableslit discard-path diskio djbfft dlloader dpmod dri dv dvd dvdr dvdread dxr3 dxr3-audio-denoise dynagraph editor edl eds effects elibc_glibc emboss enca encode epson esd evo evolution examples exif exo expat exscalibar extramodules fat fbcon fbsplash festival ffmpeg fidonet firefox flac flash fltk fluidsynth fmod foomaticdb force-cgi-redirect freetts ft ftp fuse gadu gaim gatos gcj gd gdbm gdl gecko-sdk geoip ggi gif gimp gimpprint gkrellm glade glep glgd glitz gmail gnokii gnome gnomedb gnuplot gnutls gphoto2 gpm gps graphviz gsm gstreamer gtalk gtk gtk2 gzip hash haskell hfs highlight history http icecast iconv icq icu id3 ide idea idl idn ieee1394 ilbc imagemagick imlib imlib2 imq innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipod irda irmc j2ee jabber java java5 jfs jingle john jpeg jpeg2k jrtplib junit kernel_linux kig-scripting kjs kqemu l7filter lame libcaca libg++ libnotify libsexy libvisual libwww lights linguas_it live logrotate lzo mad maps matroska mbrola mdb meanwhile messages mikmod mime ming mmkeys mmxext mng mod modplug mods mono motif mozcalendar mozdevelop mozsvg mp3 mp4 mp4live mpe mpeg mpeg2 mplayer mpm-worker msn msnextras musepack music musicbrainz mysql ncurses net nethack netmeeting nfs ngui nls nntp no-opts nocd nodoc nodpkg nokia6600 nptl nptlonly nss ntfs numarray numeric nvidia nvidis nxclient ode offensive office ofx ogg oggvorbis ole openal openexr opengl openssh openssl opensslcrypt optimisememory osc oscar pam panel-plugin pango pascal passwordsave pcmcia pcre pdf pdflib perforce perl php pike player plotutils plugin pmu png pnp ppds pppd print pulseaudio python pyzor qemu-fast qt3 qt4 quicktime rar rdesktop readline real reflection reiser4 reiserfs rhythmbox rplay rss rtc rtsp samba sametime scanner scenarios sdl sdl-sound server session setup-plugin sftp sftplogging shout sid silc simplexml skins smartcard smp sms sndfile soap sockets softmmu songdb sounds soundtouch spell spl spreadsheet sql sqlite sqlite3 srvdir sse sse2 ssl startup-notification stencil-buffer stlport stream subtitles subversion svg svga svgz swig symlink sysfs syslog szip tcpd texteffect textures tga themes theora threads tidy tiff tk tokenizer tools tos totem truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU v4l2 vcd vdr video_cards_nv video_cards_nvidia video_cards_vesa videos vidix vim vim-pager visualization vlm vnc vncviewer vorbis vorbis-psy webdav webpresence widescreen wifi win32codecs winpopup wma wmf wv wxgtk1 wxwindows xanim xchatdccserver xchattext xcomposite xfs xft xine xml xmlreader xmlrpc xmlwriter xmms xorg xosd xpm xrandr xscreensaver xvid xvmc yahoo yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

h7-25 ~ #
Comment 6 aslvrstn 2006-10-02 07:00:16 UTC
Yes, even after successfully updating, I still segfault.
Comment 7 Simon Vargblom 2006-10-02 07:59:03 UTC
Yes also segfaulting after the update
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-03 08:14:36 UTC
You guys *did* rm -rf ~/.legends right?

I cannot duplicate this here.

wolf31o2@inertia ~ $ emerge --info
Portage 2.1.2_pre1-r4 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Genuine Intel(R) CPU T2500  @ 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Tue, 03 Oct 2006 14:30:07 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache cvs distcc distlocks metadata-transfer notitles sandbox sfperms sign"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://mir1.ovh.net/gentoo-distfiles/"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j8"
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/local/portage /usr/portage/local/layman/vmware"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa avi branding cairo cdr crypt cups dbus dlloader dvd dvdr eds elibc_glibc encode esd ethereal evo fam firefox gif gnome gphoto2 gstreamer gtk gtk2 hal input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 java jpeg kernel_linux ldap linguas_en mmx mp3 mpeg ncurses nls nocd nptl nptlonly ogg openal opengl oss pam pcmcia pdf perl pic png pnp ppds quicktime readline samba snmp spell sse sse2 ssl svg tcpd tiff truetype trusted udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa videos vorbis win32codecs xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 aslvrstn 2006-10-03 08:59:38 UTC
I didn't have a .legends to begin with, as this is from a fresh install, but after re-clearing it and starting up, I still segfault.
Comment 10 aslvrstn 2006-10-03 11:48:21 UTC
I used gdb to try and diagnose the issue. It looks like SDL is the culprit, but if someone can figure out exactly what the problem is, that'd be great.

GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /opt/legends/LinLegends
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212016976 (LWP 8873)]
[New Thread -1220412512 (LWP 8876)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212016976 (LWP 8873)]
0xb7ec5ebe in set_best_resolution (this=0x8841318, width=800, height=600)
    at SDL_x11modes.c:139
139     SDL_x11modes.c: No such file or directory.
        in SDL_x11modes.c
(gdb) bt
#0  0xb7ec5ebe in set_best_resolution (this=0x8841318, width=800, height=600)
    at SDL_x11modes.c:139
#1  0xb7ec6a5d in X11_ResizeFullScreen (this=0x8841318) at SDL_x11modes.c:651
#2  0xb7ec6cf2 in X11_EnterFullScreen (this=0x8841318) at SDL_x11modes.c:749
#3  0xb7ec8d80 in X11_CreateWindow (this=0x8841318, screen=0x884d188, w=800,
    h=600, bpp=32, flags=2147483650) at SDL_x11video.c:886
#4  0xb7ec8f2a in X11_SetVideoMode (this=0x8841318, current=0x884d188,
    width=800, height=600, bpp=32, flags=2147483650) at SDL_x11video.c:951
#5  0xb7ebd652 in SDL_SetVideoMode (width=800, height=600, bpp=32,
    flags=2147483650) at SDL_video.c:647
#6  0x08308fd0 in ?? ()
#7  0x08308b3b in ?? ()
#8  0xc0083976 in ?? ()
#9  0x48082562 in ?? ()
#10 0x20b780de in ?? ()
#11 0x58000003 in ?? ()
#12 0x20000002 in ?? ()
#13 0x01000000 in ?? ()
#14 0xc208390c in ?? ()
#15 0x00083a08 in ?? ()
#16 0x01000000 in ?? ()
#17 0x20000000 in ?? ()
#18 0xc2000000 in ?? ()
#19 0x58083a08 in ?? ()
#20 0x20000002 in ?? ()
#21 0xe8000003 in ?? ()
#22 0x48b7c58d in ?? ()
#23 0x00b74917 in ?? ()
#24 0x00000000 in ?? ()
(gdb) quit
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-03 12:12:41 UTC
OK.  A few things...

Which libsdl version do you have installed?

Which modes do you have defined in xorg.conf?

What color depth are you using?
Comment 12 Simon Vargblom 2006-10-03 13:12:05 UTC
(In reply to comment #11)
> OK.  A few things...
> 
> Which libsdl version do you have installed?
> 
> Which modes do you have defined in xorg.conf?
> 
> What color depth are you using?
> 
media-libs/libsdl-1.2.11
1024x768@100hz only
24bit
Comment 13 aslvrstn 2006-10-03 13:30:18 UTC
media-libs/libsdl-1.2.11

1920x1200 @ 60 Hz.

24-bit
Comment 14 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-03 15:16:56 UTC
Have you tried assigning lower modes also?  The game defaults to 800x600-32, which might be causing a problem if it cannot switch modes properly.
Comment 15 aslvrstn 2006-10-03 16:05:31 UTC
I can't believe it was that easy. That should have been the first thing I tried. It's working perfectly now. Thanks.
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-04 15:27:22 UTC
Yeah, that's what I thought it would be.  Glad to see that it was something simple.
Comment 17 Mr. Bones. (RETIRED) gentoo-dev 2007-01-12 02:41:16 UTC
*** Bug 161586 has been marked as a duplicate of this bug. ***
Comment 18 Aniruddha 2007-01-12 23:20:16 UTC
(In reply to comment #16)
> Yeah, that's what I thought it would be.  Glad to see that it was something
> simple.
> 

I hope you can help me as well :-)\. I have exactly the same problem (segfault), Howeve I don't know how I should apply your suggestion. Could you help me with that?

Here is some info:

media-libs/libsdl-1.2.11
1280x1024@85
24-bit (is a guess)
Comment 19 aslvrstn 2007-01-12 23:46:36 UTC
This is how I did it, and there may be a better way. Switch your display resolution to 800x600. Start Legends and switch it to windowed mode. Exit. Switch your resolution back to whatever you normally keep it at. Start Legends again. If you want to run it at fullscreen then, set it to your computer's resolution and then fullscreen it.
Comment 20 Aniruddha 2007-01-13 00:02:12 UTC
I found some instructions here: http://legendsthegame.net/community/doku.php?id=legends_faq:loading_crash

They didn't work however, I still get a segmentation fault. Here's part of mine prefs.cs:


$pref::Video::displayDevice = "OpenGL";
$pref::Video::allowOpenGL = 1;
$pref::Video::allowD3D = 1;
$pref::Video::preferOpenGL = 1;
$pref::Video::appliedPref = 0;
$pref::Video::disableVerticalSync = 1;
$pref::Video::monitorNum = 0;
$pref::Video::resolution = "1280 1024 32";
$pref::Video::windowres = "800 600 32";
$pref::Video::fullScreen = "0";
$pref::Video::safeModeOn = "1";
$pref::Video::safeAltTab = "1";
$pref::OpenGL::force16BitTexture = "0";
$pref::OpenGL::forcePalettedTexture = "0";
$pref::OpenGL::maxHardwareLights = 3;
$pref::OpenGL::gammaCorrection = "0.5";
$pref::OpenGL::textureTrilinear = "1";
$pref::VisibleDistanceMod = 1.0;
$pref::particles::particleDensity = 2.0;

Comment 21 Aniruddha 2007-01-13 00:03:52 UTC
Hey thanks for your quick reply. If all else fails I will try your option :-)
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-16 13:21:29 UTC
Just add *all* of the resolutions you might be using to xorg.conf and you won't have any issues.

If you run, for example, 1600x1200, then you should probably define 1280x1024, 1024x768, 800x600 and 640x480 (all *after* 1600x1200) and games running libSDL at *any* of these resolutions won't have problems.