Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] assert failure (worklists?)
Home

[Freeciv-Dev] assert failure (worklists?)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] assert failure (worklists?)
From: "Per I. Mathisen" <Per.Inge.Mathisen@xxxxxxxxxxx>
Date: Sun, 3 Mar 2002 00:39:15 +0100 (MET)

On Sat, 2 Mar 2002, Gregory Berkolaiko wrote:
> mmm, I tried reproducing it... if the first turn you build a city and then
> immediately hit save, enter name, press ok then you get "lost connection
> to server".

I get this failure too, with latest freeciv cvs. I think maybe the
worklists aren't updated yet and cause a failure.

To reproduce: save after building your first city on your first turn.

Here is what I get:
        > save test
        civserver: registry.c:833: secfile_insert_bool: Assertion `val == (1) ||
        val == (0)' failed.
        Aborted

Program received signal SIGABRT, Aborted.
0x400b09f1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x400b09f1 in kill () from /lib/libc.so.6
#1  0x400b06d4 in raise () from /lib/libc.so.6
#2  0x400b1e51 in abort () from /lib/libc.so.6
#3  0x400ab0b2 in __assert_fail () from /lib/libc.so.6
#4  0x080cf1c5 in secfile_insert_bool (my_section_file=0xbffff110, 
val=1818850658,
    path=0x810a071 "player%d.c%d.did_sell") at registry.c:833
#5  0x080a118b in player_save (plr=0x8169808, plrno=0, file=0xbffff110)
    at savegame.c:1465
#6  0x080a4b56 in game_save (file=0xbffff110) at savegame.c:2239
#7  0x0804e7fe in save_game (orig_filename=0xbffff3dc "test") at srv_main.c:475
#8  0x08052e13 in save_command (caller=0x0, arg=0xbffff3dc "test") at 
stdinhand.c:1699
#9  0x08056403 in handle_stdin_input (caller=0x0, str=0x8269218 "save test")
    at stdinhand.c:2878
#10 0x080a4c6a in handle_readline_input_callback (line=0x8269218 "save test")
    at sernet.c:155
#11 0x400467fc in rl_callback_read_char () from /lib/libreadline.so.4
#12 0x080a5b2e in sniff_packets () at sernet.c:513
#13 0x080513e7 in main_loop () at srv_main.c:1698
#14 0x08051d3f in srv_main () at srv_main.c:1972
#15 0x0804a31c in main (argc=1, argv=0xbffffae4) at civserver.c:147
#16 0x400a06cf in __libc_start_main () from /lib/libc.so.6

Yours,
Per

"What we anticipate seldom occurs: but what we least expect generally
happens." -- Benjamin Disraeli



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