Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2006:
[Freeciv-Dev] Re: (PR#15204) SDL client: segfault with city names turned
Home

[Freeciv-Dev] Re: (PR#15204) SDL client: segfault with city names turned

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#15204) SDL client: segfault with city names turned on
From: "Daniel Markstedt" <himasaram@xxxxxxxx>
Date: Tue, 17 Jan 2006 20:02:04 -0800
Reply-to: bugs@xxxxxxxxxxx

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

On Tue, 2006-01-17 at 19:32 -0800, Christian Prochaska wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=15204 >
> 
> Daniel Markstedt schrieb:
> 
> ><URL: http://bugs.freeciv.org/Ticket/Display.html?id=15204 >
> >
> >The SDL client defaults to hidden city names on the map.
> >
> >When turned on (Map Options -> City Names) the client segfaults
> >immediately or after a few turns.
> >
> >Same problem with City Productions.
> >
> >-Daniel
> >
> 
> On my PC the client tends to run into a cycle, because
> add_idle_callback() is not fully implemented yet and for now just calls
> the idle function immediately.
> 
...
> 
> Maybe your segmentation faults are related to this. Can you post a
> backtrace? (http://www.freeciv.org/index.php/Bug_Reporting)
> 
> 

The full session leading up to the crash attached.

Worth noting is that the last 3k or so 'Unimplemented add_idle_callback'
messages were received in less than one minute.

-Daniel

daniel@myspys:~$ gdb civclient
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library 
"/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/civclient
[Thread debugging using libthread_db enabled]
[New Thread -1215064384 (LWP 26854)]
2: Using Video Output: x11
[New Thread -1219249232 (LWP 26857)]
open /dev/sequencer: No such file or directory
1: Unimplemented add_idle_callback.
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 4 times (total 8 repeats)
1: last message repeated 8 times (total 16 repeats)
1: last message repeated 16 times (total 32 repeats)
1: last message repeated 32 times (total 64 repeats)
1: last message repeated 64 times (total 128 repeats)
1: last message repeated 128 times (total 256 repeats)
1: last message repeated 122 times (total 378 repeats)
2: PORT ME: diplomat_handled_in diplomat_dialog()
1: Unimplemented add_idle_callback.
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 4 times (total 8 repeats)
1: last message repeated 8 times (total 16 repeats)
1: last message repeated 16 times (total 32 repeats)
1: last message repeated 32 times (total 64 repeats)
1: last message repeated 64 times (total 128 repeats)
1: last message repeated 128 times (total 256 repeats)
1: last message repeated 216 times (total 472 repeats)
2: PORT ME: diplomat_handled_in diplomat_dialog()
1: Unimplemented add_idle_callback.
1: last message repeated 2 times
1: last message repeated 2 times (total 4 repeats)
1: last message repeated 4 times (total 8 repeats)
1: last message repeated 8 times (total 16 repeats)
1: last message repeated 16 times (total 32 repeats)
1: last message repeated 32 times (total 64 repeats)
1: last message repeated 64 times (total 128 repeats)
1: last message repeated 128 times (total 256 repeats)
1: last message repeated 256 times (total 512 repeats)
1: last message repeated 512 times (total 1024 repeats)
1: last message repeated 1024 times (total 2048 repeats)
1: last message repeated 2048 times (total 4096 repeats)
1: last message repeated 4096 times (total 8192 repeats)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215064384 (LWP 26854)]
0xb7ebe6b8 in SDL_InvalidateMap () from /usr/lib/libSDL-1.2.so.0
(gdb) bt full
#0  0xb7ebe6b8 in SDL_InvalidateMap () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#1  0xb7ebf3a8 in SDL_MapSurface () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#2  0xb7ebfaeb in SDL_LowerBlit () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#3  0xb7ebfdc8 in SDL_UpperBlit () from /usr/lib/libSDL-1.2.so.0
No symbol table info available.
#4  0x080e1ab7 in canvas_put_sprite_full (pcanvas=0x8d89760,
    canvas_x=148412256, canvas_y=148412256, sprite=0x8d89760) at canvas.c:94
        dst = {x = 110, y = 210, w = 60, h = 60}
#5  0x080606d8 in put_one_element (pcanvas=0x8b795f8, layer=LAYER_TERRAIN1,
    ptile=0xb5786cb0, pedge=0x0, pcorner=0x0, punit=0x0, pcity=0x0,
    canvas_x=110, canvas_y=210, citymode=0x0) at mapview_common.c:872
        tile_sprs = {{foggable = false, sprite = 0x8d89798, offset_x = 0,
    offset_y = 0}, {foggable = false, sprite = 0x89bd868, offset_x = 0,
    offset_y = 0}, {foggable = 148, sprite = 0xbf4385e0, offset_x = 136698000,
    offset_y = 134}, {foggable = 234, sprite = 0xb7e61b5c, offset_x = 0,
    offset_y = -1086093856}, {foggable = 234, sprite = 0x0, offset_x = 64,
    offset_y = 153291456}, {foggable = 8, sprite = 0x9230b10, offset_x = 1,
    offset_y = 0}, {foggable = false, sprite = 0xa, offset_x = 0,
    offset_y = 0}, {foggable = 49, sprite = 0x90eaec7, offset_x = 255,
    offset_y = 1}, {foggable = 97, sprite = 0x0, offset_x = 0,
---Type <return> to continue, or q <return> to quit---
    offset_y = 151957189}, {foggable = 92, sprite = 0xff,
    offset_x = 136698000, offset_y = -1086093784}, {foggable = 3,
    sprite = 0x7, offset_x = 1, offset_y = 0}, {foggable = 49,
    sprite = 0x90eaec0, offset_x = 255, offset_y = 3}, {foggable = 152,
    sprite = 0x825dc9e, offset_x = 136699032, offset_y = 151957184}, {
    foggable = 92, sprite = 0x825d890, offset_x = 136708616,
    offset_y = -1086093064}, {foggable = 47, sprite = 0x8, offset_x = 1,
    offset_y = 136699032}, {foggable = 144, sprite = 0x4, offset_x = 0,
    offset_y = 0}, {foggable = false, sprite = 0x3, offset_x = 0,
    offset_y = -1209324445}, {foggable = 192, sprite = 0x90eaca8,
    offset_x = 2, offset_y = -1086093656}, {foggable = 159,
    sprite = 0x90eb398, offset_x = 2, offset_y = -1210642212}, {foggable = 24,
    sprite = 0x6, offset_x = 151957296, offset_y = 151958504}, {
    foggable = 160, sprite = 0xbf438834, offset_x = 136708552,
    offset_y = 136708424}, {foggable = 192, sprite = 0x90eaf30, offset_x = 2,
    offset_y = -1086093576}, {foggable = 216, sprite = 0x90eb398,
    offset_x = 2, offset_y = 136708492}, {foggable = 72, sprite = 0x82601b8,
    offset_x = 136708504, offset_y = 3}, {foggable = 5, sprite = 0x8260218,
    offset_x = 3, offset_y = 7}, {foggable = 189, sprite = 0x3, offset_x = 6,
    offset_y = 6}, {foggable = 192, sprite = 0x90eb3e8, offset_x = 146249120,
    offset_y = -1086092472}, {foggable = 253, sprite = 0x90eb398,
    offset_x = -1210636032, offset_y = 151959384}, {foggable = 92,
    sprite = 0x8b797d8, offset_x = 151956648, offset_y = -1086093528}, {
---Type <return> to continue, or q <return> to quit---
    foggable = 150, sprite = 0x90eb758, offset_x = -1209656484,
    offset_y = -1086093496}, {foggable = 193, sprite = 0x825cb90,
    offset_x = 151959384, offset_y = 153262936}, {foggable = 240,
    sprite = 0x92ae810, offset_x = 146249688, offset_y = -1086093464}, {
    foggable = 9, sprite = 0x825cb90, offset_x = 146249688,
    offset_y = -1086093448}, {foggable = 18, sprite = 0xb7e61b5c,
    offset_x = -1086092952, offset_y = -1086093448}, {foggable = 197,
    sprite = 0x8b797d8, offset_x = -1209656484, offset_y = -1086093208}, {
    foggable = 105, sprite = 0xbf4388d8, offset_x = 153806776,
    offset_y = 104}, {foggable = 122, sprite = 0x26ec, offset_x = 0,
    offset_y = 0}, {foggable = false, sprite = 0xbf4388d8,
    offset_x = 146249288, offset_y = 0}, {foggable = 20, sprite = 0xb7c9b7c0,
    offset_x = 104008, offset_y = 0}, {foggable = false, sprite = 0x1,
    offset_x = 146249688, offset_y = 146249736}, {foggable = 192,
    sprite = 0x6000, offset_x = 24576, offset_y = 136699696}, {foggable = 202,
    sprite = 0x4b, offset_x = -1086092980, offset_y = 153787208}, {
    foggable = 52, sprite = 0x8b93330, offset_x = 146355044,
    offset_y = -1086093256}, {foggable = 15, sprite = 0x8b79648, offset_x = 1,
    offset_y = -1210635328}, {foggable = 72, sprite = 0x0,
    offset_x = -1086093224, offset_y = 136694672}, {foggable = 56,
    sprite = 0xb7d72900, offset_x = 72, offset_y = -1210636032}, {
    foggable = 144, sprite = 0xb7d6452f, offset_x = 136708424,
    offset_y = 136708552}, {foggable = 56, sprite = 0x9230618,
---Type <return> to continue, or q <return> to quit---
    offset_x = 146289904, offset_y = 2}, {foggable = 88, sprite = 0x0,
    offset_x = 11, offset_y = 384}, {foggable = 164, sprite = 0x3d,
    offset_x = 146354832, offset_y = -1210642212}, {foggable = 188,
    sprite = 0xbf438898, offset_x = -1211464543, offset_y = -1086093124}, {
    foggable = false, sprite = 0x8166aff, offset_x = 0, offset_y = 135686911},
  {foggable = 220, sprite = 0x8157178, offset_x = -1086092232,
    offset_y = -1086092888}, {foggable = 166, sprite = 0xbf4388bc,
    offset_x = 135623032, offset_y = -1086092232}, {foggable = false,
    sprite = 0x0, offset_x = -1086092964, offset_y = -1086093124}, {
    foggable = true, sprite = 0x8166900, offset_x = 135686400,
    offset_y = 135686400}, {foggable = false, sprite = 0x8166920,
    offset_x = 135686911, offset_y = 135686400}, {foggable = 255,
    sprite = 0x0, offset_x = 0, offset_y = 0}, {foggable = false,
    sprite = 0x0, offset_x = 0, offset_y = 0}, {foggable = 52,
    sprite = 0x8000000, offset_x = 0, offset_y = 0}, {foggable = 225,
    sprite = 0x517, offset_x = 1303, offset_y = -1}, {foggable = 48,
    sprite = 0x8b932fc, offset_x = 146354908, offset_y = 136694672}, {
    foggable = 56, sprite = 0xb7d72900, offset_x = 72,
    offset_y = -1210636032}, {foggable = 184, sprite = 0x92a9ae0,
    offset_x = 153262936, offset_y = 12}, {foggable = 56, sprite = 0xb7d70b20,
    offset_x = 0, offset_y = -1086092904}, {foggable = 64, sprite = 0x0,
    offset_x = 384, offset_y = 576}, {foggable = 92, sprite = 0x825d830,
    offset_x = 7, offset_y = -1086092872}, {foggable = false, sprite = 0x0,
---Type <return> to continue, or q <return> to quit---
    offset_x = 0, offset_y = 4096}, {foggable = false, sprite = 0xb7ca56ca,
    offset_x = -1210636004, offset_y = 7}, {foggable = 119,
    sprite = 0x8166900, offset_x = -1210642212, offset_y = -1210641056}, {
    foggable = 160, sprite = 0xb7eedcc0, offset_x = -1209082688,
    offset_y = -1086092744}, {foggable = 106, sprite = 0x8b79288,
    offset_x = -1210641056, offset_y = -1086092296}, {foggable = 98,
    sprite = 0xb7d71560, offset_x = 480, offset_y = 0}, {foggable = 32,
    sprite = 0x4, offset_x = 2640, offset_y = 136522120}, {foggable = 9,
    sprite = 0x8b792a8, offset_x = 8, offset_y = 16}, {foggable = 40,
    sprite = 0x8b8b2a8, offset_x = 3211264, offset_y = 146249736}, {
    foggable = false, sprite = 0x8b932fc, offset_x = 40, offset_y = 564}, {
    foggable = 248, sprite = 0x28, offset_x = 136803896,
    offset_y = -1086092712}, {foggable = 247, sprite = 0x8bf4c90,
    offset_x = 136803896, offset_y = -1086092696}, {foggable = 109,
    sprite = 0x8b79288, offset_x = -1086092708, offset_y = 0}}
        count = 2
#6  0x08062e1e in update_map_canvas (canvas_x=10, canvas_y=210, width=141,
    height=40) at mapview_common.c:1066
        cx = 110
        cy = 210
        pedge = (struct tile_edge *) 0x0
        pcorner = (struct tile_corner *) 0x0
        GRI_edge = {type = EDGE_WE, tile = {0xb5786c68, 0xb5786cb0}}
---Type <return> to continue, or q <return> to quit---
        GRI_corner = {tile = {0xb57856c0, 0xb5785708, 0xb5786cf8, 0xb5786cb0}}
        ptile = (struct tile *) 0xb5786cb0
        gui_x0 = 1160
        gui_y0 = 1200
        tmp = Variable "tmp" is not available.
(gdb)

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