Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2005:
[Freeciv-Dev] (PR#13536) Crash in the first turn of a game
Home

[Freeciv-Dev] (PR#13536) Crash in the first turn of a game

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13536) Crash in the first turn of a game
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Mon, 25 Jul 2005 04:19:27 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13536 >

get_improvement_name is called on B_LAST in the ai code.
To reproduce it press "turn done"
Program received signal SIGSEGV, Segmentation fault.
0x080cdd85 in get_improvement_name (id=199) at improvement.c:147
147       return get_improvement_type(id)->name;
(gdb) bt
#0  0x080cdd85 in get_improvement_name (id=199) at improvement.c:147
#1  0x0813cd25 in copy_if_better_choice (cur=0xbfdc9c60, best=0xbfdc9cd0)
    at aitools.c:1115
#2  0x08145ef7 in domestic_advisor_choose_build (pplayer=0x82b9bc0,
    pcity=0x848d0d0, choice=0xbfdc9cd0) at advdomestic.c:233
#3  0x0812cdf9 in ai_city_choose_build (pplayer=0x82b9bc0, pcity=0x848d0d0)
    at aicity.c:931
#4  0x0812ddcb in ai_manage_cities (pplayer=0x82b9bc0) at aicity.c:1258
#5  0x08134c15 in ai_do_last_activities (pplayer=0x82b9bc0) at aihand.c:451
#6  0x08051686 in end_phase () at srv_main.c:627
#7  0x080534b5 in main_loop () at srv_main.c:1634
#8  0x08053bfa in srv_loop () at srv_main.c:1885
#9  0x08053664 in srv_main () at srv_main.c:1712
#10 0x0804b021 in main (argc=1, argv=0xbfdc9eb4) at civserver.c:242
(gdb)
--
mateusz



[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13536) Crash in the first turn of a game, Mateusz Stefek <=