Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#13165) path finding assert
Home

[Freeciv-Dev] (PR#13165) path finding assert

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13165) path finding assert
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Sun, 22 May 2005 14:28:58 -0700
Reply-to: bugs@xxxxxxxxxxx

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


  Using autogame from #13156, year 1776.
  CVS May-22, 11:27 EEST (UTC +3), simple fix for #13164 applied.

  assert "!pf_map->d_lattice[ptile->index].is_dangerous", 
path_finding.c,   line 799 fails.

#1  0x004e6b17 in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:954
         cost_of_path = 749465892
         index1 = 3767
         d_node1 = (struct danger_node *) 0x108391b8
         extra = 8012826
         _y_itr = 48
         dir = DIR8_NORTHWEST
         _is_border = false
         _dir_index = 0
         _x_itr = 23
         loc_cost = 414
         loc_step = 22
         index = 34
         node = (struct pf_node *) 0x10828c00
         d_node = (struct danger_node *) 0x108396a8
         index = 34
         node = (struct pf_node *) 0x10828c00
         d_node = (struct danger_node *) 0x108396a8
#2  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3846
         node = (struct pf_node *) 0x10829218
         d_node = (struct danger_node *) 0x10839b88
         index = 3846
         node = (struct pf_node *) 0x10829218
         d_node = (struct danger_node *) 0x10839b88
#3  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3924
         node = (struct pf_node *) 0x10829268
         d_node = (struct danger_node *) 0x10839bc8
         index = 3924
         node = (struct pf_node *) 0x10829268
         d_node = (struct danger_node *) 0x10839bc8
#4  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3928
         node = (struct pf_node *) 0x10829254
         d_node = (struct danger_node *) 0x10839bb8
         index = 3928
         node = (struct pf_node *) 0x10829254
         d_node = (struct danger_node *) 0x10839bb8
#5  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3927
         node = (struct pf_node *) 0x10828c64
         d_node = (struct danger_node *) 0x108396f8
         index = 3927
         node = (struct pf_node *) 0x10828c64
         d_node = (struct danger_node *) 0x108396f8
#6  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3851
         node = (struct pf_node *) 0x1082864c
         d_node = (struct danger_node *) 0x10839218
         index = 3851
         node = (struct pf_node *) 0x1082864c
         d_node = (struct danger_node *) 0x10839218
#7  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3773
         node = (struct pf_node *) 0x1082927c
         d_node = (struct danger_node *) 0x10839bd8
         index = 3773
         node = (struct pf_node *) 0x1082927c
         d_node = (struct danger_node *) 0x10839bd8
#8  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3929
         node = (struct pf_node *) 0x10828c14
         d_node = (struct danger_node *) 0x108396b8
         index = 3929
         node = (struct pf_node *) 0x10828c14
         d_node = (struct danger_node *) 0x108396b8
#9  0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3847
         node = (struct pf_node *) 0x1082922c
         d_node = (struct danger_node *) 0x10839b98
         index = 3847
         node = (struct pf_node *) 0x1082922c
         d_node = (struct danger_node *) 0x10839b98
#10 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3925
         node = (struct pf_node *) 0x10829240
         d_node = (struct danger_node *) 0x10839ba8
         index = 3925
         node = (struct pf_node *) 0x10829240
         d_node = (struct danger_node *) 0x10839ba8
#11 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3926
         node = (struct pf_node *) 0x10828c28
         d_node = (struct danger_node *) 0x108396c8
         index = 3926
         node = (struct pf_node *) 0x10828c28
         d_node = (struct danger_node *) 0x108396c8
#12 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3848
         node = (struct pf_node *) 0x10828c3c
         d_node = (struct danger_node *) 0x108396d8
         index = 3848
         node = (struct pf_node *) 0x10828c3c
         d_node = (struct danger_node *) 0x108396d8
#13 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3849
         node = (struct pf_node *) 0x10828638
         d_node = (struct danger_node *) 0x10839208
         index = 3849
         node = (struct pf_node *) 0x10828638
         d_node = (struct danger_node *) 0x10839208
#14 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3772
         node = (struct pf_node *) 0x10828c50
         d_node = (struct danger_node *) 0x108396e8
         index = 3772
         node = (struct pf_node *) 0x10828c50
         d_node = (struct danger_node *) 0x108396e8
#15 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3850
         node = (struct pf_node *) 0x10828020
         d_node = (struct danger_node *) 0x10838d28
         index = 3850
         node = (struct pf_node *) 0x10828020
         d_node = (struct danger_node *) 0x10838d28
#16 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3694
         node = (struct pf_node *) 0x10828624
         d_node = (struct danger_node *) 0x108391f8
         index = 3694
         node = (struct pf_node *) 0x10828624
         d_node = (struct danger_node *) 0x108391f8
#17 0x004e679b in danger_iterate_map (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1041
         index = 3771
         node = (struct pf_node *) 0x1081fa60
         d_node = (struct danger_node *) 0x10832228
         index = 3771
         node = (struct pf_node *) 0x1081fa60
         d_node = (struct danger_node *) 0x10832228
#18 0x004e58fe in pf_next (pf_map=0x10718d80)
     at ../../../freeciv-patch/common/aicore/path_finding.c:323
         index = 34
         node = (struct pf_node *) 0x1081fa60
         index = 34
         node = (struct pf_node *) 0x1081fa60
#19 0x004e70a8 in danger_get_path (pf_map=0x10718d80, ptile=0x1024d730)
     at ../../../freeciv-patch/common/aicore/path_finding.c:1175
         pf_map = (struct pf_map *) 0x10718d80
         ptile = (struct tile *) 0x1024d730
         index = 3
         status = 115 's'
#20 0x004cd638 in ai_amphibious_goto_constrained (ferry=0x106f6fb0, 
passenger=0x10779680,
     ptile=0x1024d730, parameter=0x22ea70) at 
../../freeciv-patch/ai/aiferry.c:446
         passenger = (struct unit *) 0x1024d730
         ptile = (struct tile *) 0x10718d80
         alive = true
         pplayer = (struct player *) 0x3
         map = (struct pf_map *) 0x10718d80
         path = (struct pf_path *) 0x409c71c7
#21 0x004cd8a8 in aiferry_goto_amphibious (ferry=0x106f6fb0, 
passenger=0x10779680,
     ptile=0x1024d730) at ../../freeciv-patch/ai/aiferry.c:516
         passenger = (struct unit *) 0x10779680
         ptile = (struct tile *) 0x1024d730
         parameter = {land = {start_tile = 0x1024ed74, 
moves_left_initially = 6, move_rate = 6,
     owner = 0x5c8d88, unit_flags = {vec = 
"\000\000\000\000\000\000\000"}, omniscience = true,
     turn_mode = TM_WORST_TIME, get_MC = 0x4e7250 <normal_move_unit>,
     get_TB = 0x4e7760 <no_intermediate_fights>, get_EC = 0x4d47b0 
<prefer_short_stacks>,
     get_zoc = 0x417a70 <is_my_zoc>, is_pos_dangerous = 0, get_costs = 
0, data = 0x22ea40},
   sea = {start_tile = 0x1024ed74, moves_left_initially = 15, move_rate 
= 15, owner = 0x5c8d88,
     unit_flags = {vec = "\000\000\004\000\000\000\000"}, omniscience = 
true,
     turn_mode = TM_WORST_TIME, get_MC = 0x4e7190 <sea_overlap_move>,
     get_TB = 0x4e7710 <no_fights>, get_EC = 0x4d47b0 
<prefer_short_stacks>, get_zoc = 0,
     is_pos_dangerous = 0x4e7820 <trireme_is_pos_dangerous>, get_costs = 
0, data = 0x22ea10},
   land_scale = 15, sea_scale = 6, combined = {start_tile = 0x1024ed74,
     moves_left_initially = 90, move_rate = 90, owner = 0x5c8d88, 
unit_flags = {
       vec = "\000\000\000\000\000\000\000"}, omniscience = true, 
turn_mode = TM_WORST_TIME,
     get_MC = 0x4e7520 <amphibious_move>, get_TB = 0x4e77b0 
<amphibious_behaviour>,
     get_EC = 0x4e75f0 <amphibious_extra_cost>, get_zoc = 0,
     is_pos_dangerous = 0x4e7920 <amphibious_is_pos_dangerous>, 
get_costs = 0, data = 0x22ea70}}
         land_risk_cost = {base_value = 60, fearfulness = 
910.22222222222217, ocean_cost = 0,
   unsafe_terrain_cost = 9, enemy_zoc_cost = 1310720}
         sea_risk_cost = {base_value = 40, fearfulness = 364.0888888888889,
   ocean_cost = 4.7999999999999998, unsafe_terrain_cost = 6, 
enemy_zoc_cost = 1310720}
#22 0x004cd9d4 in aiferry_gobyboat (pplayer=0x5c8d88, punit=0x10779680, 
dest_tile=0x1024d730)
     at ../../freeciv-patch/ai/aiferry.c:641
         bodyguard = (struct unit *) 0x10779680
         punit = (struct unit *) 0x1024d730
         ferryboat = (struct unit *) 0x22ea70
#23 0x004d3fbe in ai_gothere (pplayer=0x5c8d88, punit=0x10779680, 
dest_tile=0x1024d730)
     at ../../freeciv-patch/ai/aitools.c:272
         pplayer = (struct player *) 0x3
         punit = (struct unit *) 0x10779680
         dest_tile = (struct tile *) 0x1024d730
#24 0x004d9da2 in ai_military_attack (pplayer=0x5c8d88, punit=0x10779680)
     at ../../freeciv-patch/ai/aiunit.c:1715
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         dest_tile = (struct tile *) 0x1024d730
         id = 1271
         ct = 10
         pcity = (struct city *) 0xa
         start_tile = (struct tile *) 0x1024ed74
#25 0x004da7b8 in ai_manage_military (pplayer=0x5c8d88, punit=0x10779680)
     at ../../freeciv-patch/ai/aiunit.c:1986
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         id = 1271
#26 0x004daea3 in ai_manage_unit (pplayer=0x5c8d88, punit=0x10779680)
     at ../../freeciv-patch/ai/aiunit.c:2137
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         bodyguard = (struct unit *) 0x1
#27 0x004ce3b6 in ai_manage_ferryboat (pplayer=0x5c8d88, punit=0x106f6fb0)
     at ../../freeciv-patch/ai/aiferry.c:913
         boss = (struct unit *) 0x10779680
         ptile = (struct tile *) 0x10779680
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x106f6fb0
         pcity = (struct city *) 0x3
         sanity = 293
#28 0x004dae13 in ai_manage_unit (pplayer=0x5c8d88, punit=0x106f6fb0)
     at ../../freeciv-patch/ai/aiunit.c:2121
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x106f6fb0
         bodyguard = (struct unit *) 0x1
#29 0x004db346 in ai_manage_units (pplayer=0x5c8d88) at 
../../freeciv-patch/ai/aiunit.c:2236
         myiter = (struct genlist_link *) 0x53
         punit = (struct unit *) 0x3
#30 0x004cf700 in ai_do_first_activities (pplayer=0x5c8d88)
     at ../../freeciv-patch/ai/aihand.c:426
         pplayer = (struct player *) 0x5c8d88
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         dest_tile = (struct tile *) 0x1024d730
         id = 1271
         ct = 10
         pcity = (struct city *) 0xa
         start_tile = (struct tile *) 0x1024ed74
#25 0x004da7b8 in ai_manage_military (pplayer=0x5c8d88, punit=0x10779680)
     at ../../freeciv-patch/ai/aiunit.c:1986
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         id = 1271
#26 0x004daea3 in ai_manage_unit (pplayer=0x5c8d88, punit=0x10779680)
     at ../../freeciv-patch/ai/aiunit.c:2137
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x10779680
         bodyguard = (struct unit *) 0x1
#27 0x004ce3b6 in ai_manage_ferryboat (pplayer=0x5c8d88, punit=0x106f6fb0)
     at ../../freeciv-patch/ai/aiferry.c:913
         boss = (struct unit *) 0x10779680
         ptile = (struct tile *) 0x10779680
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x106f6fb0
         pcity = (struct city *) 0x3
         sanity = 293
#28 0x004dae13 in ai_manage_unit (pplayer=0x5c8d88, punit=0x106f6fb0)
     at ../../freeciv-patch/ai/aiunit.c:2121
         pplayer = (struct player *) 0x5c8d88
         punit = (struct unit *) 0x106f6fb0
         bodyguard = (struct unit *) 0x1
#29 0x004db346 in ai_manage_units (pplayer=0x5c8d88) at 
../../freeciv-patch/ai/aiunit.c:2236
         myiter = (struct genlist_link *) 0x53
         punit = (struct unit *) 0x3
#30 0x004cf700 in ai_do_first_activities (pplayer=0x5c8d88)
     at ../../freeciv-patch/ai/aihand.c:426
         pplayer = (struct player *) 0x5c8d88
#31 0x0045e39b in ai_start_phase () at 
../../freeciv-patch/server/srv_main.c:452
         pplayer = (struct player *) 0x5c8d88
         i = 1
#32 0x0045e705 in begin_phase (is_new_phase=true) at 
../../freeciv-patch/server/srv_main.c:574
         is_new_phase = true
         line = 573
#33 0x004608ac in main_loop () at ../../freeciv-patch/server/srv_main.c:1578
         eot_timer = (struct timer *) 0x103379b8
         save_counter = 3
         is_new_turn = true
#34 0x00460ee4 in srv_loop () at ../../freeciv-patch/server/srv_main.c:1884
         pplayer = (struct player *) 0x3
         PI_p_itr = 7
         PI_p_itr = 7
         PI_p_itr = 7
         PI_p_itr = 7
         PI_p_itr = 7
#35 0x00460b96 in srv_main () at ../../freeciv-patch/server/srv_main.c:1701
         tthis = (const struct conn_list *) 0x3
#36 0x004014d1 in main (argc=7, argv=0x10101808) at 
../../freeciv-patch/server/civserver.c:242
         argc = 7
         argv = (char **) 0x10101808
         inx = 7
         showhelp = false
         showvers = false
         option = 0x5185d2 "freeciv_server"



  - ML





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13165) path finding assert, Marko Lindqvist <=