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

> [EMAIL PROTECTED] - Mo 13. Nov 2006, 13:18:41]:
> 
> Hello
> 
> http://forum.freeciv.org/viewtopic.php?t=2226
> 
> Here is a saved game - A turn before crash - Everytime I clicked the 
> turn done button, the game crashed.
> 
> hope you'll solve this problem.
> 
> Many thanks
> 
> Nick

The debug log says:

4: Ishpuinis's Echmiadzin(193,129) [s11 d1 u0 g0] m_a_c_d urgency=0
danger=100 num_def=0 our_def=0
4: Ishpuinis's Echmiadzin(193,129) [s11 d1 u0 g0] Ooops - we cannot
build any defender!

And then the server crashes in unit_build_shield_cost(), because
"best_unit_type" is still NULL.

Full backtrace:

#0  unit_build_shield_cost (punittype=0x0) at unittype.c:160
No locals.
#1  0x08109fc1 in military_advisor_choose_build (pplayer=0x8280240,
pcity=0x85bce18, choice=0x85bd750) at advmilitary.c:754
        tech_req = 79
        punittype = (struct unit_type *) 0x821a3e0
        ai = (struct ai_data *) 0x824482c
        punittype = <value optimized out>
        our_def = <value optimized out>
        urgency = 0
        ptile = <value optimized out>
        virtualunit = <value optimized out>
#2  0x0811175e in ai_manage_cities (pplayer=0x8280240) at aicity.c:1302
        myiter = (struct genlist_link *) 0x85befe8
#3  0x08116756 in ai_do_last_activities (pplayer=0x8280240) at aihand.c:449
        myiter = <value optimized out>
        luxrate = 0
        scirate = 60
        cmp = {minimal_surplus = {0, 0, 0, -1000000000, 0, 0},
require_happy = true, allow_disorder = false,
  allow_specialists = true, factor = {20, 1, 1, 1, 1, 1}, happy_factor = 1}
        cmr = {found_a_valid = true, disorder = false, happy = true,
surplus = {0, 6, 28, 12, 34, 0},
  worker_positions_used = {{255, false, true, false, false}, {false,
true, true, true, false}, {false, true, true, true,
      true}, {false, false, true, false, false}, {false, true, false,
true, 255}}, specialists = {0, 0, 0, -1, 1000000000,
    -1, 1000000000, -1, 1000000000, -1, 1000000000, -1, 1000000000, -1,
1000000000, -1, 1000000000, -1, 1000000000, -1}}
#4  0x08052757 in main_loop () at srv_main.c:706
        pplayer = (struct player *) 0x8280240
        i = 7
        eot_timer = (struct timer *) 0x84ae058
        save_counter = 1
        is_new_turn = false
        __PRETTY_FUNCTION__ = "main_loop"
#5  0x08052d60 in srv_main () at srv_main.c:1951
No locals.
#6  0x0804a751 in main (argc=1, argv=0xbfe04e54) at civserver.c:256
        inx = 1
        showhelp = false
        showvers = 191
        option = <value optimized out>


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

Reply via email to