Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2005:
[Freeciv-Dev] (PR#14127) pubserver (2.0) crash in ai_rampage_want
Home

[Freeciv-Dev] (PR#14127) pubserver (2.0) crash in ai_rampage_want

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14127) pubserver (2.0) crash in ai_rampage_want
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Sep 2005 17:43:33 -0700
Reply-to: bugs@xxxxxxxxxxx

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



-------- Original Message --------
From: - Tue Sep 27 20:40:42 2005
X-Account-Key: account1
X-UIDL: GmailId1069985df947e754
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
X-Gmail-Received: 94134d4daaf37a0778eb06b6821669fc662da1d0
Delivered-To: jdorje@xxxxxxxxx
Received: by 10.70.55.5 with SMTP id d5cs31485wxa;        Tue, 27 Sep 
2005 14:38:40 -0700 (PDT)
Received: by 10.37.22.45 with SMTP id z45mr444903nzi;        Tue, 27 Sep 
2005 14:38:39 -0700 (PDT)
Return-Path: <freeciv-dev-bounce@xxxxxxxxxxx>
Received: from freeciv.freeciv.org (www.freeciv.org [207.158.49.130]) 
      by mx.gmail.com with ESMTP id 38si1212753nza.2005.09.27.14.38.37; 
        Tue, 27 Sep 2005 14:38:39 -0700 (PDT)
Received-SPF: pass (gmail.com: best guess record for domain of 
freeciv-dev-bounce@xxxxxxxxxxx designates 207.158.49.130 as permitted 
sender)
Received: from glockenspiel.complete.org (glockenspiel.complete.org 
[69.10.152.57]) by freeciv.freeciv.org (8.12.10/8.12.10) with ESMTP id 
j8RLcYcT000889; Tue, 27 Sep 2005 14:38:35 -0700
Received: from localhost ([127.0.0.1] helo=glockenspiel)        by 
glockenspiel.complete.org with esmtp    (Exim 4.50)     id 1EKN9Q-0006UI-32; 
Tue, 27 Sep 2005 16:38:13 -0500
Received: with ECARTIS (v1.0.0; list freeciv-dev); Tue, 27 Sep 2005 
16:38:01 -0500 (CDT)
Received: from pubserver.freeciv.org ([207.158.49.131]) by 
glockenspiel.complete.org with esmtps   (with 
TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24)    (No TLS peer certificate)       (Exim 
4.50)   id 1EKN98-0006U8-Eg     for freeciv-dev@xxxxxxxxxxx; Tue, 27 Sep 2005 
16:38:01 -0500
Received: from pubserver.freeciv.org (localhost.localdomain 
[127.0.0.1])    by pubserver.freeciv.org (8.12.8/8.12.8) with ESMTP id 
j8RLbc2R005537  for <freeciv-dev@xxxxxxxxxxx>; Tue, 27 Sep 2005 14:37:39 
-0700
Received: (from freeciv@localhost)      by pubserver.freeciv.org 
(8.12.8/8.12.8/Submit) id j8RLbcUf005535        for freeciv-dev@xxxxxxxxxxx; 
Tue, 27 Sep 2005 14:37:38 -0700
Date: Tue, 27 Sep 2005 14:37:37 -0700
From: freeciv@xxxxxxxxxxxxxxxxxxxxx
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] civserver crashed: 
http://pubserver.freeciv.org/games/488163
Message-ID: <20050927143737.A5533@xxxxxxxxxxxxxxxxxxxxx>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW"
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
X-Spam-Status: No (score 0.2): AWL=0.001, NO_REAL_NAME=0.178
X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Tue, 27 Sep 
2005 16:38:01 -0500
X-archive-position: 2266
X-ecartis-version: Ecartis v1.0.0
Sender: freeciv-dev-bounce@xxxxxxxxxxx
Errors-to: freeciv-dev-bounce@xxxxxxxxxxx
X-original-sender: freeciv@xxxxxxxxxxxxxxxxxxxxx
Precedence: bulk
List-help: <mailto:ecartis@xxxxxxxxxxx?Subject=help>
List-unsubscribe: 
<mailto:freeciv-dev-request@xxxxxxxxxxx?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: <freeciv-dev.freeciv.org>
X-List-ID: <freeciv-dev.freeciv.org>
List-subscribe: <mailto:freeciv-dev-request@xxxxxxxxxxx?Subject=subscribe>
List-owner: <mailto:freeciv-dev-admins@xxxxxxxxxxx>
List-post: <mailto:freeciv-dev@xxxxxxxxxxx>
X-list: freeciv-dev
X-Spam-Status: No (score 0.2): AWL=0.001, NO_REAL_NAME=0.178
X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Tue, 27 Sep 
2005 16:38:13 -0500



# examining core.20669 in /games/488163/. ...
# using $FREECIV_PATH 
:/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-27_16.00+mintimeout+original_gamelog/share/freeciv
# running: (echo bt full; echo quit; exec yes '') | gdb  
/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-27_16.00+mintimeout+original_gamelog/share/freeciv/../../bin/civserver
 core.20669
GNU gdb Red Hat Linux (5.2-2)
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-redhat-linux"...
Core was generated by 
`/home/freeciv/.freeciv/code/installed/cvs/S2_0/2005-09-27_16.00+mintimeout+orig'.
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
Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_nisplus.so.2...done.
Loaded symbols for /lib/libnss_nisplus.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_dns.so.2...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
#0  map_has_special (ptile=0x40, special=S_HUT) at map.c:1313
1313      return contains_special(ptile->special, special);
(gdb) #0  map_has_special (ptile=0x40, special=S_HUT) at map.c:1313
        ptile = (struct tile *) 0x40
        special = 139712656
#1  0x080f0449 in ai_rampage_want (punit=0x401f86e8, ptile=0x40)
    at aiunit.c:651
        pcity = (struct city *) 0x40
        pplayer = (struct player *) 0x821bc24
        pdef = (struct unit *) 0x0
#2  0x080f0449 in ai_rampage_want (punit=0x853d890, ptile=0x401f86e8)
    at aiunit.c:651
        pcity = (struct city *) 0x40
        pplayer = (struct player *) 0x821bc24
        pdef = (struct unit *) 0x89e4180
#3  0x080f0505 in find_rampage_target (punit=0x853d890, thresh_adj=1, 
    thresh_move=1) at aiunit.c:698
        pos = {tile = 0x401f86e8, turn = -1, moves_left = -1, total_MC = 8, 
  total_EC = 0, dir_to_next_pos = 4294967295, dir_to_here = DIR8_SOUTHEAST}
        want = 0
        move_needed = true
        thresh = 64
        tgt_map = (struct pf_map *) 0x89e4180
        path = (struct pf_path *) 0x0
        parameter = {start_tile = 0x40201928, moves_left_initially = 9, 
  move_rate = 9, owner = 0x821bc24, unit_flags = {vec = "\0\0\0\0\0\0\0"}, 
  omniscience = true, turn_mode = TM_CAPPED, 
  get_MC = 0x80f76e8 <land_attack_move>, get_TB = 0, get_EC = 0, 
  get_zoc = 0x80dec60 <is_my_zoc>, is_pos_dangerous = 0, get_costs = 0, 
  data = 0xbfffe538}
        ptile = (struct tile *) 0x40201928
        max_want = 0
        pplayer = (struct player *) 0x821bc24
#4  0x080f066e in ai_military_rampage (punit=0x853d890, thresh_adj=1, 
    thresh_move=1) at aiunit.c:753
        punit = (struct unit *) 0x853d890
        thresh_adj = 1
        count = 9
        path = (struct pf_path *) 0x0
#5  0x080f28ec in ai_military_attack (pplayer=0x821bc24, punit=0x853d890)
    at aiunit.c:1769
        punit = (struct unit *) 0x853d890
        dest_tile = (struct tile *) 0x0
        id = 1814
        ct = 136428580
        pcity = (struct city *) 0x821bc24
#6  0x080f3006 in ai_manage_military (pplayer=0x821bc24, punit=0x853d890)
    at aiunit.c:2048
        pplayer = (struct player *) 0x821bc24
        punit = (struct unit *) 0x853d890
        id = 1814
#7  0x080f3646 in ai_manage_units (pplayer=0x821bc24) at aiunit.c:2213
        _size = 198
#8  0x0804e1d3 in ai_start_turn () at srv_main.c:464
        pplayer = (struct player *) 0x40
        i = 2
#9  0x0804e35e in begin_phase (is_new_phase=true) at srv_main.c:545
        is_new_phase = false
        pplayer = (struct player *) 0x822538c
        PI_p_itr = 11
#10 0x0804f8b3 in main_loop () at srv_main.c:1554
        eot_timer = (struct timer *) 0x8451d98
        save_counter = 1
        is_new_turn = true
#11 0x0804fa8d in srv_main () at srv_main.c:1673
No locals.
#12 0x0804a5f0 in main (argc=14, argv=0xbfffea54) at civserver.c:200
        argc = 14
        argv = (char **) 0xbfffea54
        inx = 14
        showhelp = false
[... 5 lines skipped ...]
        showvers = false
        option = 0x40 <Address 0x40 out of bounds>
#13 0x400651c4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
(gdb) 


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14127) pubserver (2.0) crash in ai_rampage_want, Jason Short <=