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

                 Summary: assertion 'id >= 0 && id < game.control.num
_road_types' failed
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Dec 10 00:44:09 2011
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk r20639
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.5.0

    _______________________________________________________

Details:

Loading the attached savegame (which was generated by S2_2), a trunk r20639
server spits out the given assertion and shortly afterwards dies with a
segfault.


0: in road_by_number() [road.c::73]: assertion 'id >= 0 && id <
game.control.num_road_types' failed.


Stack backtrace with -F (assertion failure):


#0  0x00007f07d5a007bb in raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
No locals.
#1  0x00000000005e5b1c in fc_assert_fail (file=0x68c4ab "road.c", 
    function=0x68c549 "road_by_number", line=73, 
    assertion=<value optimised out>, message=0x690930 "nologmsg:%s")
    at log.c:525
        level = LOG_FATAL
#2  0x00000000005cd9a5 in road_by_number (id=<value optimised out>)
    at road.c:73
        __FUNCTION__ = "road_by_number"
#3  0x00000000005d2167 in special_by_rule_name (name=0x1206d40 "Road")
    at terrain.c:538
        road = <value optimised out>
#4  0x00000000005000ad in game_load_internal (file=0x11ff800)
    at savegame.c:4447
        modname = 0x11ed830
        nmod = 11
        j = S_IRRIGATION
        i = <value optimised out>
        k = <value optimised out>
        game_version = <value optimised out>
        tmp_server_state = <value optimised out>
        rstate = {v = {1412264814, 808661808, 825252141, 758460473, 
            1970168173, 1932422241, 1647212129, 12922, 0, 0, 0, 0, 0, 0, 0,
0, 
            0, 0, 5, 0, 112, 0, 5, 0, 0, 0, 0, 0, 0, 0, 3569098304, 32519, 0,

            0, 59, 0, 0, 0, 3569098304, 32519, 18717280, 0, 4, 0, 96, 0, 4,
0, 
            2293783920, 32767, 3565948547, 32519, 0, 0, 3569098304, 32519}, 
          j = 189, k = 0, x = 48, is_init = false}
        string = <value optimised out>
        improvement_order_size = 68
        technology_order_size = 88
        civstyle = <value optimised out>
        scen_text = <value optimised out>
        improvement_order = 0x198ad50
        technology_order = 0x198af80
        special_order = 0x11ed890
        base_order = <value optimised out>
        num_base_types = 0
        savefile_options = 0x1200120 " attributes client_worklists
diplchance_percent embassies improvement_order known32fix map_editor
new_owner_map orders resources rulesetdir rulesets spacerace2 startoptions
startunits technology_order"...
        bval = <value optimised out>
        pentry = <value optimised out>
        __FUNCTION__ = "game_load_internal"
#5  0x0000000000505ae7 in game_load (file=0x11ff800) at savegame.c:4391
        was_send_city_suppressed = false
        was_send_tile_suppressed = false
#6  0x00000000004bfa46 in savegame2_load (file=0x11ff800) at savegame2.c:556
        savefile_options = <value optimised out>
        __FUNCTION__ = "savegame2_load"
        loadtimer = 0x11ed7f0
#7  0x0000000000446b2a in load_command (caller=<value optimised out>, 
    filename=<value optimised out>, check=<value optimised out>)
    at stdinhand.c:3668
        loadtimer = 0x11ed770
        uloadtimer = 0x11ed7b0
        file = <value optimised out>
        arg =
"/home/jtn/.freeciv/saves/canadians-T0330-Y01905-manual.sav.bz2\000\000p\177\270\210\377\177\000\000\000\220\b\326\a\177\000\000\001\000\000\000\000\000\000\000\066\315\342\324\a\177\000\000\060q\270\210\377\177\000\000\"\332\351\325\a\177\000\000\000\000\000\000\000\000\000\000\206\371\351\325\a\177\000\000\270\037\v\326\a\177\000\000(\177\270\210\377\177\000\000\060\177\270\210\377\177\000\000\210n\342\324\a\177\000\000\360\034\b\326\a\177\000\000\002\342\351\325\a\177\000\000\330\204\b\326\a\177\000\000\210I\b\326\a\177\000\000\260\364\n\326\a\177\000\000\210\231\b\326\a\177",
'\000' <repeats 11 times>"\220,
\b\326\a\177\000\000\001\000\000\000\000\000\000\000\066\315\342\324\a\177\000\000\060q\270\210\377\177\000\000\000\000\000\340p\021\377"...
        __FUNCTION__ = "load_command"
#8  0x000000000043ca96 in srv_prepare () at srv_main.c:2366
        __FUNCTION__ = "srv_prepare"
#9  0x000000000043cc14 in srv_main () at srv_main.c:2673
        __FUNCTION__ = "srv_main"
#10 0x0000000000433ef4 in main (argc=<value optimised out>, 
    argv=0x7fff88b88188) at civserver.c:406
        inx = 4
        showhelp = false
        showvers = false
        option = 0x11e19a0
"/usr/local/share/locale/en_GB.UTF-8.utf8/LC_MESSAGES/freeciv.mo"
        __FUNCTION__ = "main"


Stack backtrace without -F (subsequent segfault):


#0  __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/../strcmp.S:99
No locals.
#1  0x00000000005d217d in special_by_rule_name (name=0x161ad40 "Road")
    at terrain.c:539
        road = <value optimised out>
#2  0x00000000005000ad in game_load_internal (file=0x1613800)
    at savegame.c:4447
        modname = 0x1601830
        nmod = 11
        j = S_IRRIGATION
        i = <value optimised out>
        k = <value optimised out>
        game_version = <value optimised out>
        tmp_server_state = <value optimised out>
        rstate = {v = {1412264814, 808661808, 825252141, 758460473, 
            1970168173, 1932422241, 1647212129, 12922, 0, 0, 0, 0, 0, 0, 0,
0, 
            0, 0, 5, 0, 112, 0, 5, 0, 0, 0, 0, 0, 0, 0, 3804839488, 32568, 0,

            0, 59, 0, 0, 0, 3804839488, 32568, 22993504, 0, 4, 0, 96, 0, 4,
0, 
            1537384000, 32767, 3801689731, 32568, 0, 0, 3804839488, 32568}, 
          j = 189, k = 0, x = 48, is_init = false}
        string = <value optimised out>
        improvement_order_size = 68
        technology_order_size = 88
        civstyle = <value optimised out>
        scen_text = <value optimised out>
        improvement_order = 0x1d9ed50
        technology_order = 0x1d9ef80
        special_order = 0x1601890
        base_order = <value optimised out>
        num_base_types = 0
        savefile_options = 0x1614120 " attributes client_worklists
diplchance_percent embassies improvement_order known32fix map_editor
new_owner_map orders resources rulesetdir rulesets spacerace2 startoptions
startunits technology_order"...
        bval = <value optimised out>
        pentry = <value optimised out>
        __FUNCTION__ = "game_load_internal"
#3  0x0000000000505ae7 in game_load (file=0x1613800) at savegame.c:4391
        was_send_city_suppressed = false
        was_send_tile_suppressed = false
#4  0x00000000004bfa46 in savegame2_load (file=0x1613800) at savegame2.c:556
        savefile_options = <value optimised out>
        __FUNCTION__ = "savegame2_load"
        loadtimer = 0x16017f0
#5  0x0000000000446b2a in load_command (caller=<value optimised out>, 
    filename=<value optimised out>, check=<value optimised out>)
    at stdinhand.c:3668
        loadtimer = 0x1601770
        uloadtimer = 0x16017b0
        file = <value optimised out>
        arg =
"/home/jtn/.freeciv/saves/canadians-T0330-Y01905-manual.sav.bz2\000\000@\300\242[\377\177\000\000\000\260\025\344\070\177\000\000\001\000\000\000\000\000\000\000\066\355\357\342\070\177\000\000\000\262\242[\377\177\000\000\"\372\366\343\070\177\000\000\000\000\000\000\000\000\000\000\206\031\367\343\070\177\000\000\270?\030\344\070\177\000\000\370\277\242[\377\177\000\000\000\300\242[\377\177\000\000\210\216\357\342\070\177\000\000\360<\025\344\070\177\000\000\002\002\367\343\070\177\000\000ؤ\025\344\070\177\000\000\210i\025\344\070\177\000\000\260\024\030\344\070\177\000\000\210\271\025\344\070\177",
'\000' <repeats 11 times>"\260,
\025\344\070\177\000\000\001\000\000\000\000\000\000\000\066\355\357\342\070\177\000\000\000\262\242[\377\177\000\000\000\000\240aE\267"...
        __FUNCTION__ = "load_command"
#6  0x000000000043ca96 in srv_prepare () at srv_main.c:2366
        __FUNCTION__ = "srv_prepare"
#7  0x000000000043cc14 in srv_main () at srv_main.c:2673
        __FUNCTION__ = "srv_main"
#8  0x0000000000433ef4 in main (argc=<value optimised out>, 
    argv=0x7fff5ba2c258) at civserver.c:406
        inx = 3
        showhelp = false
        showvers = false
        option = 0x15f59a0
"/usr/local/share/locale/en_GB.UTF-8.utf8/LC_MESSAGES/freeciv.mo"
        __FUNCTION__ = "main"




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat Dec 10 00:44:09 2011  Name: canadians-T0330-Y01905-manual.sav.bz2 
Size: 53kB   By: jtn
savegame causing crash
<http://gna.org/bugs/download.php?file_id=14676>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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