URL:
<http://gna.org/bugs/?15468>
Summary: map_is_known_and_seen segfault
Project: Freeciv
Submitted by: cazfi
Submitted on: Wednesday 02/24/2010 at 17:53
Category: general
Severity: 3 - Normal
Priority: 1 - Later
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 2.2.0
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
2.2.0 server using ancients ruleset. In case more information is needed, ID
for this game: Beta server game #796
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000489b68 in map_is_known_and_seen (ptile=0x197d1c0,
pplayer=0x982430,
vlayer=V_MAIN) at server/maphand.c:808
808 assert(!game.info.fogofwar
(gdb) bt full
#0 0x0000000000489b68 in map_is_known_and_seen (ptile=0x197d1c0,
pplayer=0x982430,
vlayer=V_MAIN) at server/maphand.c:808
__PRETTY_FUNCTION__ = "map_is_known_and_seen"
#1 0x0000000000488549 in send_tile_info (dest=0x17a4f30, ptile=0x197d1c0,
send_unknown=false, force=false)
at server/maphand.c:407
pplayer = 0x982430
myiter = 0x18701e0
pconn = 0x8d9c00
info = {x = 0, y = 70, continent = 0, known = TILE_UNKNOWN, owner =
0,
worked = 0, terrain = 9282296, resource = 0, special = {false,
false, false,
false, false, false, false, false, false, false, 119}, bases = {
vec = "\...@y", <incomplete sequence \374>},
spec_sprite =
"\000\260\304ϯ\377\177\000\000\000\000\000\000\000\000\000\000\320\304ϯ\377\177\000\000MFO\000\000\000",
nation_start = -1}
pnation = 0x0
owner = 0x0
__PRETTY_FUNCTION__ = "send_tile_info"
#2 0x0000000000488305 in send_all_known_tiles (dest=0x17a4f30, force=false)
at server/maphand.c:339
ptile = 0x197d1c0
ptile_index = 0
tiles_sent = 1
#3 0x000000000042f329 in send_all_info (dest=0x17a4f30, force=false)
at server/srv_main.c:413
No locals.
#4 0x0000000000434546 in srv_ready ()
at server/srv_main.c:2385
__PRETTY_FUNCTION__ = "srv_ready"
#5 0x000000000043480c in srv_main ()
at server/srv_main.c:2462
No locals.
#6 0x000000000042b5a1 in main (argc=17, argv=0x7fffafcfc718)
at server/civserver.c:362
inx = 17
showhelp = false
showvers = false
option = 0x17ac1d0 "\340\317\352\001"
(gdb) p game.info.fogofwar
$1 = true
It seems things are still getting initialized, as there is no government or
team for player:
(gdb) p *pplayer
$3 = {used = false, name = "Caesar", '\000' <repeats 25 times>,
username = "wendy\000gned\000as", '\000' <repeats 18 times>,
ranked_username = "Unassigned", '\000' <repeats 21 times>, user_turns = 0,
is_male = true, government = 0x0, target_government = 0x0, nation =
0x1834e60,
team = 0x0, is_ready = true, phase_done = false, nturns_idle = 0, is_alive
= true,
is_dying = false, is_winner = false, surrendered = false,
revolution_finishes = -1,
capital = false, real_embassy = {vec = "\000\000\000"}, diplstates = {{
type = DS_NO_CONTACT, max_state = DS_ARMISTICE, first_contact_turn = 0,
turns_left = 0, has_reason_to_cancel = 0,
contact_turns_left = 0} <repeats 32 times>}, city_style = 1, cities =
0x17a9b50,
units = 0x17a9b70, score = {happy = 0, content = 0, unhappy = 0, angry = 0,
specialists = {0 <repeats 20 times>}, wonders = 0, techs = 0, techout =
0,
landarea = 0, settledarea = 0, population = 0, cities = 0, units = 0,
pollution = 0, literacy = 0, bnp = 0, mfg = 0, spaceship = 0, game = 0},
economic = {gold = 0, tax = 0, science = 100, luxury = 0}, bulbs_last_turn
= 0,
spaceship = {structurals = 0, components = 0, modules = 0, structure = {
false <repeats 32 times>}, fuel = 0, propulsion = 0, habitation = 0,
life_support = 0, solar_panels = 0, state = SSHIP_NONE, launch_year =
9999,
population = 0, mass = 0, support_rate = 0, energy_rate = 0, success_rate
= 0,
travel_time = 0}, ai_data = {control = false, prev_gold = 0, maxbuycost =
0,
est_upkeep = 0, tech_want = {0 <repeats 201 times>}, handicaps = {vec =
"\000"},
skill_level = 0, fuzzy = 0, expand = 100, science_cost = 100, warmth = 0,
frost = 0, barbarian_type = NOT_A_BARBARIAN, love = {1 <repeats 32
times>}},
ai = 0x0, was_created = false, is_connected = true, current_conn = 0x0,
connections = 0x17a9b90, private_map = 0x0, gives_shared_vision = 0,
really_gives_vision = 0, wonders = {0 <repeats 200 times>}, attribute_block
= {
data = 0x0, length = 0}, attribute_block_buffer = {data = 0x0, length =
0},
debug = {vec = ""}}
(gdb) p game.info.turn
$4 = 0
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15468>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev