URL:
<http://gna.org/bugs/?18879>
Summary: Segfault involving shroud
Project: Battle for Wesnoth
Submitted by: espreon
Submitted on: Sat 29 Oct 2011 10:02:46 AM 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 (51708)
Operating System: Sabayon Linux
_______________________________________________________
Details:
While trying out NX-RPG, I discovered this bug. To reproduce, just destroy
one of the gates.
svn:
https://wesnoth-umc-dev.svn.sourceforge.net/svnroot/wesnoth-umc-dev/trunk/NX-RPG
tarball:
http://wesnoth-umc-dev.svn.sourceforge.net/viewvc/wesnoth-umc-dev/trunk/NX-RPG/?view=tar
Error:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000f5c656 in std::__fill_a<unsigned long*, int>
(__first=0x7fff00000008, __last=0x7fffdc205210, __value=@0x7fffffff751c)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_algobase.h:707
707 *__first = __tmp
Backtrace:
#0 0x0000000000f5c656 in std::__fill_a<unsigned long*, int>
(__first=0x7fff00000008, __last=0x7fffdc205210, __value=@0x7fffffff751c)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_algobase.h:707
#1 0x0000000000f58a5f in std::fill<unsigned long*, int>
(__first=0x7fff00000008, __last=0x7fffdc205210, __value=@0x7fffffff751c)
at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_algobase.h:742
#2 0x0000000000f56976 in std::fill (__first=..., __last=...,
__x=@0x7fffffff759f) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_bvector.h:365
#3 0x00000000015c12af in team::shroud_map::reset (this=0x7fffdc205210) at
/home/espreon/wesnoth/src/team.cpp:656
#4 0x0000000000f57b1c in team::refog (this=0x7fffdc2051b0) at
/home/espreon/wesnoth/src/team.hpp:241
#5 0x0000000000f517f4 in recalculate_fog (side=0) at
/home/espreon/wesnoth/src/actions.cpp:2309
#6 0x0000000000f51c95 in clear_shroud (side=0) at
/home/espreon/wesnoth/src/actions.cpp:2347
#7 0x0000000001216fb3 in wml_func_redraw (cfg=...) at
/home/espreon/wesnoth/src/game_events.cpp:2371
#8 0x0000000001587515 in cfun_wml_action (L=0x7fffde67d180) at
/home/espreon/wesnoth/src/scripting/lua.cpp:3894
#9 0x000000000173a34b in luaD_precall (L=0x7fffde67d180,
func=0x7fffd600f410, nresults=0) at /home/espreon/wesnoth/src/lua/ldo.c:323
#10 0x000000000174838e in luaV_execute (L=0x7fffde67d180, nexeccalls=4) at
/home/espreon/wesnoth/src/lua/lvm.c:590
#11 0x000000000173a61d in luaD_call (L=0x7fffde67d180, func=0x7fffd600f1b0,
nResults=0) at /home/espreon/wesnoth/src/lua/ldo.c:381
#12 0x0000000001736b68 in f_call (L=0x7fffde67d180, ud=0x7fffffff7dc0) at
/home/espreon/wesnoth/src/lua/lapi.c:800
#13 0x00000000017394cc in luaD_rawrunprotected (L=0x7fffde67d180, f=0x1736b33
<f_call(lua_State*, void*)>, ud=0x7fffffff7dc0) at
/home/espreon/wesnoth/src/lua/ldo.c:120
#14 0x000000000173aa2b in luaD_pcall (L=0x7fffde67d180, func=0x1736b33
<f_call(lua_State*, void*)>, u=0x7fffffff7dc0, old_top=32, ef=16) at
/home/espreon/wesnoth/src/lua/ldo.c:467
#15 0x0000000001736c11 in lua_pcall (L=0x7fffde67d180, nargs=1, nresults=0,
errfunc=-3) at /home/espreon/wesnoth/src/lua/lapi.c:821
#16 0x00000000015766ea in luaW_pcall (L=0x7fffde67d180, nArgs=1, nRets=0,
allow_wml_error=true) at /home/espreon/wesnoth/src/scripting/lua.cpp:455
#17 0x00000000015876b2 in LuaKernel::run_wml_action (this=0x7fffdecbb860,
cmd="command", cfg=..., ev=...) at
/home/espreon/wesnoth/src/scripting/lua.cpp:3932
#18 0x000000000121e205 in game_events::handle_event_commands (event_info=...,
cfg=...) at /home/espreon/wesnoth/src/game_events.cpp:3086
#19 0x000000000121e15b in game_events::event_handler::handle_event
(this=0x7fffd56a0af0, event_info=...) at
/home/espreon/wesnoth/src/game_events.cpp:3081
#20 0x000000000121d936 in process_event (handler=..., ev=...) at
/home/espreon/wesnoth/src/game_events.cpp:3045
#21 0x0000000001220d7b in game_events::pump () at
/home/espreon/wesnoth/src/game_events.cpp:3402
#22 0x0000000001220120 in game_events::fire (event="die", loc1=..., loc2=...,
data=...) at /home/espreon/wesnoth/src/game_events.cpp:3316
#23 0x0000000000f4c3e7 in attack::perform_hit (this=0x7fffffff99c0,
attacker_turn=true, stats=...) at /home/espreon/wesnoth/src/actions.cpp:1592
#24 0x0000000000f4dec9 in attack::perform (this=0x7fffffff99c0) at
/home/espreon/wesnoth/src/actions.cpp:1756
#25 0x0000000000f4ab32 in attack_unit (attacker=..., defender=...,
attack_with=0, defend_with=-1, update_display=true) at
/home/espreon/wesnoth/src/actions.cpp:1357
#26 0x00000000014abb9b in events::mouse_handler::perform_attack
(this=0x7fffffffb370, attacker_loc=..., defender_loc=..., attacker_weapon=0,
defender_weapon=-1, seed=1741882286)
at /home/espreon/wesnoth/src/mouse_events.cpp:981
#27 0x00000000014ab87c in events::mouse_handler::attack_enemy_
(this=0x7fffffffb370, att_loc=..., def_loc=..., choice=0) at
/home/espreon/wesnoth/src/mouse_events.cpp:958
#28 0x00000000014ab1ba in events::mouse_handler::attack_enemy
(this=0x7fffffffb370, attacker_loc=..., defender_loc=..., choice=0) at
/home/espreon/wesnoth/src/mouse_events.cpp:896
#29 0x00000000014a8356 in events::mouse_handler::left_click
(this=0x7fffffffb370, x=707, y=288, browse=false) at
/home/espreon/wesnoth/src/mouse_events.cpp:530
#30 0x00000000014b06b4 in events::mouse_handler_base::mouse_press
(this=0x7fffffffb370, event=..., browse=false) at
/home/espreon/wesnoth/src/mouse_handler_base.cpp:143
#31 0x00000000014a79de in events::mouse_handler::mouse_press
(this=0x7fffffffb370, event=..., browse=false) at
/home/espreon/wesnoth/src/mouse_events.cpp:404
#32 0x000000000114a108 in controller_base::handle_event (this=0x7fffffffb2b0,
event=...) at /home/espreon/wesnoth/src/controller_base.cpp:91
#33 0x00000000017983d6 in events::pump () at
/home/espreon/wesnoth/src/events.cpp:380
#34 0x000000000114a910 in controller_base::play_slice (this=0x7fffffffb2b0,
is_delay_enabled=true) at /home/espreon/wesnoth/src/controller_base.cpp:197
#35 0x000000000154f9f9 in playsingle_controller::play_human_turn
(this=0x7fffffffb2b0) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:710
#36 0x000000000154f298 in playsingle_controller::play_side
(this=0x7fffffffb2b0, team_index=1, save=true) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:635
#37 0x000000000154eec8 in playsingle_controller::play_turn
(this=0x7fffffffb2b0, save=true) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:589
#38 0x000000000154d733 in playsingle_controller::play_scenario
(this=0x7fffffffb2b0, story=..., skip_replay=false) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:390
#39 0x00000000015404c9 in playsingle_scenario (game_config=...,
level=0x7fffffffbb50, disp=..., state_of_game=..., story=...,
skip_replay=false, end_level=...)
at /home/espreon/wesnoth/src/playcampaign.cpp:130
#40 0x0000000001542d91 in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
/home/espreon/wesnoth/src/playcampaign.cpp:365
#41 0x00000000011dbc14 in game_controller::launch_game (this=0x21371e0,
reload=game_controller_abstract::RELOAD_DATA) at
/home/espreon/wesnoth/src/game_controller.cpp:1267
#42 0x0000000000f21176 in do_gameloop (argc=1, argv=0x7fffffffdb18) at
/home/espreon/wesnoth/src/game.cpp:573
#43 0x0000000000f216b7 in main (argc=1, argv=0x7fffffffdb18) at
/home/espreon/wesnoth/src/game.cpp:627
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18879>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs