URL:
  <http://gna.org/bugs/?12104>

                 Summary: assert cheating new research structure
                 Project: Warzone Resurrection Project
            Submitted by: pabs
            Submitted on: Monday 07/28/2008 at 16:04
                Category: None
                Severity: Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: svn/branches/2.1
        Operating System: GNU/Linux
         Planned Release: None

    _______________________________________________________

Details:

Was cheating myself every structure available after 'research all', cheated a
research structure in and got an assert:

gdb --core core-1619-1000-1000-6-1217260245-chianamo-warzone2100 warzone2100

(gdb) frame 4
#4  0x08190558 in buildStructure (pStructureType=0xa02b520, x=12288, y=12416,
player=2, FromSave=0) at structure.c:1860
1860                            ASSERT(!"module has no owning structure", "No 
owning structure for
this module - %s", getStructName(pStructureType));
(gdb) p pStructureType
$1 = (STRUCTURE_STATS *) 0xa02b520
(gdb) p *pStructureType
$2 = {ref = 851996, pName = 0x9fd8560 "A0ResearchModule1", type =
REF_RESEARCH_MODULE, techLevel = TECH_LEVEL_ALL, strength = STRENGTH_MEDIUM,
terrainType = 1, baseWidth = 2, 
  baseBreadth = 2, foundationType = 0, buildPoints = 250, height = 2,
armourValue = 10, bodyPoints = 800, repairSystem = 50, powerToBuild = 100,
resistance = 150, 
  sizeModifier = 5, pIMD = 0x91450d0, pBaseIMD = 0x0, pECM = 0x9fd1c50,
pSensor = 0x9fd15ec, weaponSlots = 0, numWeaps = 0, psWeapStat = {0x0, 0x0,
0x0, 0x0}, numFuncs = 1, 
  defaultFunc = 0, asFuncList = 0xa00c800}


Program: /home/pabs/opt/bin/warzone2100(warzone2100)
Command line: "warzone2100" "--cheat" 
Version: Version 2.1 branch r5693 - Built Jul 28 2008 - DEBUG
Distributor: 
Compiled on: Jul 28 2008 22:35:51
Compiled by: GCC 4.3.1
Executed on: Mon Jul 28 23:17:55 2008
Operating system: Linux
Node name: chianamo
Release: 2.6.25-2-686
Version: #1 SMP Fri Jul 18 17:46:56 UTC 2008
Machine: i686

Pointers: 32bit

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   : [PrintOpenALVersion] OpenAL Version: (null)
Log message: error   : [PrintOpenALVersion] OpenAL Renderer: (null)
Log message: error   : [PrintOpenALVersion] OpenAL Extensions: (null)
Log message: error   : [sound_InitLibrary] Couldn't open audio device.
Log message: error   : [sound_Init] Cannot init sound library
Log message: error   : [buildStructure] Player 2: Building A0LasSatCommand
could not be built due to building limits (has 1, max 1)!
Log message: error   : [buildStructure] Player 2: Building A0Sat-linkCentre
could not be built due to building limits (has 1, max 1)!
Log message: error   : [researchResult] researchResult - more than 32 weapons
now available
Log message: last message repeated 2 times
Log message: last message repeated 2 times (total 4 repeats)
Log message: last message repeated 4 times (total 8 repeats)
Log message: last message repeated 8 times (total 16 repeats)
Log message: last message repeated 16 times (total 32 repeats)
Log message: last message repeated 10 times (total 42 repeats)
Log message: error   : [buildStructure] Player 2: Building A0LasSatCommand
could not be built due to building limits (has 1, max 1)!
Log message: error   : [buildStructure] Player 2: Building A0ComDroidControl
could not be built due to building limits (has 1, max 1)!
Log message: error   : [buildStructure] Player 2: Building A0CommandCentre
could not be built due to building limits (has 1, max 1)!
Log message: error   : [buildStructure] Player 2: Building A0LasSatCommand
could not be built due to building limits (has 1, max 1)!
Log message: error   : [buildStructure] No owning structure for this module -
Research Module
Log message: error   : [buildStructure] Assert in Warzone: structure.c:1860
(!"module has no owning structure"), last script event: 'N/A'

GLIBC raw backtrace:
warzone2100[0x821994d]
[0xb7efb40c]
/lib/i686/cmov/libc.so.6(abort+0x188)[0xb7804fb8]
/lib/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb77fc56e]
warzone2100[0x8190558]
warzone2100[0x80a62a3]
warzone2100[0x80c89ce]
warzone2100[0x80caef6]
warzone2100[0x80cb2ea]
warzone2100[0x80cb74e]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb77ee455]
warzone2100(ftell+0x31)[0x804e881]

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 1619
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.4.272...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 0xb73c4a00 (LWP 1619)]
[New Thread 0xb6ef5b90 (LWP 1623)]
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
0xb7efb424 in __kernel_vsyscall ()
(gdb) #0  0xb7efb424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb78735eb in waitpid () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#2  0x08219b9a in posixExceptionHandler (signum=6, siginfo=0xbfe1693c,
sigcontext=0xbfe169bc) at exceptionhandler.c:482
        btBuffer = {0x821994d, 0xb7efb40c, 0xb7804fb8, 0xb77fc56e, 0x8190558,
0x80a62a3, 0x80c89ce, 0x80caef6, 0x80cb2ea, 0x80cb74e, 0xb77ee455, 0x804e881,
0x0, 0x0, 0x0, 0x0, 
  0x0, 0x0, 0x0, 0x0}
        btSize = 12
        pid = 2839
        gdbPipe = {10, 11}
        dumpFile = 9
        signal = 0x82821f6 "SIGABRT: Process abort signal"
        allreadyRunning = 1
        gdbCommands = "backtrace full\nframe 3\ndisassemble\ninfo
registers\nquit\n"
#3  <signal handler called>
No symbol table info available.
#4  0xb7efb424 in __kernel_vsyscall ()
No symbol table info available.
#5  0xb78035e0 in raise () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#6  0xb7804fb8 in abort () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#7  0xb77fc56e in __assert_fail () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#8  0x08190558 in buildStructure (pStructureType=0xa02b520, x=12288, y=12416,
player=2, FromSave=0) at structure.c:1860
        bUpgraded = 0
        mapX = 320
        mapY = 548
        width = 171815776
        breadth = 171815912
        weapon = 23
        capacity = 444
        bodyDiff = 0
        wallType = 0
        preScrollMinX = 0
        preScrollMinY = 0
        preScrollMaxX = 0
        preScrollMaxY = 0
        i = 1
        psBuilding = (STRUCTURE *) 0x0
        __PRETTY_FUNCTION__ = "buildStructure"
        __FUNCTION__ = "buildStructure"
#9  0x080a62a3 in intRunWidgets () at hci.c:2112
        psBuilding = (STRUCTURE_STATS *) 0xa02b520
        retID = 0
        retCode = INT_NONE
        quitting = 0
        structX = 12288
        structY = 12416
        structX2 = 172336152
        structY2 = 136119246
        objMajor = 49121
        objMinor = 28536
        psStructure = (STRUCTURE *) 0x0
        psDroid = (DROID *) 0xb66db26c
        i = 22
        widgOverID = 19107
        __FUNCTION__ = "intRunWidgets"
        __PRETTY_FUNCTION__ = "intRunWidgets"
#10 0x080c89ce in gameLoop () at loop.c:198
        psCurr = (DROID *) 0xb7863006
        psNext = (DROID *) 0xb7e321be
        psCBuilding = (STRUCTURE *) 0x4d6d6
        psNBuilding = (STRUCTURE *) 0x258
        psCFeat = (FEATURE *) 0xb7e62ebb
        psNFeat = (FEATURE *) 0xb7e8d838
        i = 3085490232
        widgval = 0
        quitting = 0
        intRetVal = 3085490232
        clearMode = 4
        __FUNCTION__ = "gameLoop"
        __PRETTY_FUNCTION__ = "gameLoop"
#11 0x080caef6 in runGameLoop () at main.c:643
        __FUNCTION__ = "runGameLoop"
#12 0x080cb2ea in mainLoop () at main.c:817
        event = {type = 6 '\006', active = {type = 6 '\006', gain = 0 '\0', 
state =
1 '\001'}, key = {type = 6 '\006', which = 0 '\0', state = 1 '\001', keysym =
{
      scancode = 64 '@', sym = SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}},
motion = {type = 6 '\006', which = 0 '\0', state = 1 '\001', x = 320, y =
548, xrel = 0, yrel = 0}, 
  button = {type = 6 '\006', which = 0 '\0', button = 1 '\001', state = 0
'\0', x = 320, y = 548}, jaxis = {type = 6 '\006', which = 0 '\0', axis = 1
'\001', value = 320}, 
  jball = {type = 6 '\006', which = 0 '\0', ball = 1 '\001', xrel = 320, yrel
= 548}, jhat = {type = 6 '\006', which = 0 '\0', hat = 1 '\001', value = 0
'\0'}, jbutton = {
    type = 6 '\006', which = 0 '\0', button = 1 '\001', state = 0 '\0'},
resize = {type = 6 '\006', w = 35914048, h = 0}, expose = {type = 6 '\006'},
quit = {type = 6 '\006'}, 
  user = {type = 6 '\006', code = 35914048, data1 = 0x0, data2 = 0x0}, syswm
= {type = 6 '\006', msg = 0x2240140}}
#13 0x080cb74e in main (argc=2, argv=0xbfe17154) at main.c:961
        __FUNCTION__ = "main"
        __PRETTY_FUNCTION__ = "main"
(gdb) #3  <signal handler called>
(gdb) Dump of assembler code for function __kernel_rt_sigreturn:
0xb7efb40c <__kernel_rt_sigreturn+0>:   mov    $0xad,%eax
0xb7efb411 <__kernel_rt_sigreturn+5>:   int    $0x80
0xb7efb413 <__kernel_rt_sigreturn+7>:   nop    
End of assembler dump.
(gdb) eax            0xfffffe00 -512
ecx            0x0      0
edx            0x0      0
ebx            0x653    1619
esp            0xbfe16930       0xbfe16930
ebp            0xbfe16ccc       0xbfe16ccc
esi            0xb7912277       -1215225225
edi            0xb792eff4       -1215107084
eip            0xb7efb40c       0xb7efb40c <__kernel_rt_sigreturn>
eflags         0x246    [ PF ZF IF ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
(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 1619





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?12104>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to