Re: core file on civserver, http://civserver.freeciv.org/games/253417
Raimar Falke <[email protected]>
| Newsgroups | gmane.games.freeciv.devel,gmane.games.freeciv.general |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Nov 29, 2003 at 07:40:37AM -0800, freeciv-wHIYU/[email protected] wrote: > # examining core.25625 in /games/253417/. ... > # using $FREECIV_PATH /home/freeciv/.freeciv/code/installed/cvs/HEAD/2003-11-29_00.00+ourown-post-1.14.0/share/freeciv > # running: (echo bt; echo quit; exec yes '') | gdb /home/freeciv/.freeciv/code/installed/cvs/HEAD/2003-11-29_00.00+ourown-post-1.14.0/share/freeciv/../../bin/civserver core.25625 > 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/HEAD/2003-11-29_00.00+ourown-post-1.1'. > Program terminated with signal 6, Aborted. > 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 /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 0x400750a1 in kill () from /lib/libc.so.6 > (gdb) #0 0x400750a1 in kill () from /lib/libc.so.6 > #1 0x40074e99 in raise () from /lib/libc.so.6 > #2 0x40076364 in abort () from /lib/libc.so.6 > #3 0x4006f15d in __assert_fail () from /lib/libc.so.6 > #4 0x0804ab6a in real_die () at shared.c:666 > #5 0x080a2223 in receive_packet_processing_started (pc=0x812bca0, > type=PACKET_PROCESSING_STARTED) at packets_gen.c:730 > #6 0x080a0e70 in get_packet_from_connection (pc=0x812bca0, ptype=0xbfffed00, > presult=0xbfffed04) at packets.c:474 > #7 0x0808d99f in sniff_packets () at sernet.c:583 > #8 0x0804e805 in srv_loop () at srv_main.c:1477 > #9 0x0804e749 in srv_main () at srv_main.c:1439 > #10 0x08049c70 in main (argc=9, argv=0xbffff184) at civserver.c:157 > #11 0x400641c4 in __libc_start_main () from /lib/libc.so.6 > (gdb) The problem is that the server received a PACKET_PROCESSING_STARTED (number 0) but the client should never send such packet. I suspect that an old client is connecting to a new server and the join packet of the old client also has number 0. Ideas for fixes welcome. Raimar -- email: rf13-r/[email protected] Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? BSD: Are you guys coming or what?