Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] (PR#13280) server Assertion `find_city_from_small_wonder(p
Home

[Freeciv-Dev] (PR#13280) server Assertion `find_city_from_small_wonder(p

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13280) server Assertion `find_city_from_small_wonder(pplayer, id) == ((void *)0)' failed.
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 17 Jun 2005 18:36:20 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13280 >

Game saved as civgame+1850.sav.gz
> civserver: citytools.c:719: build_free_small_wonders: Assertion
`find_city_from_small_wonder(pplayer, id) == ((void *)0)' failed.
Aborted (core dumped)

This is with the attached autogame and CVS from "Sat Jun 18 01:33:20 UTC
2005".  Coincidentally this autogame is also the reported cause of
crashes #13165 and #13156.

(gdb) p game.info.year
$1 = 1862

(gdb) bt
#0  0xb7e6783b in raise () from /lib/tls/libc.so.6
#1  0xb7e68fa2 in abort () from /lib/tls/libc.so.6
#2  0xb7e612df in __assert_fail () from /lib/tls/libc.so.6
#3  0x08067c6a in build_free_small_wonders (pplayer=0x8200a14,
    old_capital_name=0x87dbec4 "Jurmala", had_small_wonders=0xbffff440)
    at citytools.c:719
#4  0x080682d6 in transfer_city (ptaker=0x8209cc0, pcity=0x87dbeb8,
    kill_outside=0, transfer_unit_verbose=true, resolve_stack=true,
raze=true)
    at citytools.c:900
#5  0x0806943f in handle_unit_enter_city (punit=0x87dbec4, pcity=0x87dbeb8)
    at citytools.c:1255
#6  0x080636fb in handle_unit_move_consequences (punit=0x890e228,
    src_tile=0x83e709c, dst_tile=0x83e7060) at unittools.c:2685
#7  0x08064070 in move_unit (punit=0x890e228, pdesttile=0x83e7060,
move_cost=3)
    at unittools.c:2954
#8  0x080a5dbf in handle_unit_move_request (punit=0x890e228,
    pdesttile=0x83e7060, igzoc=false, move_diplomat_city=false)
    at unithand.c:1156
#9  0x08115a7e in ai_unit_attack (punit=0x890e228, ptile=0x83e7060)
    at aitools.c:921
#10 0x081144d2 in ai_unit_execute_path (punit=0x890e228, path=0x88172b8)
    at aitools.c:162
#11 0x08117702 in ai_military_rampage (punit=0x890e228, thresh_adj=1,
    thresh_move=1) at aiunit.c:698
#12 0x08119e06 in ai_military_attack (pplayer=0x8209cc0, punit=0x890e228)
    at aiunit.c:1680
#13 0x0811a9f4 in ai_manage_military (pplayer=0x8209cc0, punit=0x890e228)
    at aiunit.c:1998
#14 0x0811b087 in ai_manage_unit (pplayer=0x8209cc0, punit=0x890e228)
    at aiunit.c:2149
#15 0x0811b401 in ai_manage_units (pplayer=0x8209cc0) at aiunit.c:2248
#16 0x0810fa99 in ai_do_first_activities (pplayer=0x8209cc0) at aihand.c:426
#17 0x08050062 in ai_start_phase () at srv_main.c:452
#18 0x0805060a in begin_phase (is_new_phase=true) at srv_main.c:574
#19 0x080525d0 in main_loop () at srv_main.c:1650
#20 0x08052e42 in srv_loop () at srv_main.c:1956
#21 0x080528fe in srv_main () at srv_main.c:1773

(gdb) bt full
[...]
#3  0x08067c6a in build_free_small_wonders (pplayer=0x8200a14,
    old_capital_name=0x87dbec4 "Jurmala", had_small_wonders=0xbffff440)
    at citytools.c:719
        id = 21
        size = 14
#4  0x080682d6 in transfer_city (ptaker=0x8209cc0, pcity=0x87dbeb8,
    kill_outside=0, transfer_unit_verbose=true, resolve_stack=true,
raze=true)
    at citytools.c:900
        i = 4
        old_city_units = (struct unit_list *) 0x894d5b8
        pgiver = (struct player *) 0x8200a14
        old_trade_routes = {0, 0, 0, 0}
        had_small_wonders = {vec = "\000\000 ", '\0' <repeats 21 times>}
        old_city_name = "Jurmala\000\000\000\000\000¸¾}\bÀ\234 \b\024\n
\bhôÿ¿¾\233\v\b"
#5  0x0806943f in handle_unit_enter_city (punit=0x87dbec4, pcity=0x87dbeb8)
    at citytools.c:1255
        do_civil_war = true
        coins = 2
        pplayer = (struct player *) 0x8209cc0
        cplayer = (struct player *) 0x8200a14
#6  0x080636fb in handle_unit_move_consequences (punit=0x890e228,
    src_tile=0x83e709c, dst_tile=0x83e7060) at unittools.c:2685
        fromcity = (struct city *) 0x0
        tocity = (struct city *) 0x87dbeb8
        homecity = (struct city *) 0x8825d10
        pplayer = (struct player *) 0x8209cc0
        senthome = false
#7  0x08064070 in move_unit (punit=0x890e228, pdesttile=0x83e7060,
move_cost=3)
    at unittools.c:2954
        pplayer = (struct player *) 0x8209cc0
        psrctile = (struct tile *) 0x83e709c
        pcity = (struct city *) 0x0
        ptransporter = (struct unit *) 0x0
[...]


set gameseed 42
set mapseed 42
set timeout -1
set aifill 7
hard
create Caesar

start

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13280) server Assertion `find_city_from_small_wonder(pplayer, id) == ((void *)0)' failed., Jason Short <=