Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] (PR#6282) tech bug
Home

[Freeciv-Dev] (PR#6282) tech bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#6282) tech bug
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Sep 2003 20:10:48 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[per - Thu Sep 25 16:57:23 2003]:

> Assert: civserver: plrhand.c:274: found_new_tech: Forutsetningen
> (assertion)  «(tech_exists(tech_found) && get_invention(plr, tech_found)
> != TECH_KNOWN) || tech_found == (200-2)» feile.
> 
> To reproduce: Login as 'per', press turn done.
> 
> Backtrace:
> #2  0x42020f95 in __assert_fail () from /lib/tls/libc.so.6
> #3  0x0807d329 in found_new_tech (plr=0x81f1848, tech_found=23,
>     was_discovery=true, saving_bulbs=false) at plrhand.c:290
> #4  0x0807d425 in tech_researched (plr=0x81f1848) at plrhand.c:464
> #5  0x0807d4bb in update_tech (plr=0x81f1848, bulbs=0) at plrhand.c:480
> #6  0x08068598 in update_city_activity (pplayer=0x81f1848,
> pcity=0x83eb4c0)
>     at cityturn.c:1344
> #7  0x080667cd in update_city_activities (pplayer=0x81f1848) at
> cityturn.c:352
> #8  0x0804dc33 in end_turn () at srv_main.c:504
> #9  0x0804f170 in main_loop () at srv_main.c:1506
> #10 0x0804f4d6 in srv_main () at srv_main.c:1590
> #11 0x08049faa in main (argc=3, argv=0xbffff874) at civserver.c:154

The bug is in the savegame - tech 23 is being researched by player 0,
but is marked as KNOWN.

More savegame sanity checking should be done.  Other than that, I don't
know what caused this.

jason



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