Subject: SDL & scummvm crashes on -current NetBSD/amd64
To: NetBSD packages <tech-pkg@NetBSD.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: tech-pkg
Date: 01/11/2006 18:47:41
Hi,

I just updated my pkgsrc (CVS HEAD) on my -current NetBSD/amd64
machine (up to date 3.99.15), and noticed that games/scummvm package
does not work anymore ...

This looks like a SDL-1.2.9 problem, because reverting to SDL-1.2.8
(devel/SDL from September 2005 + aalib fixes) make it work. The very
same packages work flawlessly on a -current NetBSD/i386 i have.

Any help will be appreciated.

njoly@lanfeust [~]> uname -a
NetBSD lanfeust.sis.pasteur.fr 3.99.15 NetBSD 3.99.15 (LANFEUST) #6: Tue Jan 10 11:15:40 CET 2006  njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj/amd64/sys/arch/amd64/compile/LANFEUST amd64
njoly@lanfeust [~]> /usr/pkg/bin/scummvm -V
ScummVM 0.8.0 (Jan 11 2006 17:02:08)
Features compiled in: Vorbis FLAC MP3 zLib MPEG2
njoly@lanfeust [~]> /usr/pkg/bin/scummvm
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

njoly@lanfeust [~]> gdb /usr/pkg/bin/scummvm
GNU gdb 5.3nb1
Copyright 2002 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 "x86_64--netbsd"...(no debugging symbols found)...
(gdb) run --disable-sdl-parachute
Starting program: /usr/pkg/bin/scummvm --disable-sdl-parachute
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 3]
0x000000020192a371 in SDL_CalculateBlitN () from /usr/pkg/lib/libSDL.so.2
(gdb) bt
#0  0x000000020192a371 in SDL_CalculateBlitN () from /usr/pkg/lib/libSDL.so.2
#1  0x0000000201919fc2 in SDL_CalculateBlit () from /usr/pkg/lib/libSDL.so.2
#2  0x000000020192d666 in SDL_MapSurface () from /usr/pkg/lib/libSDL.so.2
#3  0x000000020192dedc in SDL_LowerBlit () from /usr/pkg/lib/libSDL.so.2
#4  0x0000000201930693 in SDL_UpdateRects () from /usr/pkg/lib/libSDL.so.2
#5  0x00000000004063c6 in FLAC__seekable_stream_decoder_delete ()
#6  0x0000000000405f8b in FLAC__seekable_stream_decoder_delete ()
#7  0x00000000004077cd in FLAC__seekable_stream_decoder_delete ()
#8  0x00000000005e3496 in FLAC__seekable_stream_decoder_delete ()
#9  0x00000000005e3475 in FLAC__seekable_stream_decoder_delete ()
#10 0x00000000005d5ef5 in FLAC__seekable_stream_decoder_delete ()
#11 0x0000000000412405 in FLAC__seekable_stream_decoder_delete ()
#12 0x0000000000412c22 in FLAC__seekable_stream_decoder_delete ()
#13 0x0000000000404b68 in FLAC__seekable_stream_decoder_delete ()
(gdb) info threads
* 3 LWP 3  0x000000020192a371 in SDL_CalculateBlitN ()
   from /usr/pkg/lib/libSDL.so.2
  2 Thread 1 ()  0x000000020192a371 in SDL_CalculateBlitN ()
   from /usr/pkg/lib/libSDL.so.2
  1 LWP 1  0x000000020192a371 in SDL_CalculateBlitN ()
   from /usr/pkg/lib/libSDL.so.2

Thanks in advance,
Regards.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.