[Freeciv-Dev] (PR#4286) assert(ground_unit_transporter_capacity(x, y, pp
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#4286) assert(ground_unit_transporter_capacity(x, y, pplayer) >= 0) |
From: |
"Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx> |
Date: |
Fri, 23 May 2003 05:35:59 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
On Thu, May 22, 2003 at 11:48:10AM -0700, freeciv@xxxxxxxxxxxxxxxxxxxxx wrote:
> # examining core.5808 in /games/90271/. ...
> # using $FREECIV_PATH
> /home/freeciv/.freeciv/code/installed/web/beta/freeciv-1.14.0-beta2+ourown-post-1.14.0+cmd_reply+teamslite13+teamslite13fixes+newdead+responsetime+3648+slowai/share/freeciv
> # running: (echo bt; echo quit; exec yes '') | gdb
> /home/freeciv/.freeciv/code/installed/web/beta/freeciv-1.14.0-beta2+ourown-post-1.14.0+cmd_reply+teamslite13+teamslite13fixes+newdead+responsetime+3648+slowai/share/freeciv/../../bin/civserver
> core.5808
> GNU gdb Red Hat Linux (5.2-2)
> 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 "i386-redhat-linux"...
> Core was generated by
> `/home/freeciv/.freeciv/code/installed/web/beta/freeciv-1.14.0-beta2+ourown-post'.
> Program terminated with signal 6, Aborted.
> Reading symbols from /lib/libm.so.6...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /usr/lib/libz.so.1...done.
> Loaded symbols for /usr/lib/libz.so.1
> Reading symbols from /lib/libc.so.6...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /lib/libnss_files.so.2...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /lib/libnss_nisplus.so.2...done.
> Loaded symbols for /lib/libnss_nisplus.so.2
> Reading symbols from /lib/libnsl.so.1...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libnss_dns.so.2...done.
> Loaded symbols for /lib/libnss_dns.so.2
> Reading symbols from /lib/libresolv.so.2...done.
> Loaded symbols for /lib/libresolv.so.2
> #0 0x400750a1 in kill () from /lib/libc.so.6
> (gdb) #0 0x400750a1 in kill () from /lib/libc.so.6
> #1 0x40074e99 in raise () from /lib/libc.so.6
> #2 0x40076364 in abort () from /lib/libc.so.6
> #3 0x4006f15d in __assert_fail () from /lib/libc.so.6
> #4 0x0808f48f in check_units () at sanitycheck.c:239
> #5 0x0808f6c4 in sanity_check () at sanitycheck.c:285
> #6 0x0805092d in main_loop () at srv_main.c:1792
> #7 0x080510d3 in srv_main () at srv_main.c:2074
> #8 0x08049d65 in main (argc=10, argv=0xbffff944) at civserver.c:153
> #9 0x400641c4 in __libc_start_main () from /lib/libc.so.6
> (gdb)
Since this version is patched here is the assert which caused this:
...
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
#0 0x400750a1 in kill () from /lib/libc.so.6
(gdb) bt
#0 0x400750a1 in kill () from /lib/libc.so.6
#1 0x40074e99 in raise () from /lib/libc.so.6
#2 0x40076364 in abort () from /lib/libc.so.6
#3 0x4006f15d in __assert_fail () from /lib/libc.so.6
#4 0x0808f48f in check_units () at sanitycheck.c:239
#5 0x0808f6c4 in sanity_check () at sanitycheck.c:285
#6 0x0805092d in main_loop () at srv_main.c:1792
#7 0x080510d3 in srv_main () at srv_main.c:2074
#8 0x08049d65 in main (argc=10, argv=0xbffff944) at civserver.c:153
#9 0x400641c4 in __libc_start_main () from /lib/libc.so.6
(gdb) up 4
#4 0x0808f48f in check_units () at sanitycheck.c:239
239 assert(ground_unit_transporter_capacity(x, y, pplayer) >= 0);
(gdb) l
234 if (pcity) {
235 assert(pplayers_allied(city_owner(pcity), pplayer));
236 }
237
238 if (map_get_terrain(x, y) == T_OCEAN)
239 assert(ground_unit_transporter_capacity(x, y, pplayer) >= 0);
240
241 assert(punit->moves_left >= 0);
242 assert(punit->hp > 0);
243 } unit_list_iterate_end;
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
What's nice about GUI is that you see what you manipulate.
What's bad about GUI is that you can only manipulate what you see.
|
|