Follow-up Comment #1, bug #22230 (project freeciv):

Here are two backtraces showing crashes in pf_normal_map_move_cost, generated
from core dumps from Freeciv-web running SVN revision 25224.

#0  pf_normal_map_iterate_until (ptile=0x0, pfnm=0x25bf2c0) at
path_finding.c:684
        pfm = 0x25bf2c0
        node = <optimized out>
#1  pf_normal_map_move_cost (pfm=0x25bf2c0, ptile=0x0) at path_finding.c:722
        pfnm = 0x25bf2c0
#2  0x00000000004e105b in find_nearest_safe_city (punit=punit@entry=0x2561ed0)
at aiunit.c:1560
        _MY_pf_map_ = 0x25bf2c0
        ptile = 0x0
        move_cost = <optimized out>
        parameter = {start_tile = 0x284a9b8, moves_left_initially = 3,
fuel_left_initially = 1, move_rate = 3, fuel = 1,
          owner = 0x40a5e60, uclass = 0xa3c280 <unit_classes+160>, unit_flags
= {vec = "\000\000\000\000\000\000\000"},
          omniscience = true, get_MC = 0x576c70 <normal_move>, unknown_MC =
18, get_TB = 0x0, get_EC = 0x0,
          can_invade_tile = 0x546c70 <player_can_invade_tile>, get_zoc =
0x5567b0 <is_my_zoc>, is_pos_dangerous = 0x0,
          get_moves_left_req = 0x0, get_costs = 0x0, data = 0x0}
        pfm = 0x25bf2c0
        pplayer = 0x40a5e60
        pcity = <optimized out>
        best_city = 0x0
        best = 1000000000
        cur = <optimized out>
#3  0x00000000004e142e in dai_military_attack (ait=ait@entry=0x8c2980
<ai_types>, pplayer=pplayer@entry=0x40a5e60,
    punit=punit@entry=0x2561ed0) at aiunit.c:1765
        dest_tile = 0x284a9b8
        id = 287
        ct = <optimized out>
        pcity = 0x0
        __FUNCTION__ = "dai_military_attack"
#4  0x00000000004e25e2 in dai_manage_military (ait=ait@entry=0x8c2980
<ai_types>, pplayer=pplayer@entry=0x40a5e60,
    punit=punit@entry=0x2561ed0) at aiunit.c:2348
        id = 287
        __FUNCTION__ = "dai_manage_military"
#5  0x00000000004e39af in dai_manage_unit (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x40a5e60,
    punit=punit@entry=0x2561ed0) at aiunit.c:2546
        bodyguard = <optimized out>
        is_ferry = <optimized out>
        __FUNCTION__ = "dai_manage_unit"
#6  0x00000000004e577c in dai_manage_units (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x40a5e60)
    at aiunit.c:2677
        punit = 0x2561ed0
        punit_numbers = 0x7fff34a50df8
        punit_index = <optimized out>
#7  0x00000000004d2d47 in dai_do_first_activities (ait=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x40a5e60)
    at aihand.c:736
No locals.
#8  0x00000000004a3c13 in cai_do_first_activities (pplayer=0x40a5e60) at
classicai.c:389
No locals.
#9  0x000000000040bc22 in ai_start_phase () at srv_main.c:816
        _plr_ = 0x40a5e60
        MY_i = 79
        pplayer = 0x40a5e60
#10 begin_phase (is_new_phase=true) at srv_main.c:979
No locals.
#11 srv_running () at srv_main.c:2367
        save_counter = 1
        i = <optimized out>
        is_new_turn = true
        skip_mapimg = false
        eot_timer = <optimized out>
        need_send_pending_events = false
#12 srv_main () at srv_main.c:2901
        __FUNCTION__ = "srv_main"
#13 0x00000000004055b1 in main (argc=17, argv=0x7fff34a51128) at
civserver.c:456
        inx = 17
        showhelp = <optimized out>
        showvers = <optimized out>
        option = <optimized out>
        __FUNCTION__ = "main"













#0  pf_normal_map_iterate_until (ptile=0x0, pfnm=0x3037ed0) at
path_finding.c:684
        pfm = 0x3037ed0
        node = <optimized out>
#1  pf_normal_map_move_cost (pfm=0x3037ed0, ptile=0x0) at path_finding.c:722
        pfnm = 0x3037ed0
#2  0x00000000004ded73 in look_for_charge (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x1daf6f0,
    punit=punit@entry=0x2d8ee00, aunit=aunit@entry=0x7fff26e55918,
acity=acity@entry=0x7fff26e55910) at aiunit.c:709
        _MY_pf_map_ = 0x3037ed0
        ptile = 0x0
        move_cost = <optimized out>
        parameter = {start_tile = 0x262cab0, moves_left_initially = 3,
fuel_left_initially = 1, move_rate = 3, fuel = 1,
          owner = 0x1daf6f0, uclass = 0xa3c280 <unit_classes+160>, unit_flags
= {vec = "\000\000\000\000\000\000\000"},
          omniscience = true, get_MC = 0x576c70 <normal_move>, unknown_MC =
18, get_TB = 0x0, get_EC = 0x0,
          can_invade_tile = 0x546c70 <player_can_invade_tile>, get_zoc =
0x5567b0 <is_my_zoc>, is_pos_dangerous = 0x0,
          get_moves_left_req = 0x0, get_costs = 0x0, data = 0x5}
        pfm = 0x3037ed0
        pcity = <optimized out>
        best_data = 0x0
        toughness = 100
        def = <optimized out>
        best_def = -1
        max_move_cost = 143313408
        __FUNCTION__ = "look_for_charge"
#3  0x00000000004e2908 in dai_military_findjob (punit=0x2d8ee00,
pplayer=0x1daf6f0, ait=0x8c2980 <ai_types>)
    at aiunit.c:866
        acity = 0x0
        aunit = 0x0
        punittype = 0xa3e6f0 <unit_types+4368>
#4  dai_manage_military (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x1daf6f0, punit=punit@entry=0x2d8ee00)
    at aiunit.c:2333
        id = 560
        __FUNCTION__ = "dai_manage_military"
#5  0x00000000004e39af in dai_manage_unit (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x1daf6f0,
    punit=punit@entry=0x2d8ee00) at aiunit.c:2546
        bodyguard = <optimized out>
        is_ferry = <optimized out>
#6  0x00000000004e577c in dai_manage_units (ait=ait@entry=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x1daf6f0)
    at aiunit.c:2677
        punit = 0x2d8ee00
        punit_numbers = 0x7fff26e55b48
        punit_index = <optimized out>
#7  0x00000000004d2d47 in dai_do_first_activities (ait=0x8c2980 <ai_types>,
pplayer=pplayer@entry=0x1daf6f0)
    at aihand.c:736
No locals.
#8  0x00000000004a3c13 in cai_do_first_activities (pplayer=0x1daf6f0) at
classicai.c:389
No locals.
#9  0x000000000040bc22 in ai_start_phase () at srv_main.c:816
        _plr_ = 0x1daf6f0
        MY_i = 102
        pplayer = 0x1daf6f0
#10 begin_phase (is_new_phase=true) at srv_main.c:979
No locals.
#11 srv_running () at srv_main.c:2367
        save_counter = 1
        i = <optimized out>
        is_new_turn = true
        skip_mapimg = false
        eot_timer = <optimized out>
        need_send_pending_events = false
#12 srv_main () at srv_main.c:2901
        __FUNCTION__ = "srv_main"
#13 0x00000000004055b1 in main (argc=17, argv=0x7fff26e55f28) at
civserver.c:456
        inx = 17
        showhelp = <optimized out>
        showvers = <optimized out>
        option = <optimized out>
        __FUNCTION__ = "main"


    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to