Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] (PR#4761) civserver get_invention crash
Home

[Freeciv-Dev] (PR#4761) civserver get_invention crash

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#4761) civserver get_invention crash
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Aug 2003 19:26:40 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[chrisk@xxxxxxxxx - Tue Aug  5 21:29:03 2003]:

> CVS 05 AUG 2003 GTK 1
> 
> changing cma presets vor several cities, turn done(?)

I independently get the same crash:

#0  0x080c3683 in get_invention (pplayer=0x6cfd337c, tech=235) at tech.c:53
53        return pplayer->research.inventions[tech].state;
(gdb) bt
#0  0x080c3683 in get_invention (pplayer=0x6cfd337c, tech=235) at tech.c:53
#1  0x080bfed0 in player_knows_improvement_tech (pplayer=0xeb, id=7)
    at player.c:474
#2  0x080a546c in can_build_improvement (pcity=0x885e8c0, id=7) at
city.c:392
#3  0x0806ccc6 in city_build_building (pplayer=0x81a330c, pcity=0x885e8c0)
    at cityturn.c:949
#4  0x0806d5fb in city_build_stuff (pplayer=0x81a330c, pcity=0x885e8c0)
    at cityturn.c:1145
#5  0x0806dd2f in update_city_activity (pplayer=0x81a330c, pcity=0x81a330c)
    at cityturn.c:1366
#6  0x0806bc17 in update_city_activities (pplayer=0x81a330c) at
cityturn.c:414
#7  0x0804e733 in end_turn () at srv_main.c:501
#8  0x0804ff53 in main_loop () at srv_main.c:1508
#9  0x080502f5 in srv_main () at srv_main.c:1591
#10 0x0804a008 in main (argc=135320704, argv=0xbffffa94) at civserver.c:154
#11 0x401a34ed in __libc_start_main () from /lib/libc.so.6

most of the values (pplayer, pcity) seem to be garbage.  Could be memory
corruption?

Savegame available but it's not reproducable.

jason



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