Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79025 - libsdl-1.2.8-r1 breaks several games
Summary: libsdl-1.2.8-r1 breaks several games
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on: 76946
Blocks:
  Show dependency tree
 
Reported: 2005-01-21 17:37 UTC by TGL
Modified: 2006-01-22 20:31 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 TGL 2005-01-21 17:37:49 UTC
Hi,

The 1.2.8-direct-8bit-color.patch introduced in media-libs/libsdl-1.2.8-r1 produces a segfault in most of my SDL games. I've seen this was already reported in last comment of bug #76946, but since it is closed i prefer to open a new bug. Here are some examples of the issues i've seen, that i can't reproduce with 1.2.8 or 1.2.8-r1 and the 8-bits patch reversed:

lbreakout2:
-------------------------------------------------------------------------------
% lbreakout2
LBreakout2 2.5.1
Copyright 2001-2003 Michael Speck
Published under GNU GPL
---
Looking up data in: /usr/share/games/lbreakout2
Looking up custom levels in: /home/thomas/.lgames/lbreakout2-levels
/home/thomas/.lgames/lbreakout2.conf: file not found
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Audio finalized
*** glibc detected *** double free or corruption (fasttop): 0x080c52f8 ***
Abandon
-------------------------------------------------------------------------------
#0  0xb7ec1999 in SDL_MapSurface () from /usr/lib/libSDL-1.2.so.0
#1  0xb7dc368e in free () from /lib/tls/libc.so.6
#2  0xb7dc3441 in free () from /lib/tls/libc.so.6
#3  0xb7fa499d in png_create_struct_2 () from /usr/lib/libpng.so.3
#4  0x080f1968 in ?? ()
#5  0x00000000 in ?? ()
#6  0x000002c8 in ?? ()
#7  0xb7dc2e61 in malloc_trim () from /lib/tls/libc.so.6
-------------------------------------------------------------------------------

abuse.sdl:
-------------------------------------------------------------------------------
Added himem block (3072000 bytes)
Memory available : 3071864
Abuse-SDL 0.7.0
 Abuse (Version 2.00)
Sound : Enabled
Specs : main file set to abuse.spe
Protocol Installed : UNIX generic TCPIP
Lisp : 529 symbols defined, 99 system functions, 321 pre-compiled functions
(load "abuse.lsp") [........................................]
Lisp : tmp space resized to 16384
Engine : Registering base graphics
Video : 640x400 32bpp
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
-------------------------------------------------------------------------------
#0  0xb7f52999 in SDL_MapSurface () from /usr/lib/libSDL-1.2.so.0
#1  0x00e00029 in ?? ()
-------------------------------------------------------------------------------

blobwars:
-------------------------------------------------------------------------------
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
-------------------------------------------------------------------------------
#0  0xb7f85999 in SDL_MapSurface () from /usr/lib/libSDL-1.2.so.0
#1  0x00000300 in ?? ()
#2  0xbfffe400 in ?? ()
#3  0x00000010 in ?? ()
#4  0x00060000 in ?? ()
#5  0xb7db2840 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#6  0x000002e0 in ?? ()
#7  0x00000004 in ?? ()
#8  0xb7db2840 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#9  0xb7db2b40 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#10 0x081baf00 in ?? ()
#11 0xb7db2888 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#12 0xb799b8e7 in png_set_PLTE () from /usr/lib/libpng.so.3
#13 0x081bf080 in ?? ()
#14 0xbfffe410 in ?? ()
#15 0x0000000c in ?? ()
#16 0x00000000 in ?? ()
#17 0x081baf80 in ?? ()
#18 0xbfffe400 in ?? ()
#19 0x00000003 in ?? ()
#20 0xb79c7180 in ?? () from /usr/lib/libpng.so.3
#21 0x00000000 in ?? ()
#22 0xb7db2840 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#23 0xb7db2840 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#24 0x00020000 in ?? ()
#25 0x00003e60 in ?? ()
#26 0x081bb130 in ?? ()
#27 0x00000044 in ?? ()
#28 0x000002d5 in ?? ()
#29 0xb7db0ff4 in ?? () from /lib/tls/libc.so.6
#30 0xb7db2840 in __malloc_initialize_hook () from /lib/tls/libc.so.6
#31 0x000002c8 in ?? ()
#32 0xbfffe418 in ?? ()
#33 0xb7cfe441 in free () from /lib/tls/libc.so.6
-------------------------------------------------------------------------------

(If you need more debug info, i can recompile the lib in debug mode, just ask.)


My USE flags for libsdl are:
+X +aalib +alsa -arts -debug +dga +directfb +esd +fbcon -ggi +libcaca -nas -noaudio -nojoystick -novideo +opengl +oss -svga +xinerama +xv 


emerge info:
-------------------------------------------------------------------------------
Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-tgl3 i686)
=================================================================
System uname: 2.6.10-tgl3 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.1.3-r1,dev-lang/python-2.3.4 [2.3.4 (#1, Jun  6 2004, 22:13:16)]
ccache version 2.3 [disabled]
dev-lang/python:     2.2.3-r5, 2.1.3-r1, 2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.8.5-r2, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r3
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/cursors/xfree/default /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/dev.d /etc/gconf /etc/hotplug /etc/hotplug.d /etc/init.d /etc/sound /etc/terminfo /etc/udev /etc/env.d"
CXXFLAGS="-march=i686 -mtune=pentium-m -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildsyspkg digest distlocks fixpackages manifest quiet sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ http://gentoo.mirror.sdv.fr/ http://gentoo.osuosl.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/overlays/bmg-filtered /var/portage/overlays/bugzilla /var/portage/overlays/tgl"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aalib acpi adns alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr cross crypt cscope cups curl dba dga directfb dvd dvdr encode esd f77 faad fbcon ffmpeg flac flash font-server foomaticdb fortran freetype gd gdbm ggz gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imap imlib imlib2 ipv6 java jikes jpeg junit lcms leim libcaca libg++ libwww lirc mad mailwrapper matroska mbox memlimit mikmod mmx mng mozilla mpeg mysql ncurses nls nptl offensive ogg oggvorbis openal opengl oss pam pdflib perl plotutils png pnp python qt quicktime readline ruby ruby18 scanner sdl slang slp smooth snmp speex spell sqlite sse sse2 ssl svg tcltk tcpd tetex theora tiff tmpfs truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vorbis wmf wxwindows xface xfs xinerama xml xml2 xosd xprint xv xvid xvmc zeo zlib video_cards_radeon input_devices_synaptics linguas_fr linguas_fr_FR linguas_en linguas_en_US"
Unset:  LDFLAGS
-------------------------------------------------------------------------------
Comment 1 SpanKY gentoo-dev 2005-01-21 21:39:57 UTC
ok, i can confirm that over here ... i'll drop the patch for now and get feedback from upstream
Comment 2 Felix Hammer 2005-07-18 23:37:02 UTC
same problem here: 
 
(gdb) run 
Starting program: /home/doitux/Desktop/warzone2100-0.2/data/warzone 
[Thread debugging using libthread_db enabled] 
[New Thread 16384 (LWP 11832)] 
 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 16384 (LWP 11832)] 
0xb7eadf4c in SDL_SetPalette () from /usr/lib/libSDL-1.2.so.0 
(gdb) bt 
#0 
Comment 3 Felix Hammer 2005-07-18 23:37:02 UTC
same problem here: 
 
(gdb) run 
Starting program: /home/doitux/Desktop/warzone2100-0.2/data/warzone 
[Thread debugging using libthread_db enabled] 
[New Thread 16384 (LWP 11832)] 
 
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 16384 (LWP 11832)] 
0xb7eadf4c in SDL_SetPalette () from /usr/lib/libSDL-1.2.so.0 
(gdb) bt 
#0  0xb7eadf4c in SDL_SetPalette () from /usr/lib/libSDL-1.2.so.0 
#1  0x08131e94 in screenSetPalette (first=3, count=3085782016,  
psEntries=0x8782ca0) at screen.c:776 
#2  0x0812f06e in pal_AddNewPalette (pal=0x877cba0) at piepalette.c:264 
#3  0x0809563e in main (argc=1, argv=0xbff125a4) at main.c:288 
Comment 4 SpanKY gentoo-dev 2005-08-28 15:11:27 UTC
libsdl-1.2.9 fixes this
Comment 5 Tommy Yu 2006-01-22 17:11:39 UTC
(In reply to comment #3)
> libsdl-1.2.9 fixes this
> 

libsdl-1.2.9 breaks barrage on amd64

loading /usr/share/games/barrage/sounds/scream1.wav ... ok
loading /usr/share/games/barrage/sounds/scream2.wav ... ok
loading /usr/share/games/barrage/sounds/click.wav ... ok
loading /usr/share/games/barrage/sounds/highlight.wav ... ok
loading highscores: /home/user/.barrage.hscr
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
19 images deleted
5 fonts deleted
9 sounds deleted
*** glibc detected *** double free or corruption (!prev): 0x00000000006fdd40 ***
Aborted
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-22 20:31:28 UTC
Open a new bug, this one is specific to a version and resolved.

http://www.gentoo.org/proj/en/desktop/games/#doc_chap5_sect9

Also, try to remerge both libSDL and barrage before filing the bug.