Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2002:
[Freeciv-Dev] Re: Client core dump unit_list_iterate (PR#1525)
Home

[Freeciv-Dev] Re: Client core dump unit_list_iterate (PR#1525)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christian Knoke <chrisk@xxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Client core dump unit_list_iterate (PR#1525)
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Sat, 1 Jun 2002 09:40:54 +0200

On Fri, May 31, 2002 at 03:30:22PM -0700, Christian Knoke wrote:
> CVS 31 MAY 2002
> 
> I've had a client crash in a special situation:
> Just before game end, after I conquered the last
> enemy city, before turn done, I saved the game.
> Loading the saved game and reconnecting the client crashed it.
> 
> It was not reproducible, it seems to depend on the client state.
> 
> Backtrace:
> #0  0x080abebf in city_support (pcity=0x84b7828) at city.c:1900
> 1900      unit_list_iterate(pcity->units_supported, this_unit) {
> (gdb) bt
> #0  0x080abebf in city_support (pcity=0x84b7828) at city.c:1900
> #1  0x080ac10b in generic_city_refresh (pcity=0x84b7828) at city.c:1989
> #2  0x080cb557 in real_fill_out_result (pcity=0x84b7828, result=0xbffff16c)
>     at cma_core.c:869
> #3  0x080cba4c in fill_out_result (pcity=0x84b7828, result=0xbffff16c, 
>     base_combination=0x813d564, scientists=0, taxmen=0) at cma_core.c:1169
> #4  0x080cc561 in optimize_final (pcity=0x84b7828, parameter=0xbffff268, 
>     best_result=0xbffff228) at cma_core.c:1628
> #5  0x080cc9eb in cma_query_result (pcity=0x84b7828, parameter=0xbffff268, 
>     result=0xbffff228) at cma_core.c:1868
> #6  0x080cc76e in handle_city (pcity=0x84b7828) at cma_core.c:1737
> #7  0x080cc8bc in city_changed (pcity=0x84b7828) at cma_core.c:1797
> #8  0x080c9b41 in execute_call (call=0x8b646c8) at agents.c:194
> #9  0x080c9b9e in call_handle_methods () at agents.c:228
> #10 0x080c9c49 in thaw () at agents.c:266
> #11 0x080c9d6b in agents_start_turn () at agents.c:382
> #12 0x0806cbdb in handle_start_turn () at packhand.c:751
> #13 0x08060ae5 in handle_packet_input (packet=0x849b108, type=92) at
> civclient.c:438
> #14 0x08063943 in input_from_server (fd=7) at clinet.c:327
> #15 0x08090432 in get_net_input (data=0x0, fid=7, condition=GDK_INPUT_READ)
>     at gui_main.c:1070
> #16 0x40193934 in gdk_io_invoke () from /usr/lib/libgdk-1.2.so.0
> #17 0x401c53b0 in g_io_unix_dispatch () from /usr/lib/libglib-1.2.so.0
> #18 0x401c6c46 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
> #19 0x401c7273 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
> #20 0x401c743c in g_main_run () from /usr/lib/libglib-1.2.so.0
> #21 0x400df76c in gtk_main () from /usr/lib/libgtk-1.2.so.0
> #22 0x0808feaf in ui_main (argc=5, argv=0xbffff624) at gui_main.c:865
> #23 0x08060780 in main (argc=5, argv=0xbffff624) at civclient.c:214
> #24 0x4034d7ee in __libc_start_main () from /lib/libc.so.6
> 
> While I tried to reproduce it, I got a message at game start (in german):
> ASV: [] wird nicht mehr von uns verwaltet, da es uns nicht mehr gehört.
> Note, the "[]" represents a square on the screen. There should have been
> the city name. Also the message is wrong.
> 
> core file available.

Can you do "p pcity->units_supported" in gdb.

Note that the core file is meaningless without the right binary. So
please save the binary to prevent a different binary after the next
cvs update.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
  (On the statement print "42 monkeys"+"1 snake"): BTW, both perl and Python
  get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when 
  the answer is clearly "41 monkeys and 1 fat snake".  
    -- Jim Fulton, 10 Aug 1999


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