Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2001:
[Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/g
Home

[Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/g

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/15998
From: Thue <thue@xxxxxxx>
Date: Wed, 13 Jun 2001 23:39:52 +0200

I would guess this is memory corruption at some earlier point... neat. Kind 
of hard to debug unless I have a savegame that can consistently produce it.

(note, it is in the 1.11.4 server)
-Thue

On Wednesday 13 June 2001 20:49, freeciv@xxxxxxxxxxxxxxxxxxxxx wrote:
> # using $FREECIV_PATH /home/freeciv/freeciv-1.11.4/data
> # running: (echo bt; echo quit; exec yes '') | gdb -d
> /home/freeciv/freeciv-1.11.4/intl -d /home/freeciv/freeciv-1.11.4/common -d
> /home/freeciv/freeciv-1.11.4/ai -d /home/freeciv/freeciv-1.11.4/server -d
> /home/freeciv/freeciv-1.11.4/client -d
> /home/freeciv/freeciv-1.11.4/client/gui-gtk -d
> /home/freeciv/freeciv-1.11.4/client/gui-xaw -d
> /home/freeciv/freeciv-1.11.4/client/gui-stub -d
> /home/freeciv/freeciv-1.11.4/po
> /home/freeciv/freeciv-1.11.4/server/civserver core GNU gdb 5.0
> Copyright 2000 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-1.11.4/server/civserver
> --gamelog gamelog -p 5550 -m -r /'. Program terminated with signal 11,
> Segmentation fault.
> 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 /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_nis.so.2...done.
> Loaded symbols for /lib/libnss_nis.so.2
> 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  0x400a90a6 in chunk_free (ar_ptr=0x4014d300, p=0x841bdd0) at
> malloc.c:3142 (gdb) #0  0x400a90a6 in chunk_free (ar_ptr=0x4014d300,
> p=0x841bdd0) at malloc.c:3142 #1  0x400a8e54 in __libc_free (mem=0x841bdd8)
> at malloc.c:3054
> #2  0x8085bc9 in genlist_unlink (pgenlist=0x84062ac, punlink=0x84492c8) at
> genlist.c:103 #3  0x8084e06 in game_remove_unit (unit_id=200) at game.c:678
> #4  0x807bc2d in server_remove_unit (punit=0x84492c8) at unitfunc.c:2756
> #5  0x807be57 in wipe_unit_spec_safe (punit=0x84492c8, iter=0x0,
> wipe_cargo=1) at unitfunc.c:2817 #6  0x807be73 in wipe_unit_safe
> (punit=0x84492c8, iter=0x0) at unitfunc.c:2825 #7  0x807be88 in wipe_unit
> (punit=0x84492c8) at unitfunc.c:2833
> #8  0x807c143 in kill_unit (pkiller=0x84035e0, punit=0x84492c8) at
> unitfunc.c:2886 #9  0x807ecb0 in handle_unit_attack_request
> (pplayer=0x83ad110, punit=0x84035e0, pdefender=0x84492c8) at unithand.c:642
> #10 0x807f5dc in handle_unit_move_request (pplayer=0x83ad110,
> punit=0x84035e0, dest_x=55, dest_y=27, igzoc=0) at unithand.c:943 #11
> 0x80a52c4 in ai_military_attack (pplayer=0x83ad110, punit=0x84035e0) at
> aiunit.c:1530 #12 0x80a5a1e in ai_manage_military (pplayer=0x83ad110,
> punit=0x84035e0) at aiunit.c:1763 #13 0x80a5e86 in ai_manage_units
> (pplayer=0x83ad110) at aiunit.c:1924 #14 0x8052e1e in ai_start_turn () at
> civserver.c:841
> #15 0x805239b in main (argc=8, argv=0xbffffc24) at civserver.c:488
> #16 0x40046f31 in __libc_start_main (main=0x805185c <main>, argc=8,
> ubp_av=0xbffffc24, init=0x8048f38 <_init>, fini=0x80a6e4c <_fini>,
> rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffc1c) at
> ../sysdeps/generic/libc-start.c:129 (gdb)


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