Follow-up Comment #2, bug #18160 (project wesnoth):
gdb backtrace - easier to read:
++
Program received signal SIGFPE, Arithmetic exception.
0x087097b8 in execute (this=0xaaf362a8, variables=..., fdb=0x0) at
src/ai/formula/function_table.cpp:316
316 *j = *j /
units_input[index].num_elements();
(gdb) bt
#0 0x087097b8 in execute (this=0xaaf362a8, variables=..., fdb=0x0) at
src/ai/formula/function_table.cpp:316
#1 0x084e8734 in game_logic::formula_expression::evaluate (this=0xaaf362a8,
variables=..., fdb=0x0) at src/formula_function.hpp:34
#2 0x084f52c3 in game_logic::formula_function_expression::execute
(this=0xaaf36350, variables=..., fdb=0x0)
at src/formula_function.cpp:1066
#3 0x084e8734 in game_logic::formula_expression::evaluate (this=0xaaf36350,
variables=..., fdb=0x0) at src/formula_function.hpp:34
#4 0x087108e3 in execute (this=0xaaf363f0, variables=..., fdb=0x0) at
src/ai/formula/function_table.cpp:1158
#5 0x084e8734 in game_logic::formula_expression::evaluate (this=0xaaf363f0,
variables=..., fdb=0x0) at src/formula_function.hpp:34
#6 0x084ed811 in execute (this=0xaaf36458, variables=..., fdb=0x0) at
src/formula_function.cpp:125
#7 0x084e8734 in game_logic::formula_expression::evaluate (this=0xaaf36458,
variables=..., fdb=0x0) at src/formula_function.hpp:34
#8 0x084e542e in game_logic::formula::execute (this=0xb12c7f80,
variables=..., fdb=0x0) at src/formula.cpp:1133
#9 0x081ab147 in game_logic::formula::evaluate (this=0xb12c7f80,
variables=..., fdb=0x0) at src/gui/auxiliary/../../formula.hpp:47
#10 0x086f10ea in ai::formula_ai::make_action (this=0xad3d64a0, formula_=...,
variables=...) at src/ai/formula/ai.cpp:162
#11 0x0871e213 in ai::stage_side_formulas::do_play_stage (this=0xab3834a0) at
src/ai/formula/stage_side_formulas.cpp:55
#12 0x086c951c in ai::stage::play_stage (this=0xab3834a0) at
src/ai/composite/stage.cpp:60
#13 0x084491b3 in ai::testing_ai_default::aspect_recruitment_phase::execute
(this=0xad3d5e40) at src/ai/testing/ca.cpp:158
#14 0x08486e26 in
ai::testing_ai_default::candidate_action_evaluation_loop::do_play_stage
(this=0xad3d5050)
at src/ai/testing/stage_rca.cpp:130
#15 0x086c951c in ai::stage::play_stage (this=0xad3d5064) at
src/ai/composite/stage.cpp:60
#16 0x086a5294 in ai::ai_composite::play_turn (this=0xad3d55f0) at
src/ai/composite/ai.cpp:141
#17 0x083e4930 in ai::manager::play_turn (side=3) at src/ai/manager.cpp:733
#18 0x08280d30 in playsingle_controller::play_ai_turn (this=0xbfffe07c) at
src/playsingle_controller.cpp:826
#19 0x0827fe29 in playsingle_controller::play_side (this=0xbfffe07c,
team_index=3, save=true) at src/playsingle_controller.cpp:652
#20 0x0827f9ee in playsingle_controller::play_turn (this=0xbfffe07c,
save=true) at src/playsingle_controller.cpp:583
#21 0x0827e2b4 in playsingle_controller::play_scenario (this=0xbfffe07c,
story=..., skip_replay=false) at src/playsingle_controller.cpp:392
#22 0x08270958 in playsingle_scenario (game_config=..., level=0xbfffea64,
disp=..., state_of_game=..., story=..., skip_replay=false,
end_level=...) at src/playcampaign.cpp:130
#23 0x08273ae6 in play_game (disp=..., gamestate=..., game_config=...,
io_type=IO_NONE, skip_replay=false) at src/playcampaign.cpp:365
#24 0x0806963b in launch_game (this=0xbfffef44, reload=(anonymous
namespace)::game_controller::NO_RELOAD_DATA) at src/game.cpp:1619
#25 0x0806dcd4 in do_gameloop (argc=4, argv=0xbffff464) at src/game.cpp:2392
#26 0x0806dfe0 in main (argc=4, argv=0xbffff464) at src/game.cpp:2448
--
Also, it seems that there is some connection to the existance of addons or
something in the userdata directory since I can not always reproduce a crash,
but get this instead:
++
20110527 19:49:58 error ai/actions: Error #-1
(action_result::AI_ACTION_FAILURE) in recruitment by side 3 of unit type
[Troll Whelp] on any suitable location
20110527 19:49:58 error ai/general: recruitment failed
--
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18160>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs