Complete.Org: Mailing Lists: Archives: freeciv-dev: May 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@xxxxxxxxxxxxxxxxxxxxx, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/14401
From: Thue <thue@xxxxxxx>
Date: Wed, 30 May 2001 21:06:41 +0200

This is (for the second time) a packet containing trash values. I have no 
idea where it comes from.
I have however added the missing checks that allowed the packet to crash the 
server.

-Thue

On Wednesday 30 May 2001 16:16, freeciv@xxxxxxxxxxxxxxxxxxxxx wrote:
> # using $FREECIV_PATH /home/freeciv/src/freeciv/data
> # running: (echo bt; echo quit; exec yes '') | gdb -d
> /home/freeciv/src/freeciv/ai -d /home/freeciv/src/freeciv/amiga -d
> /home/freeciv/src/freeciv/client/gui-beos -d
> /home/freeciv/src/freeciv/client -d
> /home/freeciv/src/freeciv/client/gui-gtk -d
> /home/freeciv/src/freeciv/client/gui-mui -d
> /home/freeciv/src/freeciv/client/gui-stub -d
> /home/freeciv/src/freeciv/client/gui-xaw -d
> /home/freeciv/src/freeciv/common -d /home/freeciv/src/freeciv/intl -d
> /home/freeciv/src/freeciv/po -d /home/freeciv/src/freeciv/server
> /home/freeciv/src/freeciv/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/src/freeciv/server/civserver --gamelog
> gamelog -p 5573 -m -r /hom'. 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  find_genlist_position (pgenlist=0x23038320, pos=0) at genlist.c:188
> 188       return pgenlist->head_link;
> (gdb) #0  find_genlist_position (pgenlist=0x23038320, pos=0) at
> genlist.c:188 #1  0x808e6b1 in genlist_iterator_init (iter=0xbffff6d0,
> pgenlist=0x23038320, pos=0) at genlist.c:172 #2  0x8065132 in
> handle_diplomacy_create_clause (pplayer=0x8126734, packet=0x8294278) at
> diplhand.c:418 #3  0x804d09e in handle_packet_input (pconn=0x810b240,
> packet=0x8294278 "\020\235,\b\020\235,\b\020\235,\b\006", type=44) at
> srv_main.c:778
> #4  0x8085480 in sniff_packets () at sernet.c:508
> #5  0x804e95d in main_loop () at srv_main.c:1677
> #6  0x804ef8c in srv_main () at srv_main.c:1949
> #7  0x8049b15 in main (argc=8, argv=0xbffffbf4) at civserver.c:147
> #8  0x40046f31 in __libc_start_main (main=0x80495fc <main>, argc=8,
> ubp_av=0xbffffbf4, init=0x8049014 <_init>, fini=0x80b088c <_fini>,
> rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffbec) at
> ../sysdeps/generic/libc-start.c:129 (gdb)


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