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

                 Summary: segfault in sdl client - copy_chars_to_string16()
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Mittwoch 13.10.2010 um 19:23
                Category: client-sdl
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.3.0

    _______________________________________________________

Details:

I did found the following segfault in the sdl client while testing the mapimg
patches. This is a patched version of freeciv but the mapimg patches do only
touch color related parts of the sdl code. Thus, it should be reproducedable
on the trunk version.

How to reproduce: start the game and visit the nation dialog.


#0  0x00007faf1f32492b in raise () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x000000000056b5cf in fc_assert_fail (file=0x5849d8 "gui_string.c",
    function=0x584d70 "copy_chars_to_string16", line=196, assertion=<value
optimized out>, message=0x0)
    at log.c:476
        level = LOG_FATAL
#2  0x0000000000420685 in copy_chars_to_string16 (pString=0x0,
    pCharString=0x43081b0 "Name: Ulugh Beg\nNation: Uzbek\nScore: 99\nTeam:
Team 0\nAI: No\nAttitude: -\nEmbassy: -\nDipl.State: -\nVision: \nState:
moving") at gui_string.c:196
        n = <value optimized out>
        __FUNCTION__ = "copy_chars_to_string16"
#3  0x000000000044c1e6 in real_players_dialog_update () at plrdlg.c:232
        pPlayer0 = (struct widget *) 0x4312e90
        pPlayer1 = (struct widget *) 0x7f5100
        pPlayer = (struct player *) 0x3d18b60
        astr = {
  _private_str_ = 0x43081b0 "Name: Ulugh Beg\nNation: Uzbek\nScore: 99\nTeam:
Team 0\nAI: No\nAttitude: -\nEmbassy: -\nDipl.State: -\nVision: \nState:
moving", _private_n_ = 120, _private_n_alloc_ = 124}
#4  0x000000000049ba43 in update_unqueue (data=<value optimized out>) at
update_queue.c:189
        MY_it_iter = (struct iterator *) 0x7fffb691c210
#5  0x00000000004061bd in gui_event_loop (pData=0x0, loop_action=0,
    key_down_handler=0x4058c0 <main_key_down_handler>,
key_up_handler=0x405470 <main_key_up_handler>,
    mouse_button_down_handler=0x405800 <main_mouse_button_down_handler>,
    mouse_button_up_handler=0x4057a0 <main_mouse_button_up_handler>,
    mouse_motion_handler=0x4054a0 <main_mouse_motion_handler>) at
gui_main.c:734
        ID = <value optimized out>
        t_current = <value optimized out>
        t_last_unit_anim = 10673
        t_last_map_scrolling = 10769
        real_timer_next_call = 10836
        tv = {tv_sec = 0, tv_usec = 0}
        civfdset = {fds_bits = {0 <repeats 16 times>}}
        result = 0
        schot_nr = 0
        schot = '\0' <repeats 31 times>
        __FUNCTION__ = "gui_event_loop"


I could produce another one using trunk (svn16977)


#0  0x000000000041114e in redraw_widget_info_label (rect=0x0) at
widget.c:489
        pText = (SDL_Surface *) 0x0
        pBcgd = <value optimized out>
        srcrect = {x = -16174, y = 0, w = 0, h = 0}
        dstrect = {x = 0, y = 0, w = 0, h = 0}
        pWidget = (struct widget *) 0x7f7430d9af20
#1  0x0000000000405dbd in gui_event_loop (pData=0x0, loop_action=0,
    key_down_handler=0x405170 <main_key_down_handler>,
key_up_handler=0x404d20 <main_key_up_handler>,
    mouse_button_down_handler=0x4050b0 <main_mouse_button_down_handler>,
    mouse_button_up_handler=0x405050 <main_mouse_button_up_handler>,
    mouse_motion_handler=0x404d50 <main_mouse_motion_handler>) at
gui_main.c:705
        ID = 0
        t_current = <value optimized out>
        t_last_unit_anim = 48875
        t_last_map_scrolling = 48936
        real_timer_next_call = 49362
        tv = {tv_sec = 0, tv_usec = 0}
        civfdset = {fds_bits = {0 <repeats 16 times>}}
        result = 0
        schot_nr = 0
        schot = '\0' <repeats 31 times>
        __FUNCTION__ = "gui_event_loop"





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


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

Reply via email to