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

                 Summary: crash on loading replay from newer version
                 Project: Battle for Wesnoth
            Submitted by: tr0ll
            Submitted on: Sun Feb 17 16:20:43 2013
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Replays
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.10.5
        Operating System: linux

    _______________________________________________________

Details:

reproduce: load the 1.11 replay (attached) into 1.10.5

behaviour: generates an assertion failure in .xsession-errors and then
crashes.

expected: 
0 refuse to load replay from newer major verson (1.11)
0 exit gracefully on assertion failure

(observed by pauxlo)
<http://forums.wesnoth.org/viewtopic.php?f=3&t=35009&p=547959#p547959>

(.xsession-errors line)
wesnoth: /home/keb/Downloads/wesnoth-1.10.5/src/game_display.cpp:1308: void
game_display::set_team(size_t, bool): Assertion `teamindex < teams_.size()'
failed.



(gdb) bt
#0  0x00007fd6a9e6b425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd6a9e6eb8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fd6a9e640ee in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007fd6a9e64192 in __assert_fail () from
/lib/x86_64-linux-gnu/libc.so.6
#4  0x000000000118f930 in game_display::set_team (this=0x4cee8b0, teamindex=0,
show_everything=false)
    at /home/keb/Downloads/wesnoth-1.10.5/src/game_display.cpp:1308
#5  0x00000000015068c3 in replay_controller::init_gui (this=0x7fffd318f730)
    at /home/keb/Downloads/wesnoth-1.10.5/src/replay_controller.cpp:105
#6  0x0000000001507a44 in replay_controller::reset_replay
(this=0x7fffd318f730)
    at /home/keb/Downloads/wesnoth-1.10.5/src/replay_controller.cpp:280
#7  0x0000000001506505 in replay_controller::replay_controller
(this=0x7fffd318f730, level=..., state_of_game=
    ..., ticks=6587, num_turns=-1, game_config=..., video=...)
    at /home/keb/Downloads/wesnoth-1.10.5/src/replay_controller.cpp:80
#8  0x00000000015061df in play_replay_level (game_config=...,
level=0x7fffd31902a0, video=..., 
    state_of_game=...) at
/home/keb/Downloads/wesnoth-1.10.5/src/replay_controller.cpp:45
#9  0x00000000014dec86 in play_replay (disp=..., gamestate=...,
game_config=..., video=...)
    at /home/keb/Downloads/wesnoth-1.10.5/src/playcampaign.cpp:102
#10 0x000000000117bc10 in game_controller::play_replay (this=0x2c62de0)
    at /home/keb/Downloads/wesnoth-1.10.5/src/game_controller.cpp:1292
#11 0x0000000000ed4ac4 in do_gameloop (argc=1, argv=0x7fffd3190d98)
    at /home/keb/Downloads/wesnoth-1.10.5/src/game.cpp:581
#12 0x0000000000ed4fcb in main (argc=1, argv=0x7fffd3190d98)
    at /home/keb/Downloads/wesnoth-1.10.5/src/game.cpp:642




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun Feb 17 16:20:43 2013  Name: HttT-The_Siege_of_Elensefar_replay.gz 
Size: 36kB   By: tr0ll

<http://gna.org/bugs/download.php?file_id=17240>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to