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


The newer Freeciv GTK client looks quite nice, but the server seems a
bit shaky. I have crashed it a number of times. Here is the stack
trace for a crash that I can consistently reproduce:

#0  0x00002aac31a76230 in strlen () from /lib/libc.so.6
#1  0x00002aac31a48a58 in vfprintf () from /lib/libc.so.6
#2  0x00002aac31a68fa4 in vsnprintf () from /lib/libc.so.6
#3  0x0000000000407655 in my_vsnprintf (str=0x7fff79674d40 "Technology
 goal is Monarchy.", n=1536, format=0x7fff79675301 "Sgyÿ\177",
   ap=0x0) at support.c:367
#4  0x00000000004856aa in vnotify_conn (dest=0x782d20, ptile=0x0,
   format=0xff00000000000000 <Address 0xff00000000000000 out of
bounds>, vargs=0x0) at plrhand.c:677
#5  0x0000000000485d18 in notify_research (pplayer=0xff00000000000000,
 event=E_TECH_GOAL, format=0x50c059 "Technology goal is %s.")
   at plrhand.c:798
#6  0x000000000046db01 in handle_player_tech_goal (pplayer=0x75ed30,
tech_goal=53) at techtools.c:766
#7  0x0000000000480814 in server_handle_packet
(type=PACKET_PROCESSING_STARTED, packet=0x50c059,
   pconn=0x6500ffff002e7968) at hand_gen.c:138
#8  0x0000000000461783 in handle_packet_input (pconn=0x6f2b20,
packet=0x50c059, type=45) at srv_main.c:1152
#9  0x00000000004a258a in sniff_packets () at sernet.c:389
#10 0x0000000000462b15 in main_loop () at srv_main.c:1714
#11 0x0000000000463a34 in srv_main () at srv_main.c:2005
#12 0x0000000000403b18 in main (argc=5, argv=0x7fff796783a8) at

I have a game with 18 players (17 hard AIs and myself) divided into 6
teams of 3 each. Because of this, I have set the research cost to
triple its usual so that the game does not progress too quickly.

To reproduce the crash, I go to the Science panel, and select a tech
to research (usually "Warrior Code"), and then select "Monarchy" as my
technology goal. Upon choosing "Monarchy", the server falls over. This
may not be specific to that particular tech/tech goal pair, but I
haven't investigated further.

The script I use to set up the server is attached. (Hopefully the
attachment will make it through.)

(Probably doesn't matter, but this is on an AMD64 machine running in
64-bit mode (if you couldn't tell from the width of the addresses in
the trace ;-))).


P.S. This is my second attempt to send this report. My ISP's SMTP
server apparently can't handle being graylisted, and so I had to
resort to a Webmail interface for a different server. Hopefully the
message formatting isn't too butchered after copy 'n paste.
P.P.S. This is now my *third* attempt to send this [EMAIL PROTECTED] report. I 
about to send it to the freeciv-dev list, but then read
http://bugs.freeciv.org/Ticket/Display.html?id=39321. If this doesn't
go through, then I am going to submit the report directly to the list.
And, if I take any flack for that, then I am going to assume you don't
actually want bug reports....

Attachment: default-2.1.0-b4.serv
Description: Binary data

Freeciv-dev mailing list

Reply via email to