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

                 Summary: segfault when [kill]ing during creation animation
                 Project: Battle for Wesnoth
            Submitted by: anonymissimus
            Submitted on: Sat 28 Jan 2012 12:20:51 AM GMT
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: boucman
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.10.0+svn@52774
        Operating System: win xp

    _______________________________________________________

Details:

Debug-create an Armageddon Drake with "accelerated speed" set to a low value
at (14,5) in the test scenario, then use
lua wesnoth.wml_actions.kill({x=14,y=5})
while the fade in is still running to kill it.
Can reproduce in 1.9.8 as well.
++
Program received signal SIGSEGV, Segmentation fault.
0x00d425d5 in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::end (this=0xfeeeff92) at
c:/tdm-gcc-4.5.2.exe/bin/../lib/gcc/mingw32/4.5.2/include/c++/bits/stl_vector.h:454
454           { return const_iterator(this->_M_impl._M_finish); }
(gdb) bt
#0  0x00d425d5 in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::end (this=0xfeeeff92) at
c:/tdm-gcc-4.5.2.exe/bin/../lib/gcc/mingw32/4.5.2/include/c++/bits/stl_vector.h:454
#1  0x00d42691 in std::vector<animated<unit_frame>::frame,
std::allocator<animated<unit_frame>::frame> >::empty (this=0xfeeeff92) at
c:/tdm-gcc-4.5.2.exe/bin/../lib/gcc/mingw32/4.5.2/include/c++/bits/stl_vector.h:583
#2  0x00d2237d in animated<unit_frame, void_value<unit_frame>
>::animation_finished_potential (this=0xfeeeff86) at
C:/wesnoth/src/animated.i:180
#3  0x009c3614 in unit_animation::animation_finished_potential
(this=0xfeeefeee) at C:\wesnoth\src\unit_animation.cpp:799
#4  0x009c5732 in unit_animator::wait_for_end (this=0x22ca54) at
C:\wesnoth\src\unit_animation.cpp:1133
#5  0x009caada in unit_display::unit_recruited (loc=..., leader_loc=...) at
C:\wesnoth\src\unit_display.cpp:459
#6  0x007c8603 in events::menu_handler::create_unit (this=0x22e538,
mousehandler=...) at C:\wesnoth\src\menu_events.cpp:1608
#7  0x00885cac in playsingle_controller::create_unit (this=0x22e428) at
C:\wesnoth\src\playsingle_controller.cpp:168
#8  0x00775d66 in hotkey::command_executor::execute_command (this=0x22e428,
command=hotkey::HOTKEY_CREATE_UNIT) at C:\wesnoth\src\hotkeys.cpp:1014
#9  0x00870d4d in play_controller::execute_command (this=0x22e428,
command=hotkey::HOTKEY_CREATE_UNIT, index=2) at
C:\wesnoth\src\play_controller.cpp:793
#10 0x00776236 in hotkey::execute_command (disp=...,
command=hotkey::HOTKEY_CREATE_UNIT, executor=0x22e428, index=2) at
C:\wesnoth\src\hotkeys.cpp:1151
#11 0x00777571 in hotkey::command_executor::show_menu (this=0x22e428,
items_arg=..., xloc=750, yloc=438, context_menu=true, gui=...) at
C:\wesnoth\src\hotkeys.cpp:1259
#12 0x00874213 in play_controller::show_menu (this=0x22e428, items_arg=...,
xloc=750, yloc=438, context_menu=true) at
C:\wesnoth\src\play_controller.cpp:1209
#13 0x0054adf9 in controller_base::handle_event (this=0x22e428, event=...) at
C:\wesnoth\src\controller_base.cpp:94
#14 0x00593b7e in events::pump () at C:\wesnoth\src\events.cpp:380
#15 0x0054b57e in controller_base::play_slice (this=0x22e428,
is_delay_enabled=true) at C:\wesnoth\src\controller_base.cpp:197
#16 0x0088a735 in playsingle_controller::play_human_turn (this=0x22e428) at
C:\wesnoth\src\playsingle_controller.cpp:709
#17 0x00889cda in playsingle_controller::play_side (this=0x22e428,
side_number=1, save=true) at C:\wesnoth\src\playsingle_controller.cpp:637
#18 0x008897e9 in playsingle_controller::play_turn (this=0x22e428, save=true)
at C:\wesnoth\src\playsingle_controller.cpp:591
#19 0x00887763 in playsingle_controller::play_scenario (this=0x22e428,
story=..., skip_replay=false) at C:\wesnoth\src\playsingle_controller.cpp:391
#20 0x00876900 in playsingle_scenario (game_config=..., level=0x22ee84,
disp=..., state_of_game=..., story=..., skip_replay=false, end_level=...) at
C:\wesnoth\src\playcampaign.cpp:130
#21 0x00879c56 in play_game (disp=..., gamestate=..., game_config=...,
io_type=IO_NONE, skip_replay=false) at C:\wesnoth\src\playcampaign.cpp:365
#22 0x005e8781 in game_controller::play_test (this=0xe75ea78) at
C:\wesnoth\src\game_controller.cpp:330
#23 0x005dd66f in do_gameloop (argc=3, argv=0xe756138) at
C:\wesnoth\src\game.cpp:467
#24 0x005de6fc in SDL_main (argc=3, argv=0xe756138) at
C:\wesnoth\src\game.cpp:641
#25 0x00a4628b in console_main (argc=3, argv=0xe756138) at
./src/main/win32/SDL_win32_main.c:315
#26 0x00a46348 in WinMain (hInst=0x400000, hPrev=0x0, szCmdLine=0x241eff "-d
-t", sw=10) at ./src/main/win32/SDL_win32_main.c:398
#27 0x00a45a06 in main ()
--




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to