bugWarzone 2100 Project - Bugs: bug #12103, crash on loading saved game in...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12103: crash on loading saved game in beta4

Submitted by:  None
Submitted on:  Mon 28 Jul 2008 01:54:03 PM UTC  
 
Category: CampaignSeverity: Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: OpenRelease: 2.1_beta4
Operating System: GNU/LinuxPlanned Release: None

Mon 28 Jul 2008 01:54:03 PM UTC, original submission:

When I tried to load a saved game called "AHAHAHAAHA" (I saved it
yesterday with the new version 2.1.0~1.beta4-1) warzone crashed:

The command was "warzone2100 --cheat"

The terminal said:
"

> ** DEBUG MODE UNLOCKED! **
> error : [getBaseObjFromId] getBaseObjFromId() failed for id 168152
> error : [getBaseObjFromId] Assert in Warzone: objmem.c:795 (!"couldn't find a BASE_OBJ with ID"), last script event: '<none>'
> error : [scrValDefLoad] scrValDefLoad: couldn't find object id 168152
> Saved dump file to '/tmp/warzone2100.gdmp'
> Aborted

"
The gdmp file is attached.

Warzone crashes every time I try to load the this game.

Thank you for your fine work! Matthias Krüger
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.25-2-amd64

Debian Release: lenny/sid
500 testing security.debian.org
500 testing 141.76.2.4

--- Package information. ---
Depends (Version) | Installed
=========================================-+-=====================
libc6 (>= 2.7-1) | 2.7-10
libgcc1 (>= 1:4.1.1) | 1:4.3.1-2
libgl1-mesa-glx | 7.0.3-5
OR libgl1 |
libglc0 | 0.7.1-2
libglu1-mesa | 7.0.3-5
OR libglu1 |
libogg0 (>= 1.0rc3) | 1.1.3-4
libopenal1 | 1:1.3.253-5
libphysfs-1.0-0 | 1.0.0-5
libpng12-0 (>= 1.2.13-4) | 1.2.27-1
libpopt0 (>= 1.14) | 1.14-4
libsdl-net1.2 | 1.2.7-2
libsdl1.2debian (>= 1.2.10-1) | 1.2.13-2
libstdc++6 (>= 4.2.1) | 4.3.1-2
libvorbis0a (>= 1.1.2) | 1.2.0.dfsg-3.1
libvorbisfile3 (>= 1.1.2) | 1.2.0.dfsg-3.1
libx11-6 | 2:1.1.4-2
warzone2100-data (>= 2.1.0~1.beta4) | 2.1.0~1.beta4-1
warzone2100-data (<= 2.1.0~1.beta4-1) | 2.1.0~1.beta4-1

[warzone2100.gdmp (text/plain, inline)]

Program: /usr/games/warzone2100(warzone2100)
Command line: "warzone2100" "--cheat"
Version: Version 2.1_beta4
Distributor: Debian
Compiled on: Jul 23 2008 01:19:55
Compiled by: GCC 4.3.1
Executed on: Sun Jul 27 09:28:25 2008

Operating system: Linux
Node name: raven
Release: 2.6.25-2-amd64
Version: #1 SMP Mon Jul 14 11:05:23 UTC 2008
Machine: x86_64

Pointers: 64bit

Compiled against PhysicsFS version: 1.0.0
Running with PhysicsFS version: 1.0.0

Dump caused by signal: SIGABRT: Process abort signal

Log message: error : [getBaseObjFromId] getBaseObjFromId() failed for id 168152
Log message: error : [getBaseObjFromId] Assert in Warzone: objmem.c:795 (!"couldn't find a BASE_OBJ with ID"), last script event: '<none>'
Log message: error : [scrValDefLoad] scrValDefLoad: couldn't find object id 168152

GLIBC raw backtrace:
warzone2100[0x570f7f]
/lib/libc.so.6[0x7ff2fafb0240]
/lib/libc.so.6(gsignal+0x35)[0x7ff2fafb01d5]
/lib/libc.so.6(abort+0x110)[0x7ff2fafb1680]
warzone2100[0x4aa69d]
warzone2100[0x526176]
warzone2100[0x4cad26]
warzone2100[0x45eea3]
warzone2100[0x4d0fe1]
warzone2100[0x4d20cd]
warzone2100[0x4636bd]
warzone2100[0x4649d1]
/lib/libc.so.6(__libc_start_main+0xf4)[0x7ff2faf9d1c4]
warzone2100(__gxx_personality_v0+0x419)[0x408bb9]

GDB extended backtrace:
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Attaching to program: /usr/games/warzone2100, process 5552
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /usr/lib/libSDL_net-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL_net-1.2.so.0
Reading symbols from /usr/lib/libphysfs-1.0.so.0...done.
Loaded symbols for /usr/lib/libphysfs-1.0.so.0
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libvorbisfile.so.3...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libvorbis.so.0...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.7.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libogg.so.0...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libopenal.so.1...done.
Loaded symbols for /usr/lib/libopenal.so.1
Reading symbols from /usr/lib/libGLC.so.0...done.
Loaded symbols for /usr/lib/libGLC.so.0
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /lib/libpopt.so.0...done.
Loaded symbols for /lib/libpopt.so.0
Reading symbols from /lib/libgcc_s.so.1...Reading symbols from /usr/lib/debug/lib/libgcc_s.so.1...done.
done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.7.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/libpthread-2.7.so...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x7ff2fd2cb720 (LWP 5552)]
[New Thread 0x4189f950 (LWP 5570)]
[New Thread 0x42352950 (LWP 5567)]
done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libX11.so.6...Reading symbols from /usr/lib/debug/usr/lib/libX11.so.6.2.0...done.
done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.7.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libdirectfb-1.0.so.0...done.
Loaded symbols for /usr/lib/libdirectfb-1.0.so.0
Reading symbols from /usr/lib/libfusion-1.0.so.0...done.
Loaded symbols for /usr/lib/libfusion-1.0.so.0
Reading symbols from /usr/lib/libdirect-1.0.so.0...done.
Loaded symbols for /usr/lib/libdirect-1.0.so.0
Reading symbols from /usr/lib/libvga.so.1...done.
Loaded symbols for /usr/lib/libvga.so.1
Reading symbols from /usr/lib/libz.so.1...Reading symbols from /usr/lib/debug/usr/lib/libz.so.1.2.3.3...done.
done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libfontconfig.so.1...Reading symbols from /usr/lib/debug/usr/lib/libfontconfig.so.1.3.0...done.
done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfribidi.so.0...done.
Loaded symbols for /usr/lib/libfribidi.so.0
Reading symbols from /lib/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib/libXext.so.6...Reading symbols from /usr/lib/debug/usr/lib/libXext.so.6.4.0...done.
done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libxcb-xlib.so.0...Reading symbols from /usr/lib/debug/usr/lib/libxcb-xlib.so.0.0.0...done.
done.
Loaded symbols for /usr/lib/libxcb-xlib.so.0
Reading symbols from /usr/lib/libxcb.so.1...Reading symbols from /usr/lib/debug/usr/lib/libxcb.so.1.0.0...done.
done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /lib/librt.so.1...Reading symbols from /usr/lib/debug/lib/librt-2.7.so...done.
done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libx86.so.1...Reading symbols from /usr/lib/debug/lib/libx86.so.1...done.
done.
Loaded symbols for /lib/libx86.so.1
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/libXau.so.6...Reading symbols from /usr/lib/debug/usr/lib/libXau.so.6.0.0...done.
done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...Reading symbols from /usr/lib/debug/usr/lib/libXdmcp.so.6.0.0...done.
done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXrender.so.1...Reading symbols from /usr/lib/debug/usr/lib/libXrender.so.1.3.0...done.
done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXrandr.so.2...Reading symbols from /usr/lib/debug/usr/lib/libXrandr.so.2.1.0...done.
done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...Reading symbols from /usr/lib/debug/usr/lib/libXcursor.so.1.0.2...done.
done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libXfixes.so.3...Reading symbols from /usr/lib/debug/usr/lib/libXfixes.so.3.1.0...done.
done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /lib/libnss_compat.so.2...Reading symbols from /usr/lib/debug/lib/libnss_compat-2.7.so...done.
done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...Reading symbols from /usr/lib/debug/lib/libnsl-2.7.so...done.
done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...Reading symbols from /usr/lib/debug/lib/libnss_nis-2.7.so...done.
done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/libnss_files-2.7.so...done.
done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/alsa-lib/libasound_module_rate_speexrate.so...done.
Loaded symbols for /usr/lib/alsa-lib/libasound_module_rate_speexrate.so
0x00007ff2fb015bef in waitpid () from /lib/libc.so.6
(gdb) #0 0x00007ff2fb015bef in waitpid () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000005714cb in posixExceptionHandler (signum=6,
siginfo=<value optimized out>, sigcontext=<value optimized out>)
at exceptionhandler.c:482
btBuffer = {0x570f7f, 0x7ff2fafb0240, 0x7ff2fafb01d5, 0x7ff2fafb1680,
0x4aa69d, 0x526176, 0x4cad26, 0x45eea3, 0x4d0fe1, 0x4d20cd, 0x4636bd,
0x4649d1, 0x7ff2faf9d1c4, 0x408bb9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
gdbPipe = {11, 12}
dumpFile = 10
signal = <value optimized out>
allreadyRunning = 1
gdbCommands = "backtrace full\nframe 3\ndisassemble\ninfo registers\nquit\n"
#2 <signal handler called>
No symbol table info available.
#3 0x00007ff2fafb01d5 in raise () from /lib/libc.so.6
No symbol table info available.
#4 0x00007ff2fafb1680 in abort () from /lib/libc.so.6
No symbol table info available.
#5 0x00000000004aa69d in scrValDefLoad (version=3, psVal=0x29fd870,
pBuffer=0x9630dd "�\220\002", size=168152) at scriptobj.c:1448
pPos = 0x290d8 <Address 0x290d8 out of bounds>
index = 0
members = 66
id = 168152
psLevel = (LEVEL_DATASET *) 0x0
psGroup = <value optimized out>
_FUNCTION_ = "scrValDefLoad"
#6 0x0000000000526176 in eventLoadState (pBuffer=<value optimized out>,
fileSize=96742, bHashed=1) at evntsave.c:388
size = <value optimized out>
pPos = 0x94f8e8 "\n"
_FUNCTION_ = "eventLoadState"
#7 0x00000000004cad26 in loadScriptState (
pFileName=0xd6e640 "savegame/AHAHAHAAHA.es") at game.c:11700
fileSize = 96742
_FUNCTION_ = "loadScriptState"
#8 0x000000000045eea3 in levLoadData (name=<value optimized out>,
pSaveName=0xd6e640 "savegame/AHAHAHAAHA.es", saveType=4) at levels.c:937
psNewLevel = (LEVEL_DATASET *) 0x257f0f0
psBaseData = <value optimized out>
psChangeLevel = (LEVEL_DATASET *) 0x0
i = 9
bCamChangeSaveGame = 0
_FUNCTION_ = "levLoadData"
#9 0x00000000004d0fe1 in gameLoadV (fileHandle=0x2667a30, version=36)
at game.c:4743
i = <value optimized out>
j = <value optimized out>
player = 4294967295
date = "Jul 23 2008", '\0' <repeats 13 times>, "\004\000\000\000\000\000\000\000@\000\000\000\000\000\000\000\227\216.�\004\000\000\000`\000\000\000\000\000\000\0008\000\000\000\000\000\000\000\001\000\000\000\004\000\000\000\200\201\000\000�\003\000\000�\003\000\000\000\000\000\000�),��\177\000\000\004", '\0' <repeats 15 times>, "p�C\002\000\000\000\000\020\000\000\000\000\000\000\000��>�\002\000\000\000�),��\177\000\000p�\231\002\000\000\000\000�G|\002\000\000\000\000p�C\002\000\000\000\000\020\211.��\177\000\000��>��\177\000\000�),��\177\000\000\020", '\0' <repeats 15 times>, "�G|\002\000"...
powerSaved = {{currentPower = 14508, extractedPower = 0}, {
currentPower = 5096, extractedPower = 0}, {currentPower = 14167,
extractedPower = 0}, {currentPower = 15139, extractedPower = 0}, {
currentPower = 14980, extractedPower = 0}, {currentPower = 15179,
extractedPower = 0}, {currentPower = 14758, extractedPower = 0}, {
currentPower = 15404, extractedPower = 0}}
_FUNCTION_ = "gameLoadV"
#10 0x00000000004d20cd in loadGameInit (
fileName=0xd6e640 "savegame/AHAHAHAAHA.es") at game.c:3952
_FUNCTION_ = "loadGameInit"
#11 0x00000000004636bd in initSaveGameLoad () at main.c:623
_FUNCTION_ = "initSaveGameLoad"
#12 0x00000000004649d1 in main (argc=<value optimized out>,
argv=<value optimized out>) at main.c:697
_FUNCTION_ = "main"
(gdb) #3 0x00007ff2fafb01d5 in raise () from /lib/libc.so.6
(gdb) Dump of assembler code for function raise:
0x00007ff2fafb01a0 <raise+0>: mov %fs:0x94,%esi
0x00007ff2fafb01a8 <raise+8>: mov %fs:0x90,%edx
0x00007ff2fafb01b0 <raise+16>: test %edx,%edx
0x00007ff2fafb01b2 <raise+18>: jne 0x7ff2fafb01e2 <raise+66>
0x00007ff2fafb01b4 <raise+20>: mov $0xba,%eax
0x00007ff2fafb01b9 <raise+25>: syscall
0x00007ff2fafb01bb <raise+27>: mov %eax,%ecx
0x00007ff2fafb01bd <raise+29>: mov %eax,%fs:0x90
0x00007ff2fafb01c5 <raise+37>: movslq %edi,%rdx
0x00007ff2fafb01c8 <raise+40>: movslq %ecx,%rsi
0x00007ff2fafb01cb <raise+43>: movslq %eax,%rdi
0x00007ff2fafb01ce <raise+46>: mov $0xea,%eax
0x00007ff2fafb01d3 <raise+51>: syscall
0x00007ff2fafb01d5 <raise+53>: cmp $0xfffffffffffff000,%rax
0x00007ff2fafb01db <raise+59>: mov %eax,%edx
0x00007ff2fafb01dd <raise+61>: ja 0x7ff2fafb01f7 <raise+87>
0x00007ff2fafb01df <raise+63>: mov %edx,%eax
0x00007ff2fafb01e1 <raise+65>: retq
0x00007ff2fafb01e2 <raise+66>: test %esi,%esi
0x00007ff2fafb01e4 <raise+68>: mov %esi,%eax
0x00007ff2fafb01e6 <raise+70>: mov %edx,%ecx
0x00007ff2fafb01e8 <raise+72>: jg 0x7ff2fafb01c5 <raise+37>
0x00007ff2fafb01ea <raise+74>: neg %eax
0x00007ff2fafb01ec <raise+76>: and $0x7fffffff,%esi
0x00007ff2fafb01f2 <raise+82>: cmove %edx,%eax
0x00007ff2fafb01f5 <raise+85>: jmp 0x7ff2fafb01c5 <raise+37>
0x00007ff2fafb01f7 <raise+87>: mov 0x310d9a(%rip),%rax # 0x7ff2fb2c0f98
0x00007ff2fafb01fe <raise+94>: neg %edx
0x00007ff2fafb0200 <raise+96>: mov %edx,%fs:(%rax)
0x00007ff2fafb0203 <raise+99>: mov $0xffffffff,%edx
0x00007ff2fafb0208 <raise+104>: jmp 0x7ff2fafb01df <raise+63>
End of assembler dump.
(gdb) rax 0x0 0
rbx 0x7fff0541ad90 140733281578384
rcx 0xffffffffffffffff -1
rdx 0x6 6
rsi 0x15b0 5552
rdi 0x15b0 5552
rbp 0x7ff2fd2cb720 0x7ff2fd2cb720
rsp 0x7fff0541ace8 0x7fff0541ace8
r8 0x0 0
r9 0x6f20646e69662074 8007510562842222708
r10 0x8 8
r11 0x202 514
r12 0x29fd870 44030064
r13 0x42 66
r14 0x3 3
r15 0x3b1 945
rip 0x7ff2fafb01d5 0x7ff2fafb01d5 <raise+53>
eflags 0x246 [ PF ZF IF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
mxcsr 0x1f80 [ IM DM ZM OM UM PM ]
(gdb) The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/games/warzone2100, process 5552

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup