Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2002:
[Freeciv-Dev] civserver segmentation fault at end of turn (PR#1805)
Home

[Freeciv-Dev] civserver segmentation fault at end of turn (PR#1805)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] civserver segmentation fault at end of turn (PR#1805)
From: kenn@xxxxxxxxxxxxxx
Date: Sun, 21 Jul 2002 19:36:15 -0700 (PDT)

Full_Name: Kenn Munro
Version: 1.13.1-devel
Distribution: Built from source
Client: Gtk+
OS: Red Hat 7.2
Submission from: (NULL) (216.104.96.132)


At the end of a particular turn, the civserver quits with a segmentation fault. 
The last debug messages are:

4: Barracks in Cuzco is active!
4: Palace in Cuzco is active!
4: sending packet type=16 len=57
4: Trying advisor_choose_build.
4: In Guimarães, unh[0] = 0, unh[4] = 0, sad = 0
4: Guimarães: 0 elvis 0 sad 2 content 2 size 48 val
4: In Guimarães, unh[0] = 0, unh[4] = 0, sad = 0
4: Guimarães: 0 elvis 0 sad 2 content 2 size 48 val
Segmentation fault (core dumped)

I've uploaded a savegame (kenn15.sav.gz) to incoming.  Join as kenn and hit turn
done.  Tested with yesterday's cvs.

(gdb) bt
#0  0x080ca050 in ai_eval_threat_missile (pplayer=0x8159320, pcity=0x8568c58)
    at advdomestic.c:244
#1  0x080cb5d2 in ai_eval_buildings (pcity=0x8568c58) at advdomestic.c:659
#2  0x0806afa8 in advisor_choose_build (pplayer=0x8159320, pcity=0x8568c58)
    at cityturn.c:620
#3  0x0806bdea in city_build_building (pplayer=0x8159320, pcity=0x8568c58)
    at cityturn.c:1017
#4  0x0806c10d in city_build_stuff (pplayer=0x8159320, pcity=0x8568c58)
    at cityturn.c:1096
#5  0x0806c7f2 in update_city_activity (pplayer=0x8159320, pcity=0x8568c58)
    at cityturn.c:1268
#6  0x0806a66c in update_city_activities (pplayer=0x8159320) at cityturn.c:413
#7  0x08081043 in update_player_activities (pplayer=0x8159320) at plrhand.c:178
#8  0x0804df4c in end_turn () at srv_main.c:421
#9  0x080509e5 in main_loop () at srv_main.c:1722
#10 0x080511d0 in srv_main () at srv_main.c:1970
#11 0x08049ef7 in main (argc=3, argv=0xbffff9d4) at civserver.c:153
#12 0x4006e316 in __libc_start_main (main=0x80498b6 <main>, argc=3, 
    ubp_av=0xbffff9d4, init=0x80491bc <_init>, fini=0x80dedd0 <_fini>, 
    rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbffff9cc)
    at ../sysdeps/generic/libc-start.c:129

Kenn




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] civserver segmentation fault at end of turn (PR#1805), kenn <=