Complete.Org: Mailing Lists: Archives: freeciv-dev: April 1999:
[Freeciv-Dev] CVS seg faults (GTK client)
Home

[Freeciv-Dev] CVS seg faults (GTK client)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] CVS seg faults (GTK client)
From: Greg Wooledge <wooledge@xxxxxxxxxxx>
Date: Fri, 30 Apr 1999 20:26:53 -0400

This is my first time playing the GTK Freeciv client (I've always played
the Xaw one before now).  The seg fault occurred when I clicked on my city
(Babylon).

Program received signal SIGSEGV, Segmentation fault.
0x401b0c39 in g_list_alloc ()
(gdb) where
#0  0x401b0c39 in g_list_alloc ()
#1  0x401b0e4a in g_list_append ()
#2  0x40071d50 in gtk_box_pack_start ()
#3  0x805c56b in create_city_dialog (pcity=0x8151720, make_modal=0)
    at citydlg.c:474
#4  0x805ba91 in popup_city_dialog (pcity=0x8151720, make_modal=0)
    at citydlg.c:235
#5  0x806e0a0 in butt_down_mapcanvas (widget=0x813c290, event=0x81528a0)
    at mapctrl.c:862
#6  0x40144e89 in   ()
#7  0x401068b5 in gtk_signal_remove_emission_hook ()
#8  0x40105c1e in gtk_signal_set_funcs ()
#9  0x40103bdf in gtk_signal_emit ()
#10 0x4013bb68 in gtk_widget_event ()
#11 0x400d7162 in gtk_propagate_event ()
#12 0x400d62e8 in gtk_main_do_event ()
#13 0x4018228b in gdk_wm_protocols_filter ()
#14 0x401b1d66 in g_get_current_time ()
#15 0x401b22b1 in g_get_current_time ()
#16 0x401b2451 in g_main_run ()
#17 0x400d5cdb in gtk_main ()
#18 0x806859b in ui_main (argc=1, argv=0xbffffa84) at gui_main.c:738
#19 0x8058e14 in main (argc=1, argv=0xbffffa84) at civclient.c:106

Compiled with egcs 2.91.66 under Debian GNU/Linux unstable (x86) with
libgtk 1.2.1.

The following warning appears (twice) in the window from which the client
was run:

GLib-CRITICAL **: file gmem.c: line 723 (g_mem_chunk_free): assertion 
`mem_chunk != NULL' failed.

Here's a little more information -- but I don't understand the GTK
client at all yet, so I'm not sure what to look for.

(gdb) frame 3
#3  0x805c56b in create_city_dialog (pcity=0x8151720, make_modal=0)
    at citydlg.c:474
474         gtk_box_pack_start(GTK_BOX(box), pdialog->present_unit_boxes[i],
(gdb) print *pcity
$1 = {id = 122, owner = 0, x = 28, y = 22, 
  name = "Babylon\000\000\002\000\000\000\000\000\000\001", '\000' <repeats 11 
times>, "\230þ\r\b", size = 3, ppl_happy = {1321, 1077458464, 1077458464, 0, 
[...]
  units_supported = {list = {nelements = 0, 
      null_link = {next = 0x81518b4, prev = 0x81518b4, dataptr = 0x0}, 
      head_link = 0x81518b4, tail_link = 0x81518b4}}
[...]
(gdb) print i
$2 = 2

-- 
Greg Wooledge                    | Distributed.NET http://www.distributed.net/
wooledge@xxxxxxxxxxx             | because a CPU is a terrible thing to waste.
http://www.kellnet.com/wooledge/ |

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