URL:
  <http://gna.org/bugs/?16803>

                 Summary: Client crash in utype_has_flag()
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: samedi 02.10.2010 à 19:50
                Category: client
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.2.3+
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:


Program received signal SIGSEGV, Segmentation fault.
0x00000000005144a5 in utype_has_flag (punittype=0xb300000013, flag=20)
    at unittype.c:212
212       assert(flag>=0 && flag<F_LAST);


Back trace:

#0  0x00000000005144a5 in utype_has_flag (punittype=0xb300000013, flag=20)
    at unittype.c:212
        __PRETTY_FUNCTION__ = "utype_has_flag"
#1  0x0000000000449682 in fill_grid_sprite_array (t=<value optimised out>, 
    sprs=<value optimised out>, ptile=<value optimised out>, 
    pedge=0x7fffffffda70, pcorner=<value optimised out>, 
    punit=<value optimised out>, pcity=0x0, citymode=0x0) at tilespec.c:4136
        myiter = 0x0
        dummy_x = -185198318
        dummy_y = 32767
        tile = 0x1d0dfe0
        powner = 0x81ff00
        known = {true, 234}
        unit = {false, 233}
        worked = {240, 233}
        pfocus_units = 0x1433740
        city = {240, 233}
        __PRETTY_FUNCTION__ = "fill_grid_sprite_array"
#2  0x000000000044cf35 in fill_sprite_array (t=<value optimised out>, 
    sprs=<value optimised out>, layer=LAYER_TERRAIN2, ptile=0x0, 
    pedge=<value optimised out>, pcorner=<value optimised out>, punit=0x0, 
    pcity=0x0, citymode=0x0) at tilespec.c:4553
        tileno = <value optimised out>
        tspecial_near = {{vec = "\000"}, {vec = "\000"}, {vec = "\000"}, {
            vec = "\000"}, {vec = "\000"}, {vec = "\000"}, {vec = "\005"}, {
            vec = "\000"}}
        tspecial = {vec = "\000\b"}
        tterrain_near = {0x7e4b00, 0x7e4b00, 0x7e4b00, 0x7e49c0, 0x7e49c0, 
          0x7e49c0, 0x7e5640, 0x7e49c0}
        pterrain = 0x0
        owner = <value optimised out>
        __PRETTY_FUNCTION__ = "fill_sprite_array"
#3  0x00000000004325d9 in put_one_element (pcanvas=0xe64e20, 
    layer=<value optimised out>, ptile=0x0, pedge=<value optimised out>, 
    pcorner=<value optimised out>, punit=<value optimised out>, pcity=0x0, 
    canvas_x=-4, canvas_y=293, citymode=0x0) at mapview_common.c:919
        tile_sprs = {{foggable = false, sprite = 0xd72cd0, offset_x = 0, 
            offset_y = 0}, {foggable = false, sprite = 0x9dfe00, offset_x =
0, 
            offset_y = 0}, {foggable = false, sprite = 0xd6af00, offset_x =
0, 
            offset_y = 0}, {foggable = false, sprite = 0xd7fd50, offset_x =
0, 
            offset_y = 0}, {foggable = false, sprite = 0x9cca80, offset_x =
0, 
            offset_y = 0}, {foggable = 80, sprite = 0x0, offset_x = 10128896,

            offset_y = 0}, {foggable = false, sprite = 0x7ffff383b800, 
            offset_x = 0, offset_y = 0}, {foggable = 12, 
            sprite = 0x7fffffffd820, offset_x = -1, offset_y = 0}, {
            foggable = 200, sprite = 0x7fffffffd8a8, offset_x = 29451824, 
            offset_y = 0}, {foggable = 140, sprite = 0x92c620, offset_x =
142, 
            offset_y = 0}, {foggable = 40, sprite = 0x101010101010101, 
            offset_x = 16, offset_y = 48}, {foggable = 224, 
            sprite = 0x3000000010, offset_x = -9488, offset_y = 32767}, {
            foggable = 48, sprite = 0x6d200000000, offset_x = 28364880, 
            offset_y = 0}, {foggable = 255, sprite = 0x0, offset_x = 0, 
            offset_y = 0}, {foggable = false, sprite = 0x9a1c30, 
            offset_x = 40, offset_y = 0}, {foggable = 97, sprite = 0x0, 
            offset_x = -185171839, offset_y = 32767}, {foggable = false, 
            sprite = 0x2373900, offset_x = 37173504, offset_y = 0}, {
            foggable = 85, sprite = 0x9a1c30, offset_x = -211666635, 
            offset_y = 32767}, {foggable = false, sprite = 0x1acef70, 
            offset_x = 0, offset_y = 0}, {foggable = 48, 
            sprite = 0x3000000010, offset_x = -11200, offset_y = 32767}, {
            foggable = 16, sprite = 0x2373900, offset_x = 16, offset_y = 48},
{
            foggable = 224, sprite = 0x7fffffffdb10, offset_x = -9712, 
            offset_y = 32767}, {foggable = 255, sprite = 0x530b37, 
            offset_x = -10784, offset_y = 32767}, {foggable = false, 
            sprite = 0x0, offset_x = 0, offset_y = 0}, {foggable = false, 
            sprite = 0x92d060, offset_x = 0, offset_y = 0}, {foggable = 60, 
            sprite = 0x7fffffffd9df, offset_x = -10784, offset_y = 32767}, {
            foggable = 223, sprite = 0x0, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x2373900, offset_x = 0, offset_y =
0}, 
          {foggable = false, sprite = 0x0, offset_x = -65536, 
            offset_y = 32767}, {foggable = false, sprite = 0x7fffffffd6b0, 
            offset_x = -10960, offset_y = 32767}, {foggable = 192, 
            sprite = 0x7fffffffd620, offset_x = 1, offset_y = 0}, {
            foggable = 240, sprite = 0x3ff, offset_x = 5500798, offset_y =
0}, 
          {foggable = 192, sprite = 0x7ffff2a80750, offset_x = -72515583, 
            offset_y = 0}, {foggable = 192, sprite = 0x7fffffffd6c0, 
            offset_x = -10560, offset_y = 32767}, {foggable = 192, 
            sprite = 0x7fffffffd6cb, offset_x = -9537, offset_y = 32767}, {
            foggable = false, sprite = 0x0, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x92d060, offset_x = 0, offset_y = 0},
{
            foggable = 92, sprite = 0x40136db10, offset_x = 7927680, 
            offset_y = 0}, {foggable = false, sprite = 0x0, 
            offset_x = 20372240, offset_y = 0}, {foggable = 80, 
            sprite = 0x2373900, offset_x = 0, offset_y = 0}, {foggable =
true, 
            sprite = 0x9a8e00, offset_x = -1, offset_y = 0}, {
            foggable = false, sprite = 0x0, offset_x = 0, offset_y = 0}, {
            foggable = false, sprite = 0x2146930, offset_x = -1, 
            offset_y = 0}, {foggable = false, sprite = 0x494000224ef10, 
            offset_x = -221253696, offset_y = 32767}, {foggable = false, 
            sprite = 0x400, offset_x = -10592, offset_y = 32767}, {
            foggable = false, sprite = 0x1b84487, offset_x = 1024, 
            offset_y = 0}, {foggable = 192, sprite = 0x5194c7, 
            offset_x = 20372240, offset_y = 0}, {foggable = 237, sprite =
0x1, 
            offset_x = 1, offset_y = 0}, {foggable = 160, sprite = 0x0, 
            offset_x = 240, offset_y = 0}, {foggable = 48, sprite = 0x0, 
            offset_x = 20814128, offset_y = 0}, {foggable = 32, 
            sprite = 0x92d060, offset_x = 2, offset_y = 0}, {foggable = 12, 
            sprite = 0x919420, offset_x = 9540640, offset_y = 0}, {
            foggable = 96, sprite = 0x7ffff080e6b7, offset_x = 0, 
            offset_y = 0}, {foggable = 217, sprite = 0x919420, 
            offset_x = -221028883, offset_y = 32767}, {foggable = 96, 
            sprite = 0x7ffff2d35ded, offset_x = 37715808, offset_y = 0}, {
            foggable = 192, sprite = 0x23f7f60, offset_x = 37715808, 
            offset_y = 0}, {foggable = 48, sprite = 0x0, offset_x = 1, 
            offset_y = 0}, {foggable = 112, sprite = 0x919420, 
            offset_x = 9540640, offset_y = 0}, {foggable = 96, 
            sprite = 0x7ffff080e6b7, offset_x = 16777215, offset_y = 0}, {
            foggable = 48, sprite = 0x1, offset_x = 15152496, offset_y = 0},
{
            foggable = false, sprite = 0x7ffff2d63711, offset_x = 37173512, 
            offset_y = 0}, {foggable = 48, sprite = 0x2373900, 
            offset_x = 10128896, offset_y = 0}, {foggable = 2, 
            sprite = 0xe73570, offset_x = 2, offset_y = 0}, {foggable = 126,

            sprite = 0x9aea90, offset_x = -259987676, offset_y = 32767}, {
            foggable = 32, sprite = 0x4a0dd7a, offset_x = 10173792, 
            offset_y = 0}, {foggable = 235, sprite = 0x9aea90, 
            offset_x = 29486368, offset_y = 0}, {foggable = 48, 
            sprite = 0x9aea90, offset_x = 0, offset_y = 0}, {foggable = 52, 
            sprite = 0x1, offset_x = -185435755, offset_y = 32767}, {
            foggable = 240, sprite = 0xf0, offset_x = 1, offset_y = 0}, {
            foggable = 209, sprite = 0x9a9200, offset_x = -1287341824, 
            offset_y = -720380938}, {foggable = 144, sprite = 0x76, 
            offset_x = 2, offset_y = 0}, {foggable = 67, sprite = 0xe, 
            offset_x = 5336838, offset_y = 0}, {foggable = 16, 
            sprite = 0x7fffffffd9c0, offset_x = -9984, offset_y = 32767}, {
            foggable = 149, sprite = 0xf0, offset_x = -185435755, 
            offset_y = 32767}, {foggable = 67, sprite = 0x33, offset_x = 118,

            offset_y = 0}, {foggable = 101, sprite = 0x9a9200, 
            offset_x = 4316392, offset_y = 0}, {foggable = 64, 
            sprite = 0x1d1b240, offset_x = 0, offset_y = 0}, {foggable = 89,

            sprite = 0x874be0, offset_x = 30466016, offset_y = 0}, {
            foggable = false, sprite = 0xe64e20, offset_x = 293, 
            offset_y = 0}, {foggable = 6, sprite = 0xf0, offset_x = 1, 
            offset_y = 0}}
        count = <value optimised out>
#4  0x0000000000434389 in update_map_canvas (canvas_x=<value optimised out>,

    canvas_y=<value optimised out>, width=<value optimised out>, 
    height=<value optimised out>) at mapview_common.c:1293
        cx = -4
        cy = 293
        ptile = <value optimised out>
        pedge = 0x4
        pcorner = <value optimised out>
        ptile_r1 = 1
        ptile_y0 = 101
        ptile_index = <value optimised out>
        ptile_yi = 101
        ptile_w = 30
        ptile_x0 = 51
        ptile_y1 = <value optimised out>
        ptile_count = 272
        ptile_xi = <value optimised out>
        ptile_di = <value optimised out>
        ptile_h = 30
        ptile_x1 = <value optimised out>
        ptilepedge = {type = EDGE_WE, tile = {0x1d0dfe0, 0x1d0e040}}
        ptilepcorner = {tile = {0x1d19a40, 0x1d19aa0, 0x1d1b4e0, 0x1d1b480}}
        ptile_si = <value optimised out>
        gui_x_0 = <value optimised out>
        gui_y_0 = <value optimised out>
        gui_x_w = <value optimised out>
        gui_y_h = <value optimised out>
        layer = <value optimised out>
        gui_x0 = 769
        gui_y0 = 1515
        tmp = <value optimised out>
#5  0x000000000043546d in unqueue_mapview_updates (
    write_to_screen=<value optimised out>) at mapview_common.c:2437
        min_x = -10
        max_x = 206
        min_y = 308
        max_y = 548
        W = <value optimised out>
        H = <value optimised out>
        UW = 0
        UH = 30486368
        city_width = <value optimised out>
        city_height = <value optimised out>
        area = {{dx = 0, dy = 0, w = 30, h = 30}, {dx = -15, dy = -15, w =
60, 
            h = 60}, {dx = 0, dy = 0, w = 30, h = 30}, {dx = -51, dy = 30, 
            w = 132, h = 28}, {dx = -75, dy = -75, w = 180, h = 180}}
        my_tile_updates = {0x0, 0x1b32c80, 0x1bb81d0, 0x1b870c0, 0x0}
#6  0x000000000043676c in move_unit_map_canvas (punit=0x1b90dc0, 
    src_tile=0x1d14a00, dx=1, dy=1) at mapview_common.c:2034
        start_x = <value optimised out>
        canvas_dx = <value optimised out>
        timing_sec = 0.029999999999999999
        start_y = 413
        canvas_dy = <value optimised out>
        mytime = <value optimised out>
        anim_timer = 0x1a775c0
        dest_tile = <value optimised out>
        __PRETTY_FUNCTION__ = "move_unit_map_canvas"
#7  0x000000000042098b in do_move_unit (punit=0x1b90dc0, 
    target_unit=<value optimised out>) at control.c:2100
        dx = 1
        dy = 1
        src_tile = 0x1d14a00
        dst_tile = 0x1d164a0
#8  0x000000000043f522 in handle_unit_packet_common (packet_unit=0x232cef0)
    at packhand.c:1378
        pcity = <value optimised out>
        pcity = <value optimised out>
        punit = 0x1b90dc0
        need_update_menus = false
        repaint_unit = true
        repaint_city = false
        old_tile = 0x1d14a00
        check_focus = false
        moved = false
        ret = <value optimised out>
#9  0x000000000043ff29 in handle_unit_info (packet=0x1b3c070)
    at packhand.c:1192
        punit = 0x232cef0
#10 0x000000000044034f in client_handle_packet (type=<value optimised out>, 
    packet=0x2) at packhand_gen.c:141
No locals.
#11 0x0000000000417cfd in client_packet_input (packet=<value optimised out>,

    type=49) at client_main.c:529
No locals.
#12 0x000000000041d229 in input_from_server (fd=<value optimised out>)
    at clinet.c:383
        result = true
        packet = 0x2
        type = PACKET_UNIT_INFO
        __PRETTY_FUNCTION__ = "input_from_server"
#13 0x00007ffff4f28d3f in gdk_io_invoke (source=<value optimised out>, 
    condition=<value optimised out>, data=<value optimised out>)
    at /build/buildd/gtk+2.0-2.20.1/gdk/gdkevents.c:1082
        closure = 0x1426a00
        gdk_cond = GDK_INPUT_READ
#14 0x00007ffff2d448c2 in g_main_dispatch (context=0x930c10)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
        dispatch = 0x7ffff2d86e10 <g_io_unix_dispatch>
        user_data = 0x1426a00
        callback = 0x7ffff4f28cf0 <gdk_io_invoke>
        cb_funcs = 0x7ffff2fe2610
        cb_data = 0x1426b30
        current_source_link = {data = 0x1426ab0, next = 0x0}
        source = 0x1426ab0
        current = 0xd60500
        i = 1
#15 IA__g_main_context_dispatch (context=0x930c10)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
No locals.
#16 0x00007ffff2d48748 in g_main_context_iterate (context=0x930c10, 
    block=<value optimised out>, dispatch=<value optimised out>, 
    self=<value optimised out>)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = 4
        allocated_nfds = -220899760
        fds = <value optimised out>
        __PRETTY_FUNCTION__ = "g_main_context_iterate"
#17 0x00007ffff2d48c55 in IA__g_main_loop_run (loop=0xfa1dd0)
    at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2799
        self = 0x8702b0
        __PRETTY_FUNCTION__ = "IA__g_main_loop_run"
#18 0x00007ffff52ebbb7 in IA__gtk_main ()
    at /build/buildd/gtk+2.0-2.20.1/gtk/gtkmain.c:1219
        tmp_list = 0x93c3d0
        functions = 0x0
        init = 0xa23190
        loop = <value optimised out>
#19 0x0000000000417139 in ui_main (argc=1, argv=0x7fffffffe348)
    at gui_main.c:1627
        home = <value optimised out>
        sig = <value optimised out>
#20 0x000000000041807a in client_main (argc=<value optimised out>, 
    argv=0x7fffffffe348) at client_main.c:481
        i = 1
        loglevel = 2
        ui_options = <value optimised out>
        ui_separator = 64
        option = <value optimised out>
        user_tileset = false
#21 0x00007ffff29a1c4d in __libc_start_main (main=<value optimised out>, 
    argc=<value optimised out>, ubp_av=<value optimised out>, 
    init=<value optimised out>, fini=<value optimised out>, 
    rtld_fini=<value optimised out>, stack_end=0x7fffffffe338)
    at libc-start.c:226
        result = <value optimised out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 980392106546572486, 
                4271136, 140737488347968, 0, 0, -980392105825391418, 
                -980403349719470906}, mask_was_saved = 0}}, priv = {pad = {
              0x0, 0x0, 0x52db60, 0x7fffffffe348}, data = {prev = 0x0, 
              cleanup = 0x0, canceltype = 5430112}}}
        not_first_call = <value optimised out>
#22 0x0000000000412c49 in _start ()
No symbol table info available.






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to