Follow-up Comment #4, bug #15807 (project freeciv):

Assertion failed:

0: in player_invention_state() [tech.c::124]: assertion 'tech == (200-2) ||
(tech >= 0 && tech < game.control.num_tech_types)' failed.


(gdb) bt full

#1  0x000000000054cdaf in fc_assert_fail (file=0x59ec97 "tech.c",
function=0x59efd0 "player_invention_state", line=124, assertion=<value
optimized out>, message=0x0)
    at log.c:452
        level = LOG_FATAL
#2  0x0000000000541606 in player_invention_state (pplayer=<value optimized
out>, tech=<value optimized out>) at tech.c:122
        __FUNCTION__ = "player_invention_state"
#3  0x0000000000541694 in base_total_bulbs_required (pplayer=0x126d,
tech=4717) at tech.c:617
        tech_cost_style = 1
        base_cost = <value optimized out>
        __FUNCTION__ = "base_total_bulbs_required"
#4  0x0000000000436362 in science_dialog_text () at text.c:636
        team = <value optimized out>
        ours = 3
        theirs = 0
        done = 9
        perturn = 3
        total = <value optimized out>
        str = {_private_str_ = 0x210a2f0 "", _private_n_ = 1,
_private_n_alloc_ = 15}
        ourbuf = '\000' <se
r\377\377\377\377\377������\000\000\000\377\377\377\377\377������������������������������������������������������������������������������
        theirbuf = '\000' <se
r\377\377\377\377\377������\000\000\000\377\377\377\377\377������������������������������������������������������������������������������
        research = 0x7ebd68
#5  0x0000000000455fb9 in science_dialog_update () at repodlgs.c:2549
        pSurf = <value optimized out>
        pChangeResearchButton = 0x461ee90
        pStr = 0xc8ffffff
        pColb_Surface = 0xd29dc0
        step = <value optimized out>
        pChangeResearchGoalButton = 0x461f610
        pWindow = 0x43c7550
        cBuf =
"\340\256n\004\000\000\000\000\350\334\377\377\377\177\000\000\002\000\000\000\000\000\000\000аn\004\000\000\000\000\020\b\232\000\000\000\000\000\243\311H\000\000\000\000\000\020\370\305\000\000\000\000\000\320.\231\000\000\000\000\000\002\000\000\000\000\000\003\000\003\000\030\000\002\002[\000\000\000\000\000\002\002\000\000\000\000\030",
'\000' <se
r\377\377\377\377\377������\000\000\000\377\377\377\377\377������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������\000\000\000\377\377\377\377\377������\000\000\000\377\377\377\377\377������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
        i = <value optimized out>
---Type <return> to continue, or q <return> to quit---
        cost = 0
        dest = {x = 0, y = 0, w = 0, h = 0}
        bg_color = {r = 255 '\377', g = 255 '\377', b = 255 '\377', unused =
136 '\210'}
#6  0x0000000000456eb3 in update_report_dialogs () at repodlgs.c:3361
No locals.
#7  0x000000000040916f in reports_thaw () at climisc.c:1056
        __FUNCTION__ = "reports_thaw"
#8  0x000000000040c458 in input_from_server (fd=<value optimized out>) at
clinet.c:390
        type = PACKET_THAW_CLIENT
        __FUNCTION__ = "input_from_server"
#9  0x0000000000405db4 in gui_event_loop (pData=0x0, loop_action=0,
key_down_handler=<value optimized out>, key_up_handler=<value optimized out>,

    mouse_button_down_handler=0x4050b0 <main_mouse_button_down_handler>,
mouse_button_up_handler=<value optimized out>, 
    mouse_motion_handler=0x404d70 <main_mouse_motion_handler>) at
gui_main.c:694
        ID = 0
        tv = {tv_sec = 0, tv_usec = 9995}
        civfdset = {fds_bits = {256, 0 <repeats 15 times>}}
        t_current = <value optimized out>
        t_last_unit_anim = 77440
        t_last_map_scrolling = 77494
        real_timer_next_call = 77939
        result = 1
        schot_nr = 0
        schot = '\000' <se
r\377\377\377\377\377������\000\000\000\377\377\377\377\377������������������������������������������������������������������
        __FUNCTION__ = "gui_event_loop"
#10 0x00000000004061c2 in ui_main (argc=1, argv=0x7fffffffe1c8) at
gui_main.c:1056
        __Net_User_Event = {type = 24 '\030', active = {type = 24 '\030',
gain = 0 '\000', state = 0 '\000'}, key = {type = 24 '\030', which = 0
'\000', 
            state = 0 '\000', keysym = {scancode = 1 '\001', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 0 '\000', 
            state = 0 '\000', x = 1, y = 0, xrel = 0, yrel = 0}, button =
{type = 24 '\030', which = 0 '\000', button = 0 '\000', state = 0 '\000', x =
1, y = 0}, 
          jaxis = {type = 24 '\030', which = 0 '\000', axis = 0 '\000', value
= 1}, jball = {type = 24 '\030', which = 0 '\000', ball = 0 '\000', xrel = 1,
yrel = 0}, 
          jhat = {type = 24 '\030', which = 0 '\000', hat = 0 '\000', value =
0 '\000'}, jbutton = {type = 24 '\030', which = 0 '\000', button = 0 '\000', 
            state = 0 '\000'}, 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 = 193 '\301', state = 155 '\233'}, key = {type = 24 '\030', which = 193
'\301', 
            state = 155 '\233', keysym = {scancode = 2 '\002', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 193 '\301', 
            state = 155 '\233', x = 2, y = 0, xrel = 0, yrel = 0}, button =
{type = 24 '\030', which = 193 '\301', button = 155 '\233', state = 0 '\000',
x = 2, 
            y = 0}, jaxis = {type = 24 '\030', which = 193 '\301', axis = 155
'\233', value = 2}, jball = {type = 24 '\030', which = 193 '\301', ball = 155
'\233', 
            xrel = 2, yrel = 0}, jhat = {type = 24 '\030', which = 193
'\301', hat = 155 '\233', value = 0 '\000'}, jbutton = {type = 24 '\030',
which = 193 '\301', 
            button = 155 '\233', state = 0 '\000'}, resize = {type = 24
'\030', w = 2, h = 0}, expose = {type = 24 '\030'}, quit = {type = 24
'\030'}, user = {
---Type <return> to continue, or q <return> to quit---
            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 = 1 '\001', state = 148 '\224'}, key = {type = 24 '\030', which = 1
'\001', 
            state = 148 '\224', keysym = {scancode = 3 '\003', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 1 '\001', 
            state = 148 '\224', x = 3, y = 0, xrel = 0, yrel = 0}, button =
{type = 24 '\030', which = 1 '\001', button = 148 '\224', state = 0 '\000', x
= 3, y = 0}, 
          jaxis = {type = 24 '\030', which = 1 '\001', axis = 148 '\224',
value = 3}, jball = {type = 24 '\030', which = 1 '\001', ball = 148 '\224',
xrel = 3, 
            yrel = 0}, jhat = {type = 24 '\030', which = 1 '\001', hat = 148
'\224', value = 0 '\000'}, jbutton = {type = 24 '\030', which = 1 '\001', 
            button = 148 '\224', state = 0 '\000'}, 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 = 0 '\000', state = 0 '\000'}, key = {type = 24 '\030', which = 0
'\000', 
            state = 0 '\000', keysym = {scancode = 5 '\005', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 0 '\000', 
            state = 0 '\000', x = 5, y = 0, xrel = 0, yrel = 0}, button =
{type = 24 '\030', which = 0 '\000', button = 0 '\000', state = 0 '\000', x =
5, y = 0}, 
          jaxis = {type = 24 '\030', which = 0 '\000', axis = 0 '\000', value
= 5}, jball = {type = 24 '\030', which = 0 '\000', ball = 0 '\000', xrel = 5,
yrel = 0}, 
          jhat = {type = 24 '\030', which = 0 '\000', hat = 0 '\000', value =
0 '\000'}, jbutton = {type = 24 '\030', which = 0 '\000', button = 0 '\000', 
            state = 0 '\000'}, 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 = 20 '\024', state = 90 'Z'}, key = {type = 24 '\030', which = 20
'\024', 
            state = 90 'Z', keysym = {scancode = 6 '\006', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 20 '\024', 
            state = 90 'Z', x = 6, y = 0, xrel = 0, yrel = 0}, button = {type
= 24 '\030', which = 20 '\024', button = 90 'Z', state = 0 '\000', x = 6, y =
0}, 
          jaxis = {type = 24 '\030', which = 20 '\024', axis = 90 'Z', value
= 6}, jball = {type = 24 '\030', which = 20 '\024', ball = 90 'Z', xrel = 6,
yrel = 0}, 
          jhat = {type = 24 '\030', which = 20 '\024', hat = 90 'Z', value =
0 '\000'}, jbutton = {type = 24 '\030', which = 20 '\024', button = 90 'Z', 
            state = 0 '\000'}, 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 '\000', state = 0 '\000'}, key = {type = 24 '\030', which =
0 '\000', 
            state = 0 '\000', keysym = {scancode = 7 '\a', sym =
SDLK_UNKNOWN, mod = KMOD_NONE, unicode = 0}}, motion = {type = 24 '\030',
which = 0 '\000', 
            state = 0 '\000', x = 7, y = 0, xrel = 0, yrel = 0}, button =
{type = 24 '\030', which = 0 '\000', button = 0 '\000', state = 0 '\000', x =
7, y = 0}, 
          jaxis = {type = 24 '\030', which = 0 '\000', axis = 0 '\000', value
= 7}, jball = {type = 24 '\030', which = 0 '\000', ball = 0 '\000', xrel = 7,
yrel = 0}, 
          jhat = {type = 24 '\030', which = 0 '\000', hat = 0 '\000', value =
0 '\000'}, jbutton = {type = 24 '\030', which = 0 '\000', button = 0 '\000', 
            state = 0 '\000'}, 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}}
#11 0x00000000004070df in client_main (argc=<value optimized out>,
argv=0x7fffffffe1c8) at client_main.c:498
        i = 3
        loglevel = LOG_NORMAL
        ui_options = <value optimized out>
        ui_separator = false
        option = <value optimized out>
        user_tileset = false
        fatal_assertions = 2
        __FUNCTION__ = "client_main"
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff4e51abd in __libc_start_main (main=<value optimized out>,
argc=<value optimized out>, ubp_av=<value optimized out>, init=<value
optimized out>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>,
stack_end=0x7fffffffe1b8) at libc-start.c:220
        result = <value optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 6063158985052573953,
4212768, 140737488347584, 0, 0, -6063158985557094143, -6063178586394275583},

              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x565e80,
0x7fffffffe1c8}, data = {prev = 0x0, cleanup = 0x0, canceltype = 5660288}}}
        not_first_call = <value optimized out>
#13 0x0000000000404849 in _start () at ../sysdeps/x86_64/elf/start.S:113


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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