Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[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]
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/42747
From: Jason Short <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Sep 2002 16:56:26 -0500

This is fixed in CVS:

----------------------------
revision 1.117
date: 2002/08/10 17:07:26;  author: rfalke;  state: Exp;  lines: +4 -0
Add array bounds checks. Add checks for packet input.

Patch from Mateusz Stefek <matusik_s@xxxxx> with changes from me.
----------------------------

I wonder if this is an invalid packet caused by a client bug?

jason


freeciv@xxxxxxxxxxxxxxxxxxxxx wrote:
# using $FREECIV_PATH 
/home/freeciv/.freeciv/code/installed/stable/freeciv-1.13.0+none/share/freeciv
# running: (echo bt; echo quit; exec yes '') | gdb  
/home/freeciv/.freeciv/code/installed/stable/freeciv-1.13.0+none/share/freeciv/../../bin/civserver
 core.13881
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/stable/freeciv-1.13.0+none/share/freeciv/'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libreadline.so.4...done.
Loaded symbols for /usr/lib/libreadline.so.4
Reading symbols from /usr/lib/libncurses.so.5...done.
Loaded symbols for /usr/lib/libncurses.so.5
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/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  handle_city_name_suggest_req (pconn=0x80fcc00, packet=0x81cfef8)
    at cityhand.c:58
58        freelog(LOG_VERBOSE, "handle_city_name_suggest_req(unit_pos=(%d,%d))",
(gdb) #0  handle_city_name_suggest_req (pconn=0x80fcc00, packet=0x81cfef8)
    at cityhand.c:58
#1 0x0804d1ee in handle_packet_input (pconn=0x80fcc00, packet=0x81cfef8, type=73) at srv_main.c:819
#2  0x08084c3c in sniff_packets () at sernet.c:572
#3  0x0804e685 in main_loop () at srv_main.c:1690
#4  0x0804ec74 in srv_main () at srv_main.c:1970
#5  0x08049e01 in main (argc=10, argv=0xbffffc54) at civserver.c:153
#6  0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: core file on civserver, http://civserver.freeciv.org/games/42747, Jason Short <=