Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2002:
[Freeciv-Dev] Re: core file on civserver, http://civserver.freec
Home

[Freeciv-Dev] Re: core file on civserver, http://civserver.freec

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers ML <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/81468
From: Davide Pagnin <nightmare@xxxxxxxxxx>
Date: 09 Nov 2002 01:02:53 +0100

On Sun, 2002-11-03 at 20:50, Per I. Mathisen wrote:
> On Sun, 3 Nov 2002 freeciv@xxxxxxxxxxxxxxxxxxxxx wrote:
> > # examining core.13788 in /home/freeciv/.freeciv/games/81468/. ...
> > # using $FREECIV_PATH 
> > /home/freeciv/.freeciv/code/installed/beta/freeciv-1.14.0-beta1+local-cvs+newdead/share/freeciv
> 
> > #30x42022ecb in __assert_fail () from /lib/i686/libc.so.6
> > #40x0808e571 in check_units () at sanitycheck.c:235
> > #50x0808e7e4 in sanity_check () at sanitycheck.c:285
> > #60x080506a9 in main_loop () at srv_main.c:1739
> 
> This is from beta1, and the check that failed is
> 
>       assert(pplayers_allied(city_owner(pcity), pplayer));
> 
> which means that one of pplayer's units is located in a city that pplayer
> isn't allied to (or that map_get_city() reports a city where there is
> none).
> 
> Any ideas how this could happen?

Yes, I found it. 

(There has been a second core, this afternoon and I started working on
this beta bug...)

The fault condition happen when:

Player A in allied with Player B
Player B unit is in Player A city Example
Player B is not allied with Player C
Player A meet Player C and agree to transfer city Example to Player C

Tomorrow I will work on a patch for this.

(I have uploaded a savegame in incoming, named notallied.sav.gz, you
need to connect as all three players, pagnin, pagnin2, pagnin3, and
transfer Indian city Kanpur (which contains isreali horseman) to
Lithuanian, after agreed on this transfer press turn done, and ...
BOOM!!!)
 
> 
>   - Per
> 
> 
> 





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