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

 This happened with S2_1 when trying to reproduce another bug.

 1) Started client and loaded saved game (launching server internally)
 2) Selected player and started game
 3) After a while I decided that I need certain kind of player
interaction for my test
 4) Started another client and connected to running game
 5) Selected one of the AI players and 'Take this player' from right-mouse menu.

 Latter client crashed. Both clients were gtk-clients. When I started
second client again and connected to server, I got directly to the
game as player I had selected to be before client crashed.


0: Bad nation id 0 (count 125) in nation_of_player
0: Detected fatal error in ../../src.patched/common/nation.c line 255:
0: wrong nation 0
civclient: ../../src.patched/utility/shared.c:716: real_die: Assertion
`0' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 47173323002256 (LWP 6209)]
0x00002ae762ae6635 in raise () from /lib/libc.so.6
(gdb) bt full
#0  0x00002ae762ae6635 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002ae762ae8090 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00002ae762adfc2f in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3  0x000000000044f1c6 in real_die (file=<value optimized out>,
line=<value optimized out>,
    format=0x4f05f2 "wrong nation %d") at ../../src.patched/utility/shared.c:716
        ap = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fff4b623c80,
    reg_save_area = 0x7fff4b623bc0}}
        __PRETTY_FUNCTION__ = "real_die"
#4  0x000000000045fd9f in nation_of_player (plr=0x7ce288) at
../../src.patched/common/nation.c:255
        __PRETTY_FUNCTION__ = "nation_of_player"
#5  0x0000000000460119 in nation_name_for_player (pplayer=0x1841) at
../../src.patched/common/nation.c:148
No locals.
#6  0x00000000004bd993 in update_conn_list_dialog ()
    at ../../../src.patched/client/gui-gtk-2.0/gui_main.c:1537
        myiter = <value optimized out>
        access_level = <value optimized out>
        conn_id = 1
        pplayer = (struct player *) 0x7ce288
        PI_p_itr = 1
        is_ready = true
        rating_text =
"\000\000\000\000\000\000\000\000\212\225I\000\000\000\000\000��|\000\000\000\000\000\221\221I",
'\0' <repeats 13 times>,
"\220\227I\000\000\000\000\000P0\203\000\000\000\000\000\212\225I\000\000\000\000\000��|\000\000\000\000\000\221\221I",
'\0' <repeats 13 times>,
"\220\227I\000\000\000\000\000\a\000\000\000\000\000\000\000\221\221I\000\000\000\000\000\001\000\000\000\000\000\000\000\024\223I\000\000\000\000"
        record_text = "\000�|\000\000\000\000\000\221\221I", '\0'
<repeats 13 times>,
"\220\227I\000\000\000\000\000@/\203\000\000\000\000\000\212\225I\000\000\000\000\000��|\000\000\000\000\000\221\221I",
'\0' <repeats 13 times>,
"\220\227I\000\000\000\000\000\020\000\000\0000\000\000\000\212\225I\000\000\000\000\000��|\000\000\000\000\000\221\221I",
'\0' <repeats 13 times>, "\220\227I\000\000\000\000"
        nation = 0x56c46c0 "Greek"
        leader = 0x7cb3ec "Alexander"
        team = 0x7cab48 "Team 0"
        name = "<Easy
AI>\000\000\000\000\000\000\000\003\000\000\000\000\000\000\000\025\221I\000\000\000\000\000d\235s"
        __PRETTY_FUNCTION__ = "update_conn_list_dialog"
#7  0x000000000042e80a in handle_player_info (pinfo=0x568d560) at
../../src.patched/client/packhand.c:1652
        myiter = (struct genlist_link *) 0x0
        msg = "\2202�\006", '\0' <repeats 20 times>,
"[EMAIL PROTECTED]
[EMAIL 
PROTECTED]@bK�\177\000\000\000\000\000\000\005\000\000\000;\000\000\000\000\000\000\000�\n�b\005\000\000\000pAbK�\177\000\000\001\000\000\000\000\000\000\000��������dqr-����pAbK�\177\000\000\020�\203",
'\0' <repeats 13 times>,
"[EMAIL PROTECTED]@�l\005\000\000\000\000\000�g\003\000"...
        pplayer = (struct player *) 0x7cb3e8
        research = <value optimized out>
        is_new_nation = true
        __PRETTY_FUNCTION__ = "handle_player_info"
#8  0x0000000000432657 in client_handle_packet
(type=PACKET_PROCESSING_STARTED, packet=0x5f6c616572203a36)
    at ../../src.patched/client/packhand_gen.c:134
No locals.
#9  0x0000000000414d0d in handle_packet_input (packet=0x1841, type=39)
    at ../../src.patched/client/civclient.c:404
No locals.
#10 0x0000000000418e21 in input_from_server (fd=<value optimized out>)
    at ../../src.patched/client/clinet.c:382
        result = true
        packet = (void *) 0x0
        type = PACKET_PLAYER_INFO
        __PRETTY_FUNCTION__ = "input_from_server"
#11 0x00002ae75fcbedb3 in gdk_io_invoke (source=<value optimized out>,
condition=<value optimized out>,
    data=<value optimized out>) at
/build/buildd/gtk+2.0-2.11.5/gdk/gdkevents.c:976
        closure = (GdkIOClosure *) 0x365bfe0
        gdk_cond = GDK_INPUT_READ
#12 0x00002ae7620c4d93 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
No symbol table info available.
#13 0x00002ae7620c808d in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#14 0x00002ae7620c839a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#15 0x00002ae75f8045a3 in IA__gtk_main () at
/build/buildd/gtk+2.0-2.11.5/gtk/gtkmain.c:1144
        tmp_list = (GList *) 0x2039de0
        functions = (GList *) 0x0
        init = (GtkInitFunction *) 0xcaa5b0
        loop = (GMainLoop *) 0x140b110
#16 0x00000000004c08da in ui_main (argc=1, argv=0x7fff4b624d18)
    at ../../../src.patched/client/gui-gtk-2.0/gui_main.c:1424
        home = <value optimized out>
        sig = <value optimized out>
        style = <value optimized out>
#17 0x0000000000415171 in main (argc=<value optimized out>, argv=0x7fff4b624d18)
    at ../../src.patched/client/civclient.c:361
        i = 1
        loglevel = 2
        ui_options = <value optimized out>
        ui_separator = <value optimized out>
        option = <value optimized out>
        user_tileset = false



 - ML



_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to