URL:
<http://gna.org/bugs/?15323>
Summary: server crash in tile_city() at common/tile.c:76
Project: Freeciv
Submitted by: anbe
Submitted on: Tuesday 02/09/2010 at 21:54
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 2.2.0-beta3
Discussion Lock: Any
Operating System: GNU/Linux
Planned Release:
_______________________________________________________
Details:
Hi, this crash occurred in 2.2.0 beta3 and could be reproduced in SVN S2_2
r16779. It happens after end-of-turn was activated and the AI players do
their turns. Sometimes I can hear the sound of a battle, immediately after
this the server crashes and client connection closes. A savegame (from beta3)
is attached.
=== stdout/stderr from server process ===
...
Starting game.
Player ... now has AI skill level 'Easy'.
>
1: sending packet type=PACKET_CHAT_MSG(18) len=59
Segmentation fault (core dumped)
=== last 10 lines of the server log ===
3: sending packet type=PACKET_TILE_INFO(14) len=18
3: sending packet type=PACKET_UNIT_INFO(49) len=11
3: sending packet type=PACKET_UNIT_INFO(49) len=9
3: sending packet type=PACKET_TILE_INFO(14) len=18
3: sending packet type=PACKET_UNIT_INFO(49) len=11
3: sending packet type=PACKET_UNIT_INFO(49) len=9
3: sending packet type=PACKET_CITY_INFO(21) len=15
3: last message repeated 2 times
3: last message repeated 1 time (total 3 repeats)
3: sending packet type=PACKET_PLAYER_INFO(39) len=9
=== gdb backtrace ===
(gdb) bt full
#0 tile_city (ptile=0x1d) at ../../common/tile.c:76
pcity = <value optimized out>
#1 0x000000000042a1ed in aiferry_find_interested_city (pplayer=<value
optimized out>, punit=0x224faa0) at ../../ai/aiferry.c:865
pcity = 0x1
pos = {tile = 0x1d, turn = 551282010, moves_left = 32643, fuel_left =
56, total_MC = 0, total_EC = 11, dir_to_next_pos = DIR8_NORTHWEST,
dir_to_here = DIR8_NORTHWEST}
pfm = 0x2252f70
parameter = {start_tile = 0x20f2730, moves_left_initially = 9,
fuel_left_initially = 1, move_rate = 9, fuel = 1, owner = 0x8a8a60, uclass =
0x8a0ad0,
unit_flags = {vec = "\000\000 \000\b\000\000"}, omniscience =
false, turn_mode = TM_WORST_TIME, get_MC = 0x4f5850 <seamove_no_bombard>,
unknown_MC = 6, get_TB = 0x4f50a0 <no_fights_or_unknown>, get_EC =
0, can_invade_tile = 0x4da4c0 <player_can_invade_tile>, get_zoc = 0,
is_pos_dangerous = 0, get_moves_left_req = 0, get_costs = 0, data =
0x206c3a0}
turns_horizon = 1000000000
needed = false
#2 ai_manage_ferryboat (pplayer=<value optimized out>, punit=0x224faa0) at
../../ai/aiferry.c:1077
pcity = <value optimized out>
sanity = <value optimized out>
#3 0x0000000000422b6c in ai_manage_unit (pplayer=0x8a8a60, punit=0x224faa0)
at ../../ai/aiunit.c:2256
bodyguard = <value optimized out>
is_ferry = true
#4 0x00000000004230c1 in ai_manage_units (pplayer=<value optimized out>) at
../../ai/aiunit.c:2381
punit = 0x2252f70
punit_index = 0
punit_size = 7
#5 0x000000000047a249 in ai_do_first_activities (pplayer=0x8a8a60) at
../../ai/aihand.c:436
No locals.
#6 0x000000000040a0be in ai_start_phase () at ../../server/srv_main.c:648
MY_i = 0
pplayer = 0x8a8a60
#7 begin_phase () at ../../server/srv_main.c:801
No locals.
#8 srv_running () at ../../server/srv_main.c:2049
eot_timer = 0x1b4c0a0
save_counter = 1
is_new_turn = <value optimized out>
need_send_pending_events = false
#9 srv_main () at ../../server/srv_main.c:2461
No locals.
#10 0x0000000000404085 in main (argc=<value optimized out>,
argv=0x7fff292407a8) at ../../server/civserver.c:359
inx = 11
showhelp = false
showvers = false
option = 0x0
Andreas
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tuesday 02/09/2010 at 21:54 Name: fc22test-T030-Y2500BCm.sav.gz Size:
75kB By: anbe
<http://gna.org/bugs/download.php?file_id=8034>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15323>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev