Complete.Org: Mailing Lists: Archives: freeciv-dev: December 1998:
[Freeciv-Dev] Investigate city segmentation fault
Home

[Freeciv-Dev] Investigate city segmentation fault

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Development List <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Investigate city segmentation fault
From: "Andrew E. Schulman" <andrex@xxxxxxxxxxx>
Date: Wed, 09 Dec 1998 09:31:07 -0500

Following Mitch's directions, I ran the civclient with gdb and caught the
following segmentation fault when I used "Investigate city" in the Spy
popup:

(gdb) run
Starting program: /tmp/freeciv/client/civclient 

Program received signal SIGSEGV, Segmentation fault.
0x38a48 in put_unit_pixmap (punit=0xfedb0, pm=125832924, xtile=0, ytile=0)
    at mapview.c:978
978          
mysprite=get_tile_sprite(game.players[punit->owner].race+FLAG_TILES);
(gdb) bt
#0  0x38a48 in put_unit_pixmap (punit=0xfedb0, pm=125832924, xtile=0,
ytile=0)
    at mapview.c:978
#1  0x21234 in city_dialog_update_supported_units (pdialog=0x22c5e8,
unitid=0)
    at citydlg.c:1170
#2  0x1e470 in refresh_city_dialog (pcity=0x1da038) at citydlg.c:201
#3  0x1f608 in create_city_dialog (pcity=0x1da038, make_modal=0)
    at citydlg.c:626
#4  0x1e76c in popup_city_dialog (pcity=0x1da038, make_modal=0)
    at citydlg.c:262
#5  0x3f00c in handle_city_info (packet=0x1faed0) at packhand.c:220
#6  0x23110 in handle_packet_input (packet=0x1faed0 "", type=15)
    at civclient.c:151
#7  0x23c5c in get_net_input (client_data=0x0, fid=0xf03b4, id=0xeffff0b4)
    at clinet.c:147
#8  0xef6be76c in DoOtherSources ()
#9  0xef6bea24 in XtAppNextEvent ()
#10 0xef6b6830 in XtAppMainLoop ()
#11 0x48680 in x_main (argc=1, argv=0xeffff3b4) at xmain.c:483
#12 0x22ed0 in main (argc=1, argv=0xeffff3b4) at civclient.c:84

Here's another one, also from "Investigate City":

Program received signal SIGSEGV, Segmentation fault.
0x2c258 in get_tile_sprite (tileno=16777610) at graphics.c:60
60        return tile_sprites[tileno];
(gdb) bt
#0  0x2c258 in get_tile_sprite (tileno=16777610) at graphics.c:60
#1  0x3a1d8 in pixmap_put_overlay_tile (pixmap=130032404, x=0, y=1, 
    tileno=16777610) at mapview.c:1351
#2  0x38d94 in put_unit_pixmap_city_overlays (punit=0x41ed98, pm=130032404, 
    unhappiness=130024734, upkeep=16777216) at mapview.c:1045
#3  0x21274 in city_dialog_update_supported_units (pdialog=0x408a98,
unitid=0)
    at citydlg.c:1174
#4  0x1e470 in refresh_city_dialog (pcity=0x411cb8) at citydlg.c:201
#5  0x1f608 in create_city_dialog (pcity=0x411cb8, make_modal=0)
    at citydlg.c:626
#6  0x1e76c in popup_city_dialog (pcity=0x411cb8, make_modal=0)
    at citydlg.c:262
#7  0x3f00c in handle_city_info (packet=0x384980) at packhand.c:220
#8  0x23110 in handle_packet_input (packet=0x384980 "", type=15)
    at civclient.c:151
#9  0x23c5c in get_net_input (client_data=0x0, fid=0x105414, id=0xeffff0b4)
    at clinet.c:147
#10 0xef6be6f4 in DoOtherSources ()
#11 0xef6bea24 in XtAppNextEvent ()
#12 0xef6b6830 in XtAppMainLoop ()
#13 0x48680 in x_main (argc=1, argv=0xeffff3b4) at xmain.c:483
#14 0x22ed0 in main (argc=1, argv=0xeffff3b4) at civclient.c:84


-------------------------------------------------------
Andrew E. Schulman
Biometry and Field Studies Branch
National Institute of Neurological Disorders and Stroke
7550 Wisconsin Ave. Room 7C08
Bethesda, MD 20892
(301) 496-4795
(301) 496-3444 fax
Andrew_Schulman@xxxxxxx


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Investigate city segmentation fault, Andrew E. Schulman <=