Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2006:
[Freeciv-Dev] (PR#18281) assert find_city_from_small_wonder == NULL
Home

[Freeciv-Dev] (PR#18281) assert find_city_from_small_wonder == NULL

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#18281) assert find_city_from_small_wonder == NULL
From: "Marko Lindqvist" <cazfi74@xxxxxxxxx>
Date: Tue, 4 Jul 2006 02:55:46 -0700
Reply-to: bugs@xxxxxxxxxxx

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



assertion "find_city_from_small_wonder(pplayer, id) == NULL" failed: 
file "../../freeciv-patch/server/citytools.c", line 721

  Revision: 12042
  Attached autogame
  Year: 1120

  I had applied some debug patches when getting this backtrace, so line 
numbers may differ from clean revision 12042.

#1  0x004b1d7c in build_free_small_wonders (pplayer=0x646498, 
old_capital_name=0x1074ab6c "Sisseton",
     had_small_wonders=0x22e690) at 
../../freeciv-patch/server/citytools.c:722
         id = 21
         size = 5
#2  0x004b41b4 in transfer_city (ptaker=0x6458b8, pcity=0x1074ab60, 
kill_outside=0,
     transfer_unit_verbose=true, resolve_stack=true, raze=true)
     at ../../freeciv-patch/server/citytools.c:907
         i = 67
         pgiver = (struct player *) 0x646498
         old_trade_routes = {0, 0, 0, 0}
         had_small_wonders = {vec = "\000\000 ", '\0' <repeats 21 times>}
         old_city_name = 
"Sisseton\000�æ\"\000r�Û@\000�¸Xd\000H#\002\020\000\000\000\000l�«t"
         old_vision = (struct vision *) 0x1074dfe0
         pcity = (struct city *) 0x1074ab60
         kill_outside = 0
         transfer_unit_verbose = true
         resolve_stack = true
         raze = true
#3  0x004b4539 in handle_unit_enter_city (punit=0x10859440, 
pcity=0x1074ab60)
     at ../../freeciv-patch/server/citytools.c:1286
         do_civil_war = false
         coins = 1
         pplayer = (struct player *) 0x6458b8
         cplayer = (struct player *) 0x646498
         punit = (struct unit *) 0x1
         pcity = (struct city *) 0x1074ab60
#4  0x004a601c in handle_unit_move_consequences (punit=0x1074ab60, 
src_tile=0x10137d90,
     dst_tile=0x101393c8) at ../../freeciv-patch/server/unittools.c:2537
         fromcity = (struct city *) 0x6458b8
         tocity = (struct city *) 0x1
         homecity = (struct city *) 0x107a0838
         pplayer = (struct player *) 0x6458b8
         refresh_homecity = false
         dst_tile = (struct tile *) 0x101393c8
#5  0x004a774c in move_unit (punit=0x10859440, pdesttile=0x101393c8, 
move_cost=3)
     at ../../freeciv-patch/server/unittools.c:2807
         pplayer = (struct player *) 0x6458b8
         psrctile = (struct tile *) 0x10137d90
         pcity = (struct city *) 0x0
         ptransporter = (struct unit *) 0x0
         old_vision = (struct vision *) 0x1083c150
#6  0x004b9a8d in handle_unit_move_request (punit=0x10859440, 
pdesttile=0x101393c8, igzoc=false,
     move_diplomat_city=false) at ../../freeciv-patch/server/unithand.c:1139
         move_cost = 0
         pplayer = (struct player *) 0x6458b8
         pcity = (struct city *) 0x1074ab60
         punit = (struct unit *) 0x10859440
         igzoc = false
         move_diplomat_city = false
#7  0x004dfc9f in ai_unit_attack (punit=0x10859440, ptile=0x101393c8)
     at ../../freeciv-patch/ai/aitools.c:952
         bodyguard = (struct unit *) 0x0
         sanity = 1087
         alive = 200
         punit = (struct unit *) 0x10859440
         ptile = (struct tile *) 0x101393c8
#8  0x004dfe9d in ai_unit_execute_path (punit=0x10859440, path=0x107f5b68)
     at ../../freeciv-patch/ai/aitools.c:192
         ptile = (struct tile *) 0x101393c8
         id = 1087
         is_ai = true
         i = 1
         punit = (struct unit *) 0x10859440
#9  0x004d4998 in ai_military_rampage (punit=0x10859440, thresh_adj=1, 
thresh_move=1)
     at ../../freeciv-patch/ai/aiunit.c:696
         count = 3
         path = (struct pf_path *) 0x101393c8
#10 0x004d7965 in ai_military_attack (pplayer=0x6458b8, punit=0x10859440)
     at ../../freeciv-patch/ai/aiunit.c:1683
         dest_tile = (struct tile *) 0x22ea38
         id = 1087
         ct = 10
         pcity = (struct city *) 0xa
         start_tile = (struct tile *) 0x10137d90
#11 0x004d8672 in ai_manage_military (pplayer=0x6458b8, punit=0x10859440)
     at ../../freeciv-patch/ai/aiunit.c:2004
         id = 1087
         punit = (struct unit *) 0xa
#12 0x004d9533 in ai_manage_unit (pplayer=0x6458b8, punit=0x10859440)
     at ../../freeciv-patch/ai/aiunit.c:2160
         bodyguard = (struct unit *) 0x0
         punit = (struct unit *) 0x10859440
#13 0x004da41e in ai_manage_units (pplayer=0x6458b8) at 
../../freeciv-patch/ai/aiunit.c:2261
         most_needed = (struct city *) 0x0
         comparison = 0
         transported = (struct unit *) 0x0
         myiter = (struct genlist_link *) 0x0
         myiter = (struct genlist_link *) 0x0
         myiter = (struct genlist_link *) 0x0
         myiter = (struct genlist_link *) 0x0
         myiter = (struct genlist_link *) 0x0
#14 0x004c9f6e in ai_do_first_activities (pplayer=0x6458b8) at 
../../freeciv-patch/ai/aihand.c:425
         pplayer = (struct player *) 0x6458b8
#15 0x004696c2 in main_loop () at ../../freeciv-patch/server/srv_main.c:506
         pplayer = (struct player *) 0x6458b8
         i = 7
         eot_timer = (struct timer *) 0x10189918
         save_counter = 162
         is_new_turn = true
#16 0x0046a3fa in srv_main () at ../../freeciv-patch/server/srv_main.c:1961
         pplayer = (struct player *) 0x0
         PI_p_itr = 0
         player_name = "Tokhtamysh\000\000lislav �Å� t�Ã�ºr\000\"\000�å4@"
         PI_p_itr = 7
         PI_p_itr = 7
         player_name = "Tokhtamysh\000\000lislav �Å� t�Ã�ºr\000\"\000�å4@"
         player_name = "Tokhtamysh\000\000lislav �Å� t�Ã�ºr\000\"\000�å4@"
         PI_p_itr = 7
#17 0x0040151e in main (argc=3, argv=0x10022290) at 
../../freeciv-patch/server/civserver.c:256
         inx = 3
         showhelp = false
         showvers = false
         option = 0x521470 "freeciv_server"
         argc = 3
         argv = (char **) 0x10022290



  - ML

set savename autotest

set timeout -1
normal
create Tester
set aifill 7
set saveturns 0
set endyear 2800

set gameseed 1151991649
set mapseed 1456331888

start


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#18281) assert find_city_from_small_wonder == NULL, Marko Lindqvist <=