Follow-up Comment #6, bug #16775 (project freeciv):

I got the following core dump after applying the patch; savegame attached. It
crashs in turn 306.


#0  0x00007f5c8f5eb645 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x000000000058513f in fc_assert_fail (file=0x5f7f18 "combat.c",
function=0x5f801d "get_defender",
    line=662, assertion=<value optimized out>,
    message=0x5f7f90 "get_defender bug: %s %s vs %s %s (total %d units) on
\"%s\" at (%d, %d).")
    at log.c:476
        level = LOG_FATAL
#2  0x00000000004e8711 in get_defender (attacker=0x1f508e0, ptile=0x21da8f0)
at combat.c:651
        bestdef = (struct unit *) 0x0
        bestvalue = -99
        best_cost = 0
        rating_of_best = 0
        __FUNCTION__ = "get_defender"
#3  0x00000000004aeb59 in unit_move_handling (punit=0x1f508e0,
pdesttile=0x21da8f0, igzoc=false,
    move_diplomat_city=false) at unithand.c:1412
        victim = <value optimized out>
        pplayer = (struct player *) 0x1fb6df0
        pcity = (struct city *) 0x1fb0c30
        __FUNCTION__ = "unit_move_handling"
#4  0x000000000043190a in ai_unit_attack (punit=0x1f508e0, ptile=0x21da8f0)
at aitools.c:928
        bodyguard = (struct unit *) 0x0
        sanity = 249
        alive = <value optimized out>
        __FUNCTION__ = "ai_unit_attack"
#5  0x000000000043d9ba in adv_unit_execute_path (punit=0x1f508e0,
path=0x1f49620) at advgoto.c:100
        plr = <value optimized out>
        ptile = (struct tile *) 0x21da8f0
        id = 249
        is_ai = true
        i = 4
        __FUNCTION__ = "adv_unit_execute_path"
#6  0x000000000043dd50 in adv_follow_path (punit=0x1f508e0, path=0x1f49620,
ptile=<value optimized out>)
    at advgoto.c:57
        old_tile = (struct tile *) 0x21da8f0
        activity = ACTIVITY_IDLE
        alive = true
#7  0x0000000000428b90 in ai_amphibious_goto_constrained (ferry=0x1f508e0,
passenger=0x1f4b660,
    ptile=0x21da8f0, parameter=0x7fffd8945ed0) at aiferry.c:577
        alive = <value optimized out>
        pplayer = <value optimized out>
        pfm = (struct pf_map *) 0x1f6c980
        path = <value optimized out>
        __FUNCTION__ = "ai_amphibious_goto_constrained"
#8  0x0000000000428f80 in aiferry_goto_amphibious (ferry=0x1f508e0,
passenger=0x1f4b660, ptile=0x21da8f0)
    at aiferry.c:646
        parameter = {land = {start_tile = 0x21e08d8, moves_left_initially =
3, fuel_left_initially = 1,
    move_rate = 3, fuel = 1, owner = 0x1fb6df0, uclass = 0xa397e0, unit_flags
= {
      vec = "\000\b\000\000\000\001\000"}, omniscience = true, get_MC =
0x59d6a0 <normal_move_unit>,
    unknown_MC = 6, get_TB = 0x59cbd0 <no_intermediate_fights>, get_EC =
0x4320f0 <prefer_short_stacks>,
    can_invade_tile = 0x574940 <player_can_invade_tile>, get_zoc = 0x582180
<is_my_zoc>,
    is_pos_dangerous = 0, get_moves_left_req = 0, get_costs = 0, data =
0x7fffd8946090}, sea = {
    start_tile = 0x21e08d8, moves_left_initially = 15, fuel_left_initially =
1, move_rate = 15,
    fuel = 1, owner = 0x1fb6df0, uclass = 0xa398a0, unit_flags = {vec =
"\000\000\000\000\b\001\000"},
    omniscience = true, get_MC = 0x59d5c0 <sea_overlap_move>, unknown_MC =
6,
    get_TB = 0x59cc30 <no_fights>, get_EC = 0x4320f0 <prefer_short_stacks>,
    can_invade_tile = 0x574940 <player_can_invade_tile>, get_zoc = 0,
is_pos_dangerous = 0,
    get_moves_left_req = 0, get_costs = 0, data = 0x7fffd8946070}, land_scale
= 15, sea_scale = 3,
  combined = {start_tile = 0x21e08d8, moves_left_initially = 45,
fuel_left_initially = 1,
    move_rate = 45, fuel = 1, owner = 0x1fb6df0, uclass = 0xa398a0,
unit_flags = {
      vec = "\000\000\000\000\000\000\000"}, omniscience = true, get_MC =
0x59c220 <amphibious_move>,
    unknown_MC = 6, get_TB = 0x59c170 <amphibious_behaviour>, get_EC =
0x59c0b0 <amphibious_extra_cost>,
    can_invade_tile = 0x574940 <player_can_invade_tile>, get_zoc = 0,
    is_pos_dangerous = 0x59c010 <amphibious_is_pos_dangerous>,
get_moves_left_req = 0, get_costs = 0,
    data = 0x7fffd8945ed0}}
        land_risk_cost = {base_value = 60, fearfulness = 1820.4444444444443,
enemy_zoc_cost = 1310720}
        sea_risk_cost = {base_value = 50, fearfulness = 364.0888888888889,
enemy_zoc_cost = 1310720}
#9  0x000000000042ae1a in aiferry_gobyboat (pplayer=0x1fb6df0,
punit=0x1f4b660, dest_tile=0x21da8f0)
    at aiferry.c:771
        bodyguard = (struct unit *) 0x0
        ferryboat = (struct unit *) 0x1f508e0
        __FUNCTION__ = "aiferry_gobyboat"
#10 0x000000000043319b in ai_gothere (pplayer=0x1fb6df0, punit=0x1f4b660,
dest_tile=0x21da8f0)
    at aitools.c:285
        __FUNCTION__ = "ai_gothere"
#11 0x00000000004b7337 in ai_military_attack (pplayer=0x1fb6df0,
punit=0x1f4b660) at aiunit.c:1820
        dest_tile = (struct tile *) 0x21da8f0
        id = 7104
        ct = 10
        pcity = <value optimized out>
        start_tile = (struct tile *) 0x21e08d8
        __FUNCTION__ = "ai_military_attack"
#12 0x00000000004b8bb7 in ai_manage_military (pplayer=0x1fb6df0,
punit=0x1f4b660) at aiunit.c:2145
        id = 7104
        __FUNCTION__ = "ai_manage_military"
#13 0x00000000004badd7 in ai_manage_unit (pplayer=0x1fb6df0, punit=0x1f4b660)
at aiunit.c:2330
        bodyguard = (struct unit *) 0x0
        is_ferry = <value optimized out>
        __FUNCTION__ = "ai_manage_unit"
#14 0x00000000004295ef in ai_manage_ferryboat (pplayer=0x1fb6df0,
punit=0x1f508e0) at aiferry.c:1049
        boss = (struct unit *) 0x1f4b660
        ptile = <value optimized out>
        pcity = <value optimized out>
        sanity = 249
        unit_data = (struct unit_ai *) 0x1f509f0
        __FUNCTION__ = "ai_manage_ferryboat"
#15 0x00000000004baeca in ai_manage_unit (pplayer=0x1fb6df0, punit=0x1f508e0)
at aiunit.c:2310
        bodyguard = (struct unit *) 0x0
        is_ferry = true
        __FUNCTION__ = "ai_manage_unit"
#16 0x00000000004bb8dd in ai_manage_units (pplayer=0x1fb6df0) at
aiunit.c:2436
        punit = (struct unit *) 0x1f508e0
        punit_index = 185
        punit_size = 200
        __FUNCTION__ = "ai_manage_units"
#17 0x0000000000436209 in ai_do_first_activities (pplayer=0x1fb6df0) at
aihand.c:482
No locals.
#18 0x000000000040d97d in srv_main () at srv_main.c:684
        __FUNCTION__ = "srv_main"
#19 0x0000000000404819 in main (argc=4, argv=0x7fffd8946bd8) at
civserver.c:372
        inx = 4
        showhelp = false
        showvers = false
        option = <value optimized out>
        __FUNCTION__ = "main"


(file #10638)
    _______________________________________________________

Additional Item Attachment:

File name: freeciv-T0305-Y01618-auto.sav.bz2 Size:75 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to