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

                 Summary: Peculiar segfault
                 Project: Battle for Wesnoth
            Submitted by: espreon
            Submitted on: Fri 04 Nov 2011 08:32:32 PM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.9.9+svn (51831)
        Operating System: Sabayon Linux

    _______________________________________________________

Details:

While testing the Dwarvish Witness line's improved leadership animations, I
encountered this.

I have attached a savefile that can be used to reproduce this.

To reproduce:

1. Download the savefile and put it in your saves directory
2. Load the savefile
3. Go into debug mode
4. Keep attacking the Dwarvish Thunderguard in the middle with Ulfserkers...
spawn more in the same spot and keep attacking as needed
5. The game should crash after so many Ulfserkers have died

Error:

Program received signal SIGSEGV, Segmentation fault.
0x00000000006baf9e in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::end (this=0x206c6c65772068a6)
    at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_vector.h:454
454           { return const_iterator(this->_M_impl._M_finish); }

Backtrace:


#0  0x00000000006baf9e in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::end (this=0x206c6c65772068a6)
    at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_vector.h:454
#1  0x000000000086d376 in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::empty
(this=0x206c6c65772068a6)
    at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_vector.h:583
#2  0x000000000086c207 in animated<unit_frame, void_value<unit_frame>
>::animation_finished_potential (this=0x206c6c6577206896) at
src/animated.i:180
#3  0x00000000006e5f46 in unit_animation::animation_finished_potential
(this=0x206c6c657720676e) at src/unit_animation.cpp:798
#4  0x00000000006e7c24 in unit_animator::wait_for_end (this=0x7fffffff9050)
at src/unit_animation.cpp:1132
#5  0x0000000000a9754d in unit_display::unit_recruited (loc=...,
leader_loc=...) at src/unit_display.cpp:459
#6  0x0000000000a3207d in events::menu_handler::create_unit
(this=0x7fffffffb580, mousehandler=...) at src/menu_events.cpp:1607
#7  0x0000000000614964 in playsingle_controller::create_unit
(this=0x7fffffffb3c0) at src/playsingle_controller.cpp:168
#8  0x0000000000cb3b15 in hotkey::command_executor::execute_command
(this=0x7fffffffb3c0, command=hotkey::HOTKEY_CREATE_UNIT) at
src/hotkeys.cpp:1014
#9  0x0000000000a7c15e in play_controller::execute_command
(this=0x7fffffffb3c0, command=hotkey::HOTKEY_CREATE_UNIT, index=0) at
src/play_controller.cpp:786
#10 0x0000000000cb40b1 in hotkey::execute_command (disp=...,
command=hotkey::HOTKEY_CREATE_UNIT, executor=0x7fffffffb3c0, index=0) at
src/hotkeys.cpp:1151
#11 0x0000000000cb4e50 in hotkey::command_executor::show_menu
(this=0x7fffffffb3c0, items_arg=std::vector of length 8, capacity 24 = {...},
xloc=609, yloc=373, context_menu=true, gui=...)
    at src/hotkeys.cpp:1259
#12 0x0000000000a7ebe8 in play_controller::show_menu (this=0x7fffffffb3c0,
items_arg=std::vector of length 24, capacity 24 = {...}, xloc=609, yloc=373,
context_menu=true)
    at src/play_controller.cpp:1201
#13 0x000000000087e9ca in controller_base::handle_event (this=0x7fffffffb3c0,
event=...) at src/controller_base.cpp:94
#14 0x0000000000caa166 in events::pump () at src/events.cpp:380
#15 0x000000000087f114 in controller_base::play_slice (this=0x7fffffffb3c0,
is_delay_enabled=true) at src/controller_base.cpp:197
#16 0x0000000000618147 in playsingle_controller::play_human_turn
(this=0x7fffffffb3c0) at src/playsingle_controller.cpp:711
#17 0x00000000006179e6 in playsingle_controller::play_side
(this=0x7fffffffb3c0, team_index=1, save=false) at
src/playsingle_controller.cpp:636
#18 0x0000000000617616 in playsingle_controller::play_turn
(this=0x7fffffffb3c0, save=false) at src/playsingle_controller.cpp:590
#19 0x0000000000615e80 in playsingle_controller::play_scenario
(this=0x7fffffffb3c0, story=..., skip_replay=false) at
src/playsingle_controller.cpp:391
#20 0x0000000000608465 in playsingle_scenario (game_config=...,
level=0x163d488, disp=..., state_of_game=..., story=..., skip_replay=false,
end_level=...) at src/playcampaign.cpp:130
#21 0x000000000060ad2d in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
src/playcampaign.cpp:365
#22 0x000000000048b000 in game_controller::launch_game (this=0x163d220,
reload=game_controller_abstract::NO_RELOAD_DATA) at
src/game_controller.cpp:1267
#23 0x0000000000424696 in do_gameloop (argc=1, argv=0x7fffffffdc28) at
src/game.cpp:573
#24 0x0000000000424b93 in main (argc=1, argv=0x7fffffffdc28) at
src/game.cpp:627




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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