Bug#435278: Segfault on loading campaign

Sven Arvidsson sa at whiz.se
Mon Jul 30 20:14:53 UTC 2007


On Mon, 2007-07-30 at 19:34 +0200, Patrick Matthäi wrote:
> Every time I try to load my saved game (I tared it to savegame.tar.gz) 
> warzone2100 segfaults on loading it. The saved dump of it from /tmp is 
> here available, too.

I have the same problem, I'm attaching a full backtrace of the crash
(using an unstripped binary);

Starting program: /usr/games/warzone2100 
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1219860800 (LWP 13521)]
[New Thread -1222112368 (LWP 13526)]
[New Thread -1390847088 (LWP 13529)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219860800 (LWP 13521)]
buildStructure (pStructureType=0xb650c50, x=<value optimized out>, 
    y=<value optimized out>, player=0, FromSave=1) at structure.c:1814
1814				if (psFeature->psStats->subType == FEAT_OIL_RESOURCE)

Thread 3 (Thread -1390847088 (LWP 13529)):
#0  0xffffe410 in ?? ()
#1  0xad1952e8 in ?? ()
#2  0xad1952d0 in ?? ()
#3  0x400c4150 in ?? ()
#4  0xb7c137b9 in ioctl () from /lib/i686/cmov/libc.so.6
#5  0xb79dc700 in ?? () from /usr/lib/libasound.so.2
#6  0x0000000b in ?? ()
#7  0x400c4150 in ?? ()
#8  0xad1952d0 in ?? ()
#9  0xad195328 in ?? ()
#10 0xfffffe00 in ?? ()
#11 0x08aa6908 in ?? ()
#12 0x00000400 in ?? ()
#13 0xb7a4677c in ?? () from /usr/lib/libasound.so.2
#14 0x08aa6908 in ?? ()
#15 0x00001000 in ?? ()
#16 0xad195318 in ?? ()
#17 0xb79ccd75 in snd_pcm_writei () from /usr/lib/libasound.so.2
Backtrace stopped: frame did not save the PC

Thread 2 (Thread -1222112368 (LWP 13526)):
#0  0xffffe410 in ?? ()
#1  0xb7280378 in ?? ()
#2  0xb7e518c8 in ?? () from /usr/lib/libSDL-1.2.so.0
#3  0xb7280364 in ?? ()
#4  0xb7bdae26 in nanosleep () from /lib/i686/cmov/libc.so.6
#5  0xb7e49a88 in SDL_Delay () from /usr/lib/libSDL-1.2.so.0
#6  0xb7e49ad1 in ?? () from /usr/lib/libSDL-1.2.so.0
#7  0x00000001 in ?? ()
#8  0xb7f23210 in ?? () from /lib/ld-linux.so.2
#9  0xb7df6f2b in ?? () from /usr/lib/libSDL-1.2.so.0
#10 0x00000000 in ?? ()

Thread 1 (Thread -1219860800 (LWP 13521)):
#0  buildStructure (pStructureType=0xb650c50, x=<value optimized out>, 
    y=<value optimized out>, player=0, FromSave=1) at structure.c:1814
#1  0x081156f8 in loadSaveStructure (pFileData=<value optimized out>, 
    filesize=<value optimized out>) at game.c:7292
#2  0x0811819b in loadGame (
    pGameToLoad=0x82de7e0 "savegame/First Mission.gam", keepObjects=0, 
    freeMem=1, UserSaveGame=1) at game.c:2356
#3  0x080a5169 in levLoadData (pName=0x8266de0 "CAM_1B", 
    pSaveName=0x82de7e0 "savegame/First Mission.gam", saveType=3)
    at levels.c:898
#4  0x0810fc83 in gameLoad (pFileData=0x8 <Address 0x8 out of bounds>, 
    filesize=4572) at game.c:4008
#5  0x08110016 in loadGameInit (
    pGameToLoad=0x82de7e0 "savegame/First Mission.gam") at game.c:1382
#6  0x080a9243 in initSaveGameLoad () at main.c:509
#7  0x080aa039 in main (argc=Cannot access memory at address 0x800
) at main.c:577
The program is running.  Exit anyway? (y or n) 

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20070730/9cddd8b4/attachment.pgp 


More information about the Pkg-games-devel mailing list