URL:
<http://gna.org/bugs/?22216>
Summary: trunk server crashes in execute_orders()
Project: Freeciv
Submitted by: pepeto
Submitted on: mer. 18 juin 2014 11:44:32 CEST
Category: None
Severity: 5 - Blocker
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: trunk r25193
Discussion Lock: Any
Operating System: None
Planned Release: 2.6.0
_______________________________________________________
Details:
To reproduce:
1) load file #20920 (for bug #22136) ;
2) press turn done.
It appear the extra of the order is NULL. I suppose this is problem when
loading the savegame because I didn't encountered this segmentation fault
playing normally.
(gdb) bt full
#0 tile_has_extra (ptile=0x11215f8, pextra=pextra@entry=0x0) at
../../../common/tile.c:830
__FUNCTION__ = "tile_has_extra"
#1 0x0000000000451b52 in execute_orders (punit=punit@entry=0x1229fb0)
at ../../../server/unittools.c:3726
pextra = 0x0
order = <optimized out>
dst_tile = <optimized out>
res = <optimized out>
last_order = <optimized out>
unitid = 108
pplayer = 0x29b90a0
moves_made = 1
activity = <optimized out>
__FUNCTION__ = "execute_orders"
#2 0x0000000000458e9e in update_unit_activity (punit=<optimized out>)
at ../../../server/unittools.c:943
i = <optimized out>
tile_changing_actions = {ACTIVITY_PILLAGE, ACTIVITY_GEN_ROAD,
ACTIVITY_IRRIGATE,
ACTIVITY_MINE, ACTIVITY_BASE, ACTIVITY_TRANSFORM,
ACTIVITY_POLLUTION,
ACTIVITY_FALLOUT, ACTIVITY_LAST}
id = <optimized out>
unit_activity_done = <optimized out>
activity = <optimized out>
ptile = <optimized out>
check_adjacent_units = <optimized out>
#3 update_unit_activities (pplayer=pplayer@entry=0x29b90a0)
at ../../../server/unittools.c:579
punit = <optimized out>
punit_numbers = 0x7fffffffd970
punit_index = <optimized out>
__FUNCTION__ = "update_unit_activities"
#4 0x0000000000436379 in begin_phase (is_new_phase=is_new_phase@entry=true)
at ../../../server/srv_main.c:933
MY_i = 66
pplayer = 0x29b90a0
__FUNCTION__ = "begin_phase"
#5 0x000000000043a5d5 in srv_running () at ../../../server/srv_main.c:2351
save_counter = 1
i = <optimized out>
is_new_turn = true
skip_mapimg = false
eot_timer = <optimized out>
need_send_pending_events = false
#6 srv_main () at ../../../server/srv_main.c:2885
__FUNCTION__ = "srv_main"
#7 0x00000000004325ce in main (argc=5, argv=0x7fffffffdcc8)
at ../../../server/civserver.c:454
--
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22216>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev