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

                 Summary: in player_load_units_transporter()
[savegame.c::2285]: assertion 'id_trans ==  -1 || ptrans != ((void *)0)'
failed
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Dec 10 00:48:01 2011
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: S2_4 r20638
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.4.0

    _______________________________________________________

Details:

Starting an S2_4 r20638 server with file #14676 (a S2_2 savegame) gives this
assertion failure:


1: in player_load_units_transporter() [savegame.c::2285]: assertion 'id_trans
== -1 || ptrans != ((void *)0)' failed.


With -F, the backtrace:


#0  0x00007f328b2b67bb in raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
No locals.
#1  0x00000000005db06c in fc_assert_fail (file=0x65f54d "savegame.c", 
    function=0x662150 "player_load_units_transporter", line=2285, 
    assertion=<value optimised out>, message=0x68c270 "nologmsg:%s")
    at log.c:525
        level = LOG_FATAL
#2  0x0000000000501f97 in player_load_units_transporter (file=0x1a2d290)
    at savegame.c:2285
        id_unit = <value optimised out>
        id_trans = <value optimised out>
        punit = 0x2b89660
        ptrans = 0x0
        nunits = 24
        i = 21
        plrno = 3
#3  game_load_internal (file=0x1a2d290) at savegame.c:5299
        pplayer = 0x22ee1d0
        _pslot = 0x1a1b608
        worked_tiles = <value optimised out>
        i = 8
        k = <value optimised out>
        game_version = <value optimised out>
        tmp_server_state = <value optimised out>
        rstate = {v = {1909243963, 1784641705, 608618998, 33954802, 
            2162746740, 3918181944, 2666800496, 1130412309, 1451678527, 
            3981941025, 2495535337, 1248382270, 3963275519, 2938765599, 
            3612040115, 3065323936, 4109219751, 428428626, 4055160927, 
            933759203, 572194038, 2374993692, 1969777801, 2848562419, 
            3252874528, 2869504279, 2119690761, 1283719739, 1054076096, 
            4042669646, 3862922016, 1405266712, 496359283, 2347561063, 
            660368147, 3581617344, 1680905658, 4121710982, 1368759221, 
            1347893047, 765531261, 3260785338, 1690200277, 4001194569, 
            2420910750, 42880039, 1330233500, 52981888, 1605853577, 
            2869301504, 2424134001, 1128530823, 185691870, 1336508003, 
            1787681747, 4238654258}, j = 19, k = 50, x = 18, is_init = true}
        string = <value optimised out>
        improvement_order_size = 68
        technology_order_size = 88
        civstyle = <value optimised out>
        scen_text = <value optimised out>
        improvement_order = 0x1a1b2e0
        technology_order = 0x21b85c0
        special_order = <value optimised out>
        base_order = <value optimised out>
        num_base_types = <value optimised out>
        savefile_options = 0x1a2db70 " attributes client_worklists
diplchance_percent embassies improvement_order known32fix map_editor
new_owner_map orders resources rulesetdir rulesets spacerace2 startoptions
startunits technology_order"...
        bval = false
        pentry = <value optimised out>
        __FUNCTION__ = "game_load_internal"
#4  0x0000000000504887 in game_load (file=0x1a2d290) at savegame.c:4391
        was_send_city_suppressed = false
        was_send_tile_suppressed = false
#5  0x00000000004bece6 in savegame2_load (file=0x1a2d290) at savegame2.c:555
        savefile_options = <value optimised out>
        __FUNCTION__ = "savegame2_load"
        loadtimer = 0x1a1b2a0
#6  0x00000000004464fa in load_command (caller=<value optimised out>, 
    filename=<value optimised out>, check=<value optimised out>)
    at stdinhand.c:3668
        loadtimer = 0x1a1b220
        uloadtimer = 0x1a1b260
        file = <value optimised out>
        arg =
"/home/jtn/.freeciv/saves/canadians-T0330-Y01905-manual.sav.bz2", '\000'
<repeats 11 times>"\237,
\v\212\062\177\000\000@\371I\340\377\177\000\000\002Bu\213\062\177\000\000\300\364\223\213\062\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000T\b\f\212\062\177\000\000\220\352I\340\377\177\000\000\000\000\300ғ\300\377\377\000\000ֲ\352\026e\376",
'\000' <repeats 32 times>"\320,
\370I\340\377\177\000\000@\371I\340\377\177\000\000\300\364\223\213\062\177\000\000\000\000\000\000\000\000\000\000\314k5\212\062\177\000\000\200\353I\340\377\177\000\000\":u\213\062\177\000\000\000\000\000\000\000\000\000\000\206Yu\213\062\177\000\000\270\177\226\213\062\177\000\000\370\370I\340\377\177\000\000\000\371"...
        __FUNCTION__ = "load_command"
#7  0x000000000043c466 in srv_prepare () at srv_main.c:2366
        __FUNCTION__ = "srv_prepare"
#8  0x000000000043c5e4 in srv_main () at srv_main.c:2673
        __FUNCTION__ = "srv_main"
#9  0x00000000004338c4 in main (argc=<value optimised out>, 
    argv=0x7fffe049fb58) at civserver.c:406
        inx = 4
        showhelp = false
        showvers = false
        option = 0x0
        __FUNCTION__ = "main"





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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