Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2000:
[Freeciv-Dev] Re: segmentation fault
Home

[Freeciv-Dev] Re: segmentation fault

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "'Freeciv-Dev (E-Mail)" <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: segmentation fault
From: Patrick Schmid <patrick@xxxxxxxxxxxx>
Date: Fri, 4 Feb 2000 02:21:09 +0100

I use the GTK client.
My OS is SuSe Linux 6.1.
And the city hasn't been captured by an AI, it was all my creation.

Patrick Schmid
---------------------------
Microsoft Certified Professional
Email: patrick@xxxxxxxxxxxx
Web: http://www.patrick-s.de
PGP DSS4096 (0x6574B3BC): BD18 A298 94D9 DC00 B0BB  716B 78C4 3488 6574 B3BC

> -----Original Message-----
> From: Corin Anderson [mailto:corin@xxxxxxxxxx]
> Sent: Thursday, February 03, 2000 11:11 PM
> To: Jeff Mallatt
> Cc: freeciv-dev@xxxxxxxxxxx
> Subject: [Freeciv-Dev] Re: segmentation fault
> 
> 
> On Thu, 3 Feb 2000, Jeff Mallatt wrote:
> 
> > Hum.  I just noticed that init_worklist() only initializes the first
> > element of the worklist array to WORKLIST_END.  Shouldn't 
> it initialize
> > *all* elements of the worklist array to WORKLIST_END?
> 
> Theoretically, only the first entry _needs_ to be 
> initialized.  All other
> worklist operations should operate between element 0 and the 
> element whose
> value is WORKLIST_END.  We could init all entries to 
> WORKLIST_END, but I
> suspect that doing so would mask the real culprit to this bug.
> 
> I'll take a look at the save file and code, too, later today.  In the
> meantime, here's a thought:  are any of the cities whose worklists are
> corrupted captured from an AI?  Although I /think/ the codepath for
> creating a city (and its worklist) is the same for both 
> players and AIs, I
> couldn't say so with certainty until I can glance through the 
> code again.
> 
> Corey
> 
> 

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