Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] Segfault in civserver.
Home

[Freeciv-Dev] Segfault in civserver.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Segfault in civserver.
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Thu, 25 Jul 2002 03:04:27 +0200

gs234@posleen:~/freeciv$ gdb server/civserver core
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...

Core was generated by `server/civserver -r fitte'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x080adb44 in ai_eval_threat_land (pplayer=0x8155b58, pcity=0x82a0678)
    at advdomestic.c:159
159       vulnerable = pplayer->ai.eval_threat.continent[continent]
(gdb) bt
#0  0x080adb44 in ai_eval_threat_land (pplayer=0x8155b58, pcity=0x82a0678)
    at advdomestic.c:159
#1  0x080ae948 in ai_eval_buildings (pcity=0x82a0678) at advdomestic.c:595
#2  0x080b2d48 in ai_manage_buildings (pplayer=0x8155b58) at aicity.c:71
#3  0x080b3d72 in ai_manage_cities (pplayer=0x8155b58) at aicity.c:499
#4  0x080b5b5f in ai_do_last_activities (pplayer=0x8155b58) at aihand.c:370
#5  0x08075534 in update_player_activities (pplayer=0x8155b58) at plrhand.c:172
#6  0x0804ccab in end_turn () at srv_main.c:424
#7  0x0804ee47 in main_loop () at srv_main.c:1726
#8  0x0804f490 in srv_main () at srv_main.c:1974
#9  0x08049c6b in main (argc=3, argv=0xbffffbd4) at civserver.c:153
(gdb) p pplayer->ai.eval_threat.continent
$1 = (bool *) 0x0
(gdb) quit

I get this by running civserver like this:

$ cat > a
create AI
set aif 8
set randseed 42
set seed 42
set timeout -1
hard
start

$ civserver -r a

I think that Per's recent patches are at fault.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
Is this "BIKINI BEACH"?


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