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

Got backtrace from another instance of the same assert failure:

(gdb) bt full
#0  0x00007f4b9862d4b5 in *__GI_raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        pid = <value optimized out>
        selftid = <value optimized out>
#1  0x00007f4b98630f50 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0x61df99, 
            sa_sigaction = 0x61df99}, sa_mask = {__val = {139962656946408, 
              140736837226352, 339, 140736837226592, 139962656094662, 
              206158430232, 140736837226608, 140736837226384,
139962656005544, 
              206158430256, 140736837226632, 40063232, 2285632, 
              733634176081289574, 8607631710057668718, 140736837234106}}, 
          sa_flags = -1737303661, sa_restorer = 0x61de50}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f4b98626481 in *__GI___assert_fail (
    assertion=0x61df99 "costwithout >= costwith", file=<value optimized out>,

    line=339, function=0x61dfeb "wonder_benefit") at assert.c:81
        buf = 0x2635100 "freeciv-server: common/aicore/caravan.c:339:
wonder_benefit: Assertion `costwithout >= costwith' failed.\n"
#3  0x000000000059650d in wonder_benefit (caravan=0x25a11d0, arrival_time=-1,

    dest=0x233ca00, param=0x7fffd9309470)
    at common/aicore/caravan.c:339
        costwithout = 12
        costwith = 16
        shields_at_arrival = -1
        __PRETTY_FUNCTION__ = "wonder_benefit"
#4  0x00000000005966dd in get_discounted_reward (caravan=0x25a11d0, 
    parameter=0x7fffd9309470, result=0x7fffd93091e0)
    at common/aicore/caravan.c:396
        trade = 0
        windfall = 0
        wonder = 1.607988422470021e-316
        src = 0x1e383b0
        dest = 0x233ca00
        arrival_time = -1
        discount = 0.94999999999999996
#5  0x0000000000596bad in cfbdw_callback (vdata=0x7fffd93093a0, 
    dest=0x233ca00, arrival_time=-1, moves_left=-1)
    at common/aicore/caravan.c:538
        data = 0x7fffd93093a0
        current = {src = 0x1e383b0, dest = 0x233ca00, arrival_time = -1, 
          value = 0, help_wonder = false}
#6  0x000000000059615b in caravan_search_from (caravan=0x25a11d0, 
    param=0x7fffd9309470, start_tile=0x1f0d660, turns_before=0, 
    moves_left_before=3, callback=0x596b4f <cfbdw_callback>, 
    callback_data=0x7fffd93093a0)
    at common/aicore/caravan.c:195
        pcity = 0x233ca00
        __pf_map = 0x2634c00
        pos = {tile = 0x1f09d00, turn = -1, moves_left = -1, fuel_left = -1,

          total_MC = 3, total_EC = 0, dir_to_next_pos = 4294967295, 
          dir_to_here = DIR8_NORTHEAST}
        pfm = 0x2634c00
        pfparam = {start_tile = 0x1f0d660, moves_left_initially = 3, 
          fuel_left_initially = 1, move_rate = 3, fuel = 1, owner = 0x9814f0,

          uclass = 0x979cb0, unit_flags = {
            vec = "\017\000\000\000\000\000\000"}, omniscience = true, 
          turn_mode = TM_CAPPED, get_MC = 0x597f43 <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 = 0, 
          get_costs = 0, data = 0xaa}
        end_time = 1000000000
#7  0x0000000000596cb6 in caravan_find_best_destination_withtransit (
    caravan=0x25a11d0, param=0x7fffd9309470, src=0x1e383b0, turns_before=0, 
    moves_left=3, result=0x7fffd9309440)
    at common/aicore/caravan.c:571
        start_tile = 0x1f0d660
        data = {param = 0x7fffd9309470, caravan = 0x25a11d0, 
          best = 0x7fffd9309440}
#8  0x0000000000596d36 in caravan_find_best_destination (caravan=0x25a11d0, 
    parameter=0x7fffd9309470, result=0x7fffd9309440)
    at common/aicore/caravan.c:590
        src = 0x1e383b0
#9  0x000000000045a9a4 in ai_manage_caravan (pplayer=0x9814f0,
punit=0x25a11d0)
    at ai/aiunit.c:1944
        parameter = {horizon = 1000000000, discount = 0.94999999999999996, 
          consider_windfall = true, consider_trade = true, 
          consider_wonders = true, account_for_broken_routes = true, 
          allow_foreign_trade = false, ignore_transit_time = false, 
          convert_trade = false, callback = 0, callback_data = 0xd93094b0}
        result = {src = 0x1e383b0, dest = 0x1e383b0, arrival_time = -1, 
          value = 0, help_wonder = false}
        __PRETTY_FUNCTION__ = "ai_manage_caravan"
#10 0x000000000045b718 in ai_manage_unit (pplayer=0x9814f0, punit=0x25a11d0)
    at ai/aiunit.c:2245
        bodyguard = 0x0
        is_ferry = false
        __PRETTY_FUNCTION__ = "ai_manage_unit"
#11 0x000000000045be07 in ai_manage_units (pplayer=0x9814f0)
    at ai/aiunit.c:2381
        punit = 0x25a11d0
        punit_numbers = 0x7fffd9309510
        punit_index = 0
        punit_size = 34
#12 0x00000000004e0557 in ai_do_first_activities (pplayer=0x9814f0)
    at ai/aihand.c:436
No locals.
#13 0x0000000000430110 in ai_start_phase ()
    at server/srv_main.c:649
        MY_i = 19
        pplayer = 0x9814f0
#14 0x000000000043084d in begin_phase (is_new_phase=true)
    at server/srv_main.c:802
No locals.
#15 0x00000000004337a1 in srv_running ()
    at server/srv_main.c:2028
        eot_timer = 0x1f5fc90
        save_counter = 9
        is_new_turn = true
        need_send_pending_events = false
        __PRETTY_FUNCTION__ = "srv_running"
#16 0x0000000000434645 in srv_main ()
    at server/srv_main.c:2441
No locals.
#17 0x000000000042b421 in main (argc=17, argv=0x7fffd9309838)
    at server/civserver.c:362
        inx = 17
        showhelp = false
        showvers = false
        option = 0x1c071c0 ""


I have core file available if more information is needed from it. (ID with
which i find it: beta server game #475)

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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