Complete.Org: Mailing Lists: Archives: freeciv-ai: December 2002:
[freeciv-ai] Re: [Freeciv-Dev] (PR#2593) AI segfault

[freeciv-ai] Re: [Freeciv-Dev] (PR#2593) AI segfault

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: [Freeciv-Dev] (PR#2593) AI segfault
From: "Mike Kaufman via RT" <rt@xxxxxxxxxxxxxx>
Date: Wed, 18 Dec 2002 21:03:19 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, Dec 18, 2002 at 11:12:04AM -0800, Jason Short via RT wrote:
> On Wed, 2002-12-18 at 10:44, Per I. Mathisen wrote:
> > On Mon, 16 Dec 2002, Jason Short via RT wrote:
> > > I ran an autogame with aifill 30, xsize 200, ysize 100.The game
> > > crashed in year -950.

not using this savegame, but another, I've run into the same problem. Some
quick testing reveals that in ai_manage_diplomat, game.num_impr_types
becomes an ungodly big number, hence the core when we attempt to iterate
waaay past the improvements[] array. Why this happens? No idea, but running
when running it through the debugger, gdb swears that game.num_impr_types
is 68 when a printf and an assert tell me otherwise...

Also game.num_impr_types seems fine in the calling ai_manage_unit...


[Prev in Thread] Current Thread [Next in Thread]