Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2006:
[Freeciv-Dev] (PR#17984) Segmentation fault in military_advisor_choose_b
Home

[Freeciv-Dev] (PR#17984) Segmentation fault in military_advisor_choose_b

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#17984) Segmentation fault in military_advisor_choose_build
From: "Billy Naylor" <banjo@xxxxxxxxxx>
Date: Thu, 22 Jun 2006 17:51:22 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=17984 >

using revision 12030 of freeciv 2.1.0
and rndCiv 0.8.6
   http://banjo.actrix.com/code/rndCiv/rndCiv-0.8.6.tar.gz

install rndCiv, and build a big ruleset...

    bash$ ./rndCiv.pl -s 180 all

run it (aitoggle) and usually between turn 40 to turn 60 it fails...

Program received signal SIGSEGV, Segmentation fault.
0x080ffe4a in military_advisor_choose_build (pplayer=0x827a454, 
pcity=0x8a79770, choice=0x8a7a0a8)
     at advmilitary.c:740
740       if (!walls && best_unit_type->move_type == LAND_MOVING) {
(gdb) bt
#0  0x080ffe4a in military_advisor_choose_build (pplayer=0x827a454, 
pcity=0x8a79770, choice=0x8a7a0a8)
     at advmilitary.c:740
#1  0x08107077 in ai_manage_cities (pplayer=0x827a454) at aicity.c:1302
#2  0x0810bd5e in ai_do_last_activities (pplayer=0x827a454) at aihand.c:449
#3  0x08051c53 in main_loop () at srv_main.c:692
#4  0x08052439 in srv_main () at srv_main.c:1937
#5  0x0804aa8c in main (argc=3, argv=0xbfc21a84) at civserver.c:256

i run it with these options
     ./ser -r data/rnd/rnd.serv

Jason Dorje Short wrote:
 > What is best_unit_type set to?

i dunno how to find this out, it could be a ruleset error.
rndCiv seems to be a good fuzz program to stress test the system.

-banjo







[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#17984) Segmentation fault in military_advisor_choose_build, Billy Naylor <=