URL:
<http://gna.org/bugs/?23188>
Summary: segfault when placing startingunit in village
Project: Battle for Wesnoth
Submitted by: gfgtdf
Submitted on: Mi 14 Jan 2015 15:21:35 UTC
Category: Bug
Severity: 5 - Blocker
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: involution
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13
Operating System:
_______________________________________________________
Details:
segfaults happen if there is a [unit] inside [side] placed in a village.
as found ot here: https://github.com/wesnoth/wesnoth/pull/364
stacktrace:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000a4ab76 in boost::scoped_ptr<game_events::t_pump>::operator*()
const ()
#0 0x0000000000a4ab76 in boost::scoped_ptr<game_events::t_pump>::operator*()
const ()
#1 0x0000000000a49be0 in game_events::manager::pump() ()
#2 0x00000000006da323 in team::get_village(map_location const&, int,
game_data*) ()
#3 0x00000000008336d1 in actions::get_village(map_location const&, int, int*)
()
#4 0x000000000082cfff in unit_creator::post_create(map_location const&, unit
const&, bool) ()
#5 0x000000000082c8f1 in unit_creator::add_unit(config const&, vconfig
const*) ()
#6 0x0000000000c80660 in team_builder::place_units() ()
#7 0x0000000000c7da58 in team_builder::build_team_stage_two() ()
#8 0x0000000000c7d7b1 in
build_team_stage_two(boost::shared_ptr<team_builder>) ()
#9 0x0000000000a61c30 in game_state::init(int, play_controller&) ()
#10 0x0000000000c54fdb in play_controller::init(CVideo&) ()
#11 0x0000000000c54643 in play_controller::play_controller(config const&,
saved_game&, int, config const&, boost::shared_ptr<terrain_type_data> const&,
CVideo&, bool) ()
#12 0x000000000061d722 in playsingle_controller::playsingle_controller(config
const&, saved_game&, int, config const&, boost::shared_ptr<terrain_type_data>
const&, CVideo&, bool) ()
#13 0x0000000000611179 in playsingle_scenario(config const&,
boost::shared_ptr<terrain_type_data> const&, display&, saved_game&,
std::pair<config::const_child_iterator, config::const_child_iterator> const&,
bool, end_level_data&) ()
#14 0x00000000006118b4 in play_game(game_display&, saved_game&, config const&,
boost::shared_ptr<terrain_type_data> const&, io_type_t, bool, bool, bool,
bool) ()
#15 0x00000000004a475a in game_launcher::unit_test() ()
#16 0x000000000042387e in do_gameloop(std::vector<std::string,
std::allocator<std::string> > const&) ()
#17 0x0000000000424fb4 in main ()
Scenario to reproduce
[scenario]
id= "01_STARTUNIT_TEST"
map_data = "Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, 2 Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, 1 Gs^Vh, Gs^Vh, Gs^Vh
Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh, Gs^Vh
"
{DEFAULT_SCHEDULE}
[side]
side=1
id= "leader1"
controller=human
team_name= "team1"
type = "Elvish Archer"
canrecruit="yes"
[/side]
[side]
side=2
id= "leader2"
controller=human
team_name= "team2"
type = "Elvish Archer"
canrecruit="yes"
[/side]
[/scenario]
This is most likeley caused by iceiceices refactor of gamestate initilisation.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23188>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs