Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6678) Server dumps core and client runs crazy
Home

[Freeciv-Dev] Re: (PR#6678) Server dumps core and client runs crazy

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6678) Server dumps core and client runs crazy
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 29 Oct 2003 08:13:42 -0800
Reply-to: rt@xxxxxxxxxxxxxx

Christian Knoke wrote:
> CVS 29 OCT 2003 HEAD GTK 1.2
> 
> A savegame with
> 
> version=11401
> server_state=2
> metastring="unstable pre-1.14.1: beware"
> 
> makes the server crash, gives bad client behavior, and eventually crashes
> the client, too. If this is of any interest, I can post a savegame. Details
> below.
> 
> Christian
> 
> 
> The savegame mediummap+1540m.sav.gz makes the server dump core
> on game start.

Can you upload this savegame to RT?

> The client output shows:
> 
> chris@max:~> LANG= civclient -t trident -P none
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 1: CMA: Århus has changed multiple times due to an error in Freeciv. Please
> send a savegame that can reproduce this bug to <bugs@xxxxxxxxxxxxxxxxxxx>.
> Thank you.
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 2: lost connection to server
> 1: CMA: Mönchengladbach has changed multiple times due to an error in
> Freeciv. Please send a savegame that can reproduce this bug to
> <bugs@xxxxxxxxxxxxxxxxxxx>. Thank you.
> 2: error in select() return=-1 errno=9 (Bad file descriptor)
> 
> repeatedly. This is accompanied by an repeatedly opened/closed connect
> window, while the F10 window is updated.

This is similar to PR#6204.  Hopefully we can reproduce it from this.

> chris@max:~/freeciv/games> gdb civserver -core core
> ...
> 251         if (ai->government_want[gov->index] > best_val 
> (gdb) bt
> #0  0x080ccc7c in ai_best_government (pplayer=0x81ff4e8) at aihand.c:251
> #1  0x080cc3bf in ai_data_turn_init (pplayer=0x81ff4e8) at aidata.c:305
> #2  0x0804e010 in begin_turn () at srv_main.c:468
> #3  0x0804f86c in main_loop () at srv_main.c:1445
> #4  0x08050050 in srv_loop () at srv_main.c:1812
> #5  0x0804fac0 in srv_main () at srv_main.c:1599
> #6  0x0804a297 in main (argc=3, argv=0xbffff424) at civserver.c:154
> #7  0x400a07ee in __libc_start_main () from /lib/libc.so.6

Not very helpful.  We need the savegame.

> When I repeat this, without restarting the client, the client also dumps
> core:
> 
> civclient: map.c:253: map_allocate: Assertion `map.tiles == ((void *)0)'
> failed.
> Abgebrochen (core dumped)

Hmm, this is probably also the same as PR#6204.

jason




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