Update of bug #23614 (project freeciv):
Depends on: = bugs #23786
___
Reply to this item at:
http://gna.org/bugs/?23614
___
Message sent
Update of bug #23614 (project freeciv):
Planned Release: = 3.0.0
___
Follow-up Comment #5:
Bug #23786 fixes the get_trade_illness() crash without adding
city_illness_calc() to
Follow-up Comment #4, bug #23614 (project freeciv):
To ensure correct cached illness values on the server, city_illness_calc()
could be called from city_refresh_from_main_map() or city_refresh(). Those get
called at a suitably late time in the loading sequence.
I don't know how expensive it is;
Follow-up Comment #3, bug #23614 (project freeciv):
See also bug #23683.
___
Reply to this item at:
http://gna.org/bugs/?23614
___
Message sent via/by Gna!
http://gna.org/
URL:
http://gna.org/bugs/?23614
Summary: Freeciv segfault on load savegame
Project: Freeciv
Submitted by: lachu
Submitted on: Mon 25 May 2015 03:20:03 PM UTC
Category: None
Severity: 3 - Normal
Follow-up Comment #1, bug #23614 (project freeciv):
I've seen this too.
I'm guessing it's due to sg_load_player_city() calling city_illness_calc()
calling get_trade_illness() before all cities have been loaded, and an unlucky
forward-referencing trade route. (Certainly trade_city is NULL in my
Follow-up Comment #2, bug #23614 (project freeciv):
If I bodge around that, I get another crash a bit later:
#0 city_tile (pcity=pcity@entry=0x0) at ../../common/city.c:1074
#1 0x006458f5 in cities_trade_route_type (
pcity1=pcity1@entry=0x27389d0, pcity2=pcity2@entry=0x0)
at