bugWarzone 2100 Project - Bugs: bug #11984, crash in structure.c

 
 
Show feedback again

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

bug #11984: crash in structure.c

Submitted by:  Paul Wise <pabs>
Submitted on:  Wed 09 Jul 2008 01:26:40 PM UTC  
 
Category: NoneSeverity: Normal
Priority: 5 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: svn/branches/2.1Operating System: GNU/Linux
Planned Release: None

Wed 09 Jul 2008 04:43:10 PM UTC, comment #4:

Some extra info from the core dump:

(gdb) frame 4
#4 0x0818bd8b in getStructureDamage (psStructure=0xb8aec60) at structure.c:1221
1221 CHECK_STRUCTURE(psStructure);
(gdb) p *psStructure
$4 = {type = OBJ_STRUCTURE, id = 167337, pos = {x = 8320, y = 4224, z = 202}, direction = 0, pitch = 0, roll = 0, psNext = 0xb8bc0a0, sDisplay = {imd = 0xb272668,
frameNumber = 52032, screenX = 439, screenY = 4294967143, screenR = 0}, player = 1 '\001', group = 0 '\0', selected = 0 '\0', cluster = 3 '\003',
visible = "\000�\000�\000\000\000", died = 0, lastEmission = 0, lastHitWeapon = 4294967295, timeLastHit = 0, body = 4960, inFire = 0, burnStart = 0, burnDamage = 0,
sensorPower = 1000, sensorRange = 2867, ECMMod = 50, armour = {{41, 41}, {41, 41}, {41, 41}, {41, 41}, {41, 41}, {41, 41}}, pStructureType = 0xb3e0de8, status = 0 '\0',
currentBuildPts = 0, currentPowerAccrued = 945, resistance = 0, lastResistance = 0, turretRotation = {0, 0, 0, 0}, turretPitch = {0, 0, 0, 0}, pFunctionality = 0x0,
numWeaps = 0, targetted = 0 '\0', asWeaps = {{nStat = 0, hitPoints = 0, ammo = 0, lastFired = 0, recoilValue = 0}, {nStat = 0, hitPoints = 0, ammo = 166971248, lastFired = 0,
recoilValue = 2}, {nStat = 5126, hitPoints = 0, ammo = 8, lastFired = 2951745544, recoilValue = 0}, {nStat = 166971248, hitPoints = 2000000000, ammo = 4, lastFired = 5126,
recoilValue = 0}}, psTarget = {0xb8c0cc0, 0x0, 0x0, 0x0}, targetFunc = {
"\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000",
"\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000",
"\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024\000",
'\0' <repeats 16 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024", '\0' <repeats 18 times>, "p��\t\000\000\000\000\004\000\000\000\006\024\000\000\000\000\000"}, targetLine = {0, 0, 0, 166971248}, psCurAnim = 0x0}

Paul Wise <pabs>
Wed 09 Jul 2008 04:13:22 PM UTC, comment #3:

r5420 according to git-svn and the trace.

Paul Wise <pabs>
Wed 09 Jul 2008 04:11:29 PM UTC, SVN revision 5447:

2.1: Remove assert check triggered in bug #11984: crash in structure.c

(Browse SVN revision 5447)

Per I. Mathisen <per>
Project Administrator
Wed 09 Jul 2008 04:10:46 PM UTC, comment #1:

Which revision was this? The most recent revisions should have given a better crash log.

Per I. Mathisen <per>
Project Administrator
Wed 09 Jul 2008 01:26:40 PM UTC, original submission:

Was playing Rush T3, slowly crushing the bots! Muahaha!?! Until wz crashed that is :(

Please close if it doesn't bring any new info.

Program: /home/pabs/opt/bin/warzone2100(warzone2100)
Version: Version 2.1 branch r5420 - Built Jul 9 2008 - DEBUG
Distributor:
Compiled on: Jul 8 2008 17:00:04
Compiled by: GCC 4.3.1
Executed on: Wed Jul 9 20:19:59 2008

Operating system: Linux
Node name: chianamo
Release: 2.6.25-2-686
Version: #1 SMP Fri Jun 27 03:23:20 UTC 2008
Machine: i686

Pointers: 32bit

Dump caused by signal: SIGABRT: Process abort signal

Log message 1: [cdAudio_OpenTrack] cdAudio_OpenTrack: Failed opening file music/menu.ogg, with error File not found
Log message 2: [cdAudio_OpenTrack] cdAudio_OpenTrack: Failed opening file music/track1.ogg, with error File not found

GLIBC raw backtrace:
warzone2100[0x8219031]
[0xb7f0640c]
/lib/i686/cmov/libc.so.6(abort+0x188)[0xb780ffb8]
/lib/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb780756e]
warzone2100[0x818bd8b]
warzone2100[0x8148b80]
warzone2100[0x814777d]
warzone2100[0x814667e]
warzone2100[0x81451d5]
warzone2100[0x8144b3f]
warzone2100[0x807b6f3]
warzone2100[0x80ca75e]
warzone2100[0x80cc20e]
warzone2100[0x80cc602]
warzone2100[0x80cca5f]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb77f9455]
warzone2100(ftell+0x39)[0x804e801]

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 "i486-linux-gnu"...
Attaching to program: /home/pabs/opt/bin/warzone2100, process 8042
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/i686/cmov/libm.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libm-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/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...Reading symbols from /usr/lib/debug/usr/lib/libopenal.so.1.3.253...done.
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...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/i686/cmov/libpthread.so.0...Reading symbols from /usr/lib/debug/lib/i686/cmov/libpthread-2.7.so...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb73d3a00 (LWP 8042)]
[New Thread 0xb6f01b90 (LWP 8049)]
done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libX11.so.6...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 /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/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...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libfontconfig.so.1...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 /usr/lib/libXext.so.6...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/lib/libXxf86vm.so.1
Reading symbols from /usr/lib/libXdamage.so.1...done.
Loaded symbols for /usr/lib/libXdamage.so.1
Reading symbols from /usr/lib/libXfixes.so.3...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /usr/lib/libdrm.so.2...done.
Loaded symbols for /usr/lib/libdrm.so.2
Reading symbols from /usr/lib/libxcb-xlib.so.0...done.
Loaded symbols for /usr/lib/libxcb-xlib.so.0
Reading symbols from /usr/lib/libxcb.so.1...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /lib/libx86.so.1...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...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXrandr.so.2...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/dri/i915_dri.so...Reading symbols from /usr/lib/debug/usr/lib/dri/i915_dri.so...done.
done.
Loaded symbols for /usr/lib/dri/i915_dri.so
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/i686/cmov/librt.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/librt-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libnss_compat.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libnss_compat-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i686/cmov/libnsl.so.1...Reading symbols from /usr/lib/debug/lib/i686/cmov/libnsl-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/libnsl.so.1
Reading symbols from /lib/i686/cmov/libnss_nis.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libnss_nis-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/i686/cmov/libnss_files.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libnss_files-2.7.so...done.
done.
Loaded symbols for /lib/i686/cmov/libnss_files.so.2
0xb7f06424 in __kernel_vsyscall ()
(gdb) #0 0xb7f06424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb787e5eb in waitpid () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#2 0x0821927e in posixExceptionHandler (signum=6, siginfo=0xbf92112c, sigcontext=0xbf9211ac) at exceptionhandler.c:469
btBuffer = {0x8219031, 0xb7f0640c, 0xb780ffb8, 0xb780756e, 0x818bd8b, 0x8148b80, 0x814777d, 0x814667e, 0x81451d5, 0x8144b3f, 0x807b6f3, 0x80ca75e, 0x80cc20e, 0x80cc602,
0x80cca5f, 0xb77f9455, 0x804e801, 0x0, 0x0, 0x0}
btSize = 17
pid = 10310
gdbPipe = {8, 9}
dumpFile = 7
signal = 0x828168e "SIGABRT: Process abort signal"
allreadyRunning = 1
#3 <signal handler called>
No symbol table info available.
#4 0xb7f06424 in __kernel_vsyscall ()
No symbol table info available.
#5 0xb780e5e0 in raise () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#6 0xb780ffb8 in abort () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#7 0xb780756e in __assert_fail () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#8 0x0818bd8b in getStructureDamage (psStructure=0xb8aec60) at structure.c:1221
i = 0
health = -nan(0x7fffc9)
_FUNCTION_ = "getStructureDamage"
_PRETTY_FUNCTION_ = "getStructureDamage"
#9 0x08148b80 in renderStructure (psStructure=0xb8aec60) at display3d.c:1971
structX = 8320
structY = 4224
rx = 3
rz = 122
rotation = 0
frame = 167630880
playerFrame = 1
animFrame = 0
nWeaponStat = 24
buildingBrightness = {byte = {r = 200 'È', g = 200 'È', b = 200 'È', a = 255 'ÿ'}, rgba = 4291348680, vector = "ÈÈÈÿ"}
dv = {x = 253, y = 202, z = 3834}
i = 1
temp = (Vector3f *) 0x0
bHitByElectronic = 0
defensive = 0
strImd = (iIMDShape *) 0xb272668
#10 0x0814777d in displayStaticObjects () at display3d.c:1373
psStructure = (STRUCTURE *) 0xb8aec60
clan = 1
test = 50
psAnimObj = (ANIM_OBJECT *) 0x3dcccccd
#11 0x0814667e in drawTiles (player=0x87c1b84) at display3d.c:866
i = 64
j = 64
rx = 3
rz = 122
#12 0x081451d5 in displayTerrain () at display3d.c:481
No locals.
#13 0x08144b3f in draw3DScene () at display3d.c:336
bPlayerHasHQ = 0
#14 0x0807b6f3 in displayWorld () at display.c:1343
pos = {x = 73, y = 0, z = 600}
#15 0x080ca75e in gameLoop () at loop.c:571
psCurr = (DROID *) 0x0
psNext = (DROID *) 0x0
psCBuilding = (STRUCTURE *) 0x0
psNBuilding = (STRUCTURE *) 0x0
psCFeat = (FEATURE *) 0x0
psNFeat = (FEATURE *) 0x0
i = 8
widgval = 0
quitting = 0
intRetVal = INT_INTERCEPT
clearMode = 4
_FUNCTION_ = "gameLoop"
_PRETTY_FUNCTION_ = "gameLoop"
#16 0x080cc20e in runGameLoop () at main.c:643
_FUNCTION_ = "runGameLoop"
#17 0x080cc602 in mainLoop () at main.c:817
event = {type = 4 '\004', active = {type = 4 '\004', gain = 0 '\0', state = 0 '\0'}, key = {type = 4 '\004', which = 0 '\0', state = 0 '\0', keysym = {scancode = 73 'I',
sym = 1, mod = KMOD_NONE, unicode = 0}}, motion = {type = 4 '\004', which = 0 '\0', state = 0 '\0', x = 73, y = 228, xrel = 1, yrel = 0}, button = {type = 4 '\004',
which = 0 '\0', button = 0 '\0', state = 0 '\0', x = 73, y = 228}, jaxis = {type = 4 '\004', which = 0 '\0', axis = 0 '\0', value = 73}, jball = {type = 4 '\004',
which = 0 '\0', ball = 0 '\0', xrel = 73, yrel = 228}, jhat = {type = 4 '\004', which = 0 '\0', hat = 0 '\0', value = 0 '\0'}, jbutton = {type = 4 '\004', which = 0 '\0',
button = 0 '\0', state = 0 '\0'}, resize = {type = 4 '\004', w = 14942281, h = 1}, expose = {type = 4 '\004'}, quit = {type = 4 '\004'}, user = {type = 4 '\004',
code = 14942281, data1 = 0x1, data2 = 0x0}, syswm = {type = 4 '\004', msg = 0xe40049}}
#18 0x080cca5f in main (argc=1, argv=0xbf921c54) at main.c:961
_FUNCTION_ = "main"
(gdb) The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /home/pabs/opt/bin/warzone2100, process 8042

Paul Wise <pabs>

 

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 per (Posted a comment)
  • -unavailable- added by pabs (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