[Freeciv-Dev] (PR#11022) SEGFAULT: citymap_is_reserved (ptile=0x0)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=11022 >
Stable branch, attached autogame.
(gdb) print game.year
$1 = 720
(gdb) bt full
#0 citymap_is_reserved (ptile=0x0) at
../../../freeciv-patch/common/aicore/citymap.c:162
ptile = (struct tile *) 0x0
#1 0x004ddcba in citymap_reserve_tile (ptile=0x0, id=829)
at ../../../freeciv-patch/common/aicore/citymap.c:140
ptile = (struct tile *) 0x0
id = 829
#2 0x00475576 in auto_settler_findwork (pplayer=0x5ceeb8,
punit=0x103cbbc0, recursion=0)
at ../../freeciv-patch/server/settlers.c:1147
pplayer = (struct player *) 0x5ceeb8
punit = (struct unit *) 0x33d
result = {tile = 0x10227118, total = 20001, result = 13597,
corruption = 0, waste = 0,
overseas = false, virt_boat = false, other_tile = 0x0, o_x = -1, o_y
= -1, city_center = 1,
best_other = 0, remaining = 0, citymap = {{{food = 6090424, shield =
30, trade = 2288216,
reserved = 4224244}, {food = 0, shield = 0, trade = 0, reserved
= -746}, {food = 0,
shield = 0, trade = 0, reserved = -290}, {food = 0, shield = 0,
trade = 0, reserved = -666},
{food = 1, shield = 0, trade = 30, reserved = 270386736}}, {{food
= 0, shield = 0, trade = 0,
reserved = -334}, {food = 0, shield = 0, trade = 0, reserved =
-254}, {food = 0, shield = 0,
trade = 0, reserved = -254}, {food = 0, shield = 0, trade = 0,
reserved = -665}, {food = 0,
shield = 0, trade = 0, reserved = -197}}, {{food = 0, shield =
0, trade = 0,
reserved = -746}, {food = 0, shield = 0, trade = 0, reserved =
-475}, {food = 3, shield = 0,
trade = 0, reserved = 8}, {food = 0, shield = 0, trade = 0,
reserved = -704}, {food = 0,
shield = 0, trade = 0, reserved = -705}}, {{food = 0, shield =
0, trade = 0,
reserved = -334}, {food = 0, shield = 0, trade = 0, reserved =
-475}, {food = 0, shield = 0,
trade = 0, reserved = -243}, {food = 0, shield = 0, trade = 0,
reserved = -768}, {food = 0,
shield = 0, trade = 0, reserved = -816}}, {{food = 0, shield =
269492744, trade = 1,
reserved = 1057}, {food = 0, shield = 0, trade = 0, reserved =
-455}, {food = 0, shield = 0,
trade = 0, reserved = -455}, {food = 0, shield = 0, trade = 0,
reserved = -604}, {
food = 272415680, shield = 18, trade = 2288616, reserved =
5105482}}}}
best_impr = 130
best_act = ACTIVITY_ROAD
best_tile = (struct tile *) 0x1022ee68
ai = (struct ai_data *) 0x58db60
#3 0x00475f13 in auto_settlers_player (pplayer=0x5ceeb8)
at ../../freeciv-patch/server/settlers.c:1313
myiter = (struct genlist_link *) 0x101e24b8
punit = (struct unit *) 0x103cbbc0
pplayer = (struct player *) 0x5ceeb8
t = (struct timer *) 0x1011dd28
#4 0x0045f003 in end_phase () at ../../freeciv-patch/server/srv_main.c:578
line = 6090424
#5 0x00460d62 in main_loop () at ../../freeciv-patch/server/srv_main.c:1572
eot_timer = (struct timer *) 0x101d5f48
save_counter = 137
is_new_turn = true
#6 0x00460f55 in srv_main () at ../../freeciv-patch/server/srv_main.c:1649
No locals.
#7 0x00401431 in main (argc=3, argv=0x101020f8) at
../../freeciv-patch/server/civserver.c:183
argc = 3
argv = (char **) 0x101020f8
inx = 3
showhelp = false
showvers = false
option = 0x0
- Caz
set timeout -1
create Caz
set aifill 9
set saveturns 0
set endyear 5000
set civstyle 1
set borders 0
set startunits c
rulesetdir civ1
set gameseed 1100476796
set mapseed 1826290715
start
- [Freeciv-Dev] (PR#11022) SEGFAULT: citymap_is_reserved (ptile=0x0),
Marko Lindqvist <=
|
|