Follow-up Comment #7, bug #20792 (project freeciv):

Back to the same_pos()/segfault, here's a backtrace (with 2.3.4):


#0  tile_index (ptile=0x0) at tile.c:37
No locals.
#1  0x000000000058aee7 in pf_fuel_map_iterate_until (ptile=<optimised out>, 
    pffm=<optimised out>) at path_finding.c:2517
        node = <optimised out>
#2  pf_fuel_map_path (pfm=0x37a7c90, ptile=0x0) at path_finding.c:2576
No locals.
#3  0x00000000004403bb in immediate_destination (punit=0x37b3bb0, 
    dest_tile=0x7fa280544bc8) at aitools.c:333
        parameter = {start_tile = 0x7fa2805b0230, moves_left_initially = 2, 
          fuel_left_initially = 30, move_rate = 2, fuel = 30, 
          owner = 0x3a527a0, uclass = 0xa27e90, unit_flags = {
            vec = "r 00 00 00 00 00 00"}, omniscience = true, 
          get_MC = 0x582890 <normal_move_unit>, unknown_MC = 6, get_TB = 0, 
          get_EC = 0, can_invade_tile = 0, get_zoc = 0, is_pos_dangerous = 0,

          get_moves_left_req = 0x581e50 <get_fuel_moves_left_req>, 
          get_costs = 0, data = 0x37b3bb0}
        pfm = <optimised out>
        path = <optimised out>
        i = <optimised out>
        __FUNCTION__ = "immediate_destination"
#4  0x0000000000440e5b in ai_unit_goto_constrained (punit=0x37b3bb0, 
    ptile=0x7fa280544bc8, parameter=0x7fff0359f410) at aitools.c:403
        alive = <optimised out>
        pfm = <optimised out>
        path = <optimised out>
        __FUNCTION__ = "ai_unit_goto_constrained"
#5  0x0000000000441441 in ai_unit_goto (punit=0x37b3bb0,
ptile=0x7fa280544bc8)
    at aitools.c:843
        parameter = {start_tile = 0x7fa2805b0230, moves_left_initially = 2, 
          fuel_left_initially = 30, move_rate = 2, fuel = 30, 
          owner = 0x3a527a0, uclass = 0xa27e90, unit_flags = {
            vec = "r 00 00 00 00 00 00"}, omniscience = true, 
          get_MC = 0x582890 <normal_move_unit>, unknown_MC = 6, 
          get_TB = 0x581b30 <no_fights>, 
          get_EC = 0x43ff80 <prefer_short_stacks>, can_invade_tile = 0, 
          get_zoc = 0, is_pos_dangerous = 0, 
          get_moves_left_req = 0x581e50 <get_fuel_moves_left_req>, 
          get_costs = 0, data = 0x7fff0359f3f0}
        risk_cost = {base_value = 50, fearfulness = 2730.6666666666665, 
          enemy_zoc_cost = 1310720}
        __FUNCTION__ = "ai_unit_goto"
#6  0x000000000042d98f in ai_caravan_goto (help_wonder=<optimised out>, 
    pcity=<optimised out>, punit=<optimised out>, pplayer=<optimised out>)
    at aiunit.c:1866
        alive = <optimised out>
#7  ai_manage_caravan (punit=<optimised out>, pplayer=<optimised out>)
    at aiunit.c:1945
        parameter = {horizon = 1000000000, discount = 0.94999999999999996, 
          consider_windfall = true, consider_trade = true, 
          consider_wonders = false, account_for_broken_routes = true, 
          allow_foreign_trade = false, ignore_transit_time = false, 
          convert_trade = false, callback = 0, callback_data =
0x7fff0359f650}
        result = {src = 0x377cbf0, dest = 0x377ecf0, arrival_time = 5, 
          value = 44.879294374999958, help_wonder = false}
#8  ai_manage_unit (pplayer=0x3a527a0, punit=0x37b3bb0) at aiunit.c:2244
        bodyguard = <optimised out>
        is_ferry = <optimised out>
        __FUNCTION__ = "ai_manage_unit"
#9  0x000000000042ecf5 in ai_manage_units (pplayer=<optimised out>)
    at aiunit.c:2381
        punit = 0x37b3bb0
        punit_index = 0
        punit_size = 24
#10 0x00000000004a8e49 in ai_do_first_activities (pplayer=0x3a527a0)
    at aihand.c:484
No locals.
#11 0x000000000040b0f8 in ai_start_phase () at srv_main.c:759
        MY_i = 122
        pplayer = 0x3a527a0
#12 begin_phase (is_new_phase=<optimised out>) at srv_main.c:910
No locals.
#13 srv_running () at srv_main.c:2134
        eot_timer = 0x2bfbdd0
        save_counter = 1
        is_new_turn = <optimised out>
        need_send_pending_events = false
        __FUNCTION__ = "srv_running"
#14 0x000000000040b8ed in srv_main () at srv_main.c:2580
        __FUNCTION__ = "srv_main"
#15 0x00000000004042d3 in main (argc=<optimised out>, argv=0x7fff0359f918)
    at civserver.c:377
        inx = 3
        showhelp = false
        showvers = false
        option = 0x255c1e0 ""
        __FUNCTION__ = "main"


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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