URL:
<http://gna.org/bugs/?18728>
Summary: arcane focus type/weapon special causes the game to
segfault
Project: Battle for Wesnoth
Submitted by: espreon
Submitted on: Sat 24 Sep 2011 10:50:35 PM GMT
Category: Bug
Severity: 4 - Important
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: thonsew
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.9+svn (51245)
Operating System: Sabayon Linux
_______________________________________________________
Details:
In TSL, when a turn is ended after a unit with the arcane focus type/weapon
special (such as the Inquisitor) is spawned, the game segfaults.
Error:
"give_arcane_focus_res[].resistance.arcane_focus" at
"give_arcane_focus_res[" <---->"].resistance.arcane_focus"
wesnoth: /home/espreon/wesnoth/src/variable.cpp:908: config::attribute_value&
variable_info::as_scalar(): Assertion `is_valid_' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff3778735 in raise () from /lib64/libc.so.6
Backtrace:
#0 0x00007ffff3778735 in raise () from /lib64/libc.so.6
#1 0x00007ffff3779bb6 in abort () from /lib64/libc.so.6
#2 0x00007ffff3771355 in __assert_fail () from /lib64/libc.so.6
#3 0x000000000178d59f in variable_info::as_scalar (this=0x7fffffff77e0) at
/home/espreon/wesnoth/src/variable.cpp:908
#4 0x0000000001342d28 in game_state::get_variable (this=0x2317528, key=...)
at /home/espreon/wesnoth/src/gamestatus.cpp:581
#5 0x00000000013431d0 in game_state::get_variable (this=0x2317528, key=...)
at /home/espreon/wesnoth/src/gamestatus.cpp:634
#6 0x00000000012e9bb9 in wml_func_set_variable (cfg=...) at
/home/espreon/wesnoth/src/game_events.cpp:1353
#7 0x0000000001670605 in cfun_wml_action (L=0x7fffde2b5cf0) at
/home/espreon/wesnoth/src/scripting/lua.cpp:3827
#8 0x000000000187ab97 in luaD_precall (L=0x7fffde2b5cf0,
func=0x7fffd4f3b6b0, nresults=0) at /home/espreon/wesnoth/src/lua/ldo.c:323
#9 0x0000000001888bda in luaV_execute (L=0x7fffde2b5cf0, nexeccalls=4) at
/home/espreon/wesnoth/src/lua/lvm.c:590
#10 0x000000000187ae69 in luaD_call (L=0x7fffde2b5cf0, func=0x7fffd4f3b450,
nResults=0) at /home/espreon/wesnoth/src/lua/ldo.c:381
#11 0x00000000018773b4 in f_call (L=0x7fffde2b5cf0, ud=0x7fffffff8900) at
/home/espreon/wesnoth/src/lua/lapi.c:800
#12 0x0000000001879d18 in luaD_rawrunprotected (L=0x7fffde2b5cf0, f=0x187737f
<f_call(lua_State*, void*)>, ud=0x7fffffff8900) at
/home/espreon/wesnoth/src/lua/ldo.c:120
#13 0x000000000187b277 in luaD_pcall (L=0x7fffde2b5cf0, func=0x187737f
<f_call(lua_State*, void*)>, u=0x7fffffff8900, old_top=32, ef=16) at
/home/espreon/wesnoth/src/lua/ldo.c:467
#14 0x000000000187745d in lua_pcall (L=0x7fffde2b5cf0, nargs=1, nresults=0,
errfunc=-3) at /home/espreon/wesnoth/src/lua/lapi.c:821
#15 0x000000000165f4a7 in luaW_pcall (L=0x7fffde2b5cf0, nArgs=1, nRets=0,
allow_wml_error=true) at /home/espreon/wesnoth/src/scripting/lua.cpp:459
#16 0x00000000016707a2 in LuaKernel::run_wml_action (this=0x7fffde4c97a0,
cmd="command", cfg=..., ev=...) at
/home/espreon/wesnoth/src/scripting/lua.cpp:3865
#17 0x0000000001302e09 in game_events::handle_event_commands (event_info=...,
cfg=...) at /home/espreon/wesnoth/src/game_events.cpp:3398
#18 0x0000000001302ca6 in game_events::event_handler::handle_event
(this=0x7fffdebe61c0, event_info=...) at
/home/espreon/wesnoth/src/game_events.cpp:3393
#19 0x000000000130220b in process_event (handler=..., ev=...) at
/home/espreon/wesnoth/src/game_events.cpp:3354
#20 0x0000000001305ead in game_events::pump () at
/home/espreon/wesnoth/src/game_events.cpp:3718
#21 0x0000000001305526 in game_events::fire (event=..., loc1=..., loc2=...,
data=...) at /home/espreon/wesnoth/src/game_events.cpp:3642
#22 0x0000000001618fba in play_controller::do_init_side (this=0x7fffffffb110,
team_index=1, is_replay=false) at
/home/espreon/wesnoth/src/play_controller.cpp:641
#23 0x0000000001618481 in play_controller::init_side (this=0x7fffffffb110,
team_index=1, is_replay=false) at
/home/espreon/wesnoth/src/play_controller.cpp:577
#24 0x00000000016372aa in playsingle_controller::play_turn
(this=0x7fffffffb110, save=true) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:568
#25 0x0000000001635b52 in playsingle_controller::play_scenario
(this=0x7fffffffb110, story=..., skip_replay=false) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:392
#26 0x0000000001628a22 in playsingle_scenario (game_config=...,
level=0x7fffffffbcb0, disp=..., state_of_game=..., story=...,
skip_replay=false, end_level=...)
at /home/espreon/wesnoth/src/playcampaign.cpp:130
#27 0x000000000162b023 in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
/home/espreon/wesnoth/src/playcampaign.cpp:365
#28 0x00000000012b7a8c in game_controller::launch_game (this=0x23173f0,
reload=game_controller_abstract::RELOAD_DATA) at
/home/espreon/wesnoth/src/game_controller.cpp:1264
#29 0x0000000000fe0541 in do_gameloop (argc=1, argv=0x7fffffffdc08) at
/home/espreon/wesnoth/src/game.cpp:567
#30 0x0000000000fe0a82 in main (argc=1, argv=0x7fffffffdc08) at
/home/espreon/wesnoth/src/game.cpp:621
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18728>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs