Follow-up Comment #1, bug #15347 (project freeciv):

Here's a backtrace of S2_1 r16811, in a case where it died instantly at
startup.

Attached is a screenshot of a different session, showing bad drawing; that
time it died after a bit of scrolling.


#0  0x00000000004ccc9a in putline (pDest=0x2418930, x0=671, y0=-96, x1=32,
    y1=-96, color=65480) at graphics.c:832
No locals.
#1  0x000000000041d141 in draw_traderoute_line (ptile1=<value optimized
out>,
    ptile2=<value optimized out>, color=<value optimized out>)
    at mapview_common.c:1161
        line_count = 1
        i = 1
        pcolor = (struct color *) 0x7f42d8cb4460
#2  0x000000000041d1c5 in draw_traderoutes_for_city (pcity_src=0x3778dd0)
    at mapview_common.c:1185
        pcity_dest = (const struct city *) 0xfffffd81
#3  0x000000000041e13d in update_map_canvas (canvas_x=0, canvas_y=288,
    width=640, height=192) at mapview_common.c:1210
        gui_x0 = -32
        gui_y0 = 480
        full = false
        tmp = <value optimized out>
#4  0x000000000041fe87 in base_set_mapview_origin (gui_x0=-32, gui_y0=192)
    at mapview_common.c:521
        target = (struct canvas *) 0x2418a40
        old_gui_x0 = 0
        old_gui_y0 = 0
        dx = -32
        dy = 192
        width = 640
        height = <value optimized out>
        common_x0 = <value optimized out>
        common_x1 = 608
        common_y0 = 192
        common_y1 = 480
        update_x0 = -32
        update_x1 = 0
        update_y0 = 288
        update_y1 = 192
#5  0x0000000000420089 in set_mapview_origin (gui_x0=-32, gui_y0=192)
    at mapview_common.c:625
        xmin = -5072
        xmax = 8768
        ymin = -240
        ymax = 6840
        xsize = 640
        ysize = 480
        anim_timer = (struct timer *) 0x0
        total_frames = 0.01
        total_time = 0.0001
#6  0x000000000042016b in center_tile_mapcanvas (ptile=<value optimized
out>)
    at mapview_common.c:799
        gui_x = -32
        gui_y = 32
        first = false
#7  0x000000000040bd9e in center_on_something () at climisc.c:417
        pcity = <value optimized out>
        __PRETTY_FUNCTION__ = "center_on_something"
#8  0x0000000000424bc2 in handle_game_state (value=3) at packhand.c:394
No locals.
#9  0x0000000000427ae4 in client_handle_packet (type=4294966657, 
    packet=0xffffffa0) at packhand_gen.c:58
No locals.
#10 0x000000000040949d in client_packet_input (packet=<value optimized out>,

    type=12) at civclient.c:456
No locals.
#11 0x000000000040d151 in input_from_server (fd=<value optimized out>)
    at clinet.c:387
        result = true
        packet = (void *) 0xfffffd81
        type = PACKET_GAME_STATE
        __PRETTY_FUNCTION__ = "input_from_server"
#12 0x00000000004ceed0 in gui_event_loop (pData=0x0, loop_action=0, 
    key_down_handler=0x4ce4c0 <main_key_down_handler>, 
    key_up_handler=0x4ce070 <main_key_up_handler>, 
    mouse_button_down_handler=0x4ce400 <main_mouse_button_down_handler>, 
    mouse_button_up_handler=0x4ce3a0 <main_mouse_button_up_handler>, 
    mouse_motion_handler=0x4ce0a0 <main_mouse_motion_handler>)
    at gui_main.c:724
        ID = 0
        t_current = 12417
        t_last_unit_anim = 12417
        t_last_map_scrolling = 12417
        real_timer_next_call = 13229
        tv = {tv_sec = 0, tv_usec = 9999}
        civfdset = {fds_bits = {2048, 0 <repeats 15 times>}}
        result = 1
        schot_nr = 0
        schot = '\0' <repeats 31 times>
#13 0x00000000004cf2d2 in ui_main (argc=1, argv=<value optimized out>)
    at gui_main.c:1005
        __Net_User_Event = {type = 24 '\030', active = {type = 24 '\030', 
    gain = 88 'X', state = 81 'Q'}, key = {type = 24 '\030', which = 88 'X',

    state = 81 'Q', keysym = {scancode = 1 '\001', sym = SDLK_UNKNOWN, 
      mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030', 
    which = 88 'X', state = 81 'Q', x = 1, y = 0, xrel = 0, yrel = 0}, 
  button = {type = 24 '\030', which = 88 'X', button = 81 'Q', state = 0
'\0', 
    x = 1, y = 0}, jaxis = {type = 24 '\030', which = 88 'X', axis = 81 'Q',

    value = 1}, jball = {type = 24 '\030', which = 88 'X', ball = 81 'Q', 
    xrel = 1, yrel = 0}, jhat = {type = 24 '\030', which = 88 'X', 
    hat = 81 'Q', value = 0 '\0'}, jbutton = {type = 24 '\030', 
    which = 88 'X', button = 81 'Q', state = 0 '\0'}, resize = {
    type = 24 '\030', w = 1, h = 0}, expose = {type = 24 '\030'}, quit = {
    type = 24 '\030'}, user = {type = 24 '\030', code = 1, data1 = 0x0, 
    data2 = 0x0}, syswm = {type = 24 '\030', msg = 0x0}}
        __GGZ_User_Event = {type = 24 '\030', active = {type = 24 '\030', 
    gain = 0 '\0', state = 0 '\0'}, key = {type = 24 '\030', which = 0 '\0',

    state = 0 '\0', keysym = {scancode = 2 '\002', sym = SDLK_UNKNOWN, 
      mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030', 
    which = 0 '\0', state = 0 '\0', x = 2, y = 0, xrel = 0, yrel = 0}, 
  button = {type = 24 '\030', which = 0 '\0', button = 0 '\0', state = 0
'\0', 
    x = 2, y = 0}, jaxis = {type = 24 '\030', which = 0 '\0', axis = 0 '\0',

    value = 2}, jball = {type = 24 '\030', which = 0 '\0', ball = 0 '\0', 
    xrel = 2, yrel = 0}, jhat = {type = 24 '\030', which = 0 '\0', 
    hat = 0 '\0', value = 0 '\0'}, jbutton = {type = 24 '\030', 
    which = 0 '\0', button = 0 '\0', state = 0 '\0'}, resize = {
    type = 24 '\030', w = 2, h = 0}, expose = {type = 24 '\030'}, quit = {
    type = 24 '\030'}, user = {type = 24 '\030', code = 2, data1 = 0x0, 
    data2 = 0x0}, syswm = {type = 24 '\030', msg = 0x0}}
        __Anim_User_Event = {type = 24 '\030', active = {type = 24 '\030', 
    gain = 88 'X', state = 81 'Q'}, key = {type = 24 '\030', which = 88 'X',

    state = 81 'Q', keysym = {scancode = 3 '\003', sym = SDLK_UNKNOWN, 
      mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030', 
    which = 88 'X', state = 81 'Q', x = 3, y = 0, xrel = 0, yrel = 0}, 
  button = {type = 24 '\030', which = 88 'X', button = 81 'Q', state = 0
'\0', 
    x = 3, y = 0}, jaxis = {type = 24 '\030', which = 88 'X', axis = 81 'Q',

    value = 3}, jball = {type = 24 '\030', which = 88 'X', ball = 81 'Q', 
    xrel = 3, yrel = 0}, jhat = {type = 24 '\030', which = 88 'X', 
    hat = 81 'Q', value = 0 '\0'}, jbutton = {type = 24 '\030', 
    which = 88 'X', button = 81 'Q', state = 0 '\0'}, resize = {
    type = 24 '\030', w = 3, h = 0}, expose = {type = 24 '\030'}, quit = {
    type = 24 '\030'}, user = {type = 24 '\030', code = 3, data1 = 0x0, 
    data2 = 0x0}, syswm = {type = 24 '\030', msg = 0x0}}
        __Info_User_Event = {type = 24 '\030', active = {type = 24 '\030', 
    gain = 254 '�', state = 254 '�'}, key = {type = 24 '\030', 
    which = 254 '�', state = 254 '�', keysym = {scancode = 5 '\005', 
      sym = SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {
    type = 24 '\030', which = 254 '�', state = 254 '�', x = 5, y = 0, 
    xrel = 0, yrel = 0}, button = {type = 24 '\030', which = 254 '�', 
    button = 254 '�', state = 254 '�', x = 5, y = 0}, jaxis = {
    type = 24 '\030', which = 254 '�', axis = 254 '�', value = 5}, jball
= {
    type = 24 '\030', which = 254 '�', ball = 254 '�', xrel = 5, yrel =
0}, 
  jhat = {type = 24 '\030', which = 254 '�', hat = 254 '�', value = 254
'�'}, 
  jbutton = {type = 24 '\030', which = 254 '�', button = 254 '�', 
    state = 254 '�'}, resize = {type = 24 '\030', w = 5, h = 0}, expose =
{
    type = 24 '\030'}, quit = {type = 24 '\030'}, user = {type = 24 '\030', 
    code = 5, data1 = 0x0, data2 = 0x0}, syswm = {type = 24 '\030', msg =
0x0}}
        __Flush_User_Event = {type = 24 '\030', active = {type = 24 '\030', 
    gain = 0 '\0', state = 0 '\0'}, key = {type = 24 '\030', which = 0 '\0',

    state = 0 '\0', keysym = {scancode = 6 '\006', sym = SDLK_UNKNOWN, 
      mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030', 
    which = 0 '\0', state = 0 '\0', x = 6, y = 0, xrel = 0, yrel = 0}, 
  button = {type = 24 '\030', which = 0 '\0', button = 0 '\0', state = 0
'\0', 
    x = 6, y = 0}, jaxis = {type = 24 '\030', which = 0 '\0', axis = 0 '\0',

    value = 6}, jball = {type = 24 '\030', which = 0 '\0', ball = 0 '\0', 
    xrel = 6, yrel = 0}, jhat = {type = 24 '\030', which = 0 '\0', 
    hat = 0 '\0', value = 0 '\0'}, jbutton = {type = 24 '\030', 
    which = 0 '\0', button = 0 '\0', state = 0 '\0'}, resize = {
    type = 24 '\030', w = 6, h = 0}, expose = {type = 24 '\030'}, quit = {
    type = 24 '\030'}, user = {type = 24 '\030', code = 6, data1 = 0x0, 
    data2 = 0x0}, syswm = {type = 24 '\030', msg = 0x0}}
        __pMap_Scroll_User_Event = {type = 24 '\030', active = {
    type = 24 '\030', gain = 0 '\0', state = 0 '\0'}, key = {type = 24
'\030', 
    which = 0 '\0', state = 0 '\0', keysym = {scancode = 7 '\a', 
      sym = SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {
    type = 24 '\030', which = 0 '\0', state = 0 '\0', x = 7, y = 0, xrel = 0,

    yrel = 0}, button = {type = 24 '\030', which = 0 '\0', button = 0 '\0', 
    state = 0 '\0', x = 7, y = 0}, jaxis = {type = 24 '\030', which = 0 '\0',

    axis = 0 '\0', value = 7}, jball = {type = 24 '\030', which = 0 '\0', 
    ball = 0 '\0', xrel = 7, yrel = 0}, jhat = {type = 24 '\030', 
    which = 0 '\0', hat = 0 '\0', value = 0 '\0'}, jbutton = {
    type = 24 '\030', which = 0 '\0', button = 0 '\0', state = 0 '\0'}, 
  resize = {type = 24 '\030', w = 7, h = 0}, expose = {type = 24 '\030'}, 
  quit = {type = 24 '\030'}, user = {type = 24 '\030', code = 7, data1 = 0x0,

    data2 = 0x0}, syswm = {type = 24 '\030', msg = 0x0}}
#14 0x000000000040992f in main (argc=<value optimized out>, 
    argv=0x7fffabca7058) at civclient.c:411
        i = 1
        loglevel = 2
        ui_options = <value optimized out>
        ui_separator = <value optimized out>
        option = 0x0
        user_tileset = false


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15347>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to