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

                 Summary: Segfault in UtBS 2
                 Project: Battle for Wesnoth
            Submitted by: espreon
            Submitted on: Sat 24 Sep 2011 10:46:29 PM GMT
                Category: Bug
                Severity: 5 - Blocker
                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 (51283)
        Operating System: Sabayon Linux

    _______________________________________________________

Details:

The game segfaults after triggering the scorpion event in the second scenario
of UtBS. Note that I disabled fog and shroud with debug mode.

Error:

Program received signal SIGSEGV, Segmentation fault.
0x000000000100075c in n_ref_counter::t_ref_counter<long>::dec
(this=0x3d00000008) at
/home/espreon/wesnoth/src/utils/reference_counter.hpp:57
57                      if( count_ > 0) { count_  -= 1; }

Backtrace:

#0  0x000000000100075c in n_ref_counter::t_ref_counter<long>::dec
(this=0x3d00000008) at
/home/espreon/wesnoth/src/utils/reference_counter.hpp:57
#1  0x0000000000fffba0 in n_ref_counter::t_ref_counter<long>::operator--
(this=0x3d00000008) at
/home/espreon/wesnoth/src/utils/reference_counter.hpp:68
#2  0x0000000000ffe954 in
n_interned::t_interned_token<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >::dec_ref
(this=0x7fffffff8da0) at /home/espreon/wesnoth/src/utils/interned.hpp:283
#3  0x0000000000ffda34 in
n_interned::t_interned_token<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, boost::hash<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >::~t_interned_token
(this=0x7fffffff8da0, __in_chrg=<value optimized out>) at
/home/espreon/wesnoth/src/utils/interned.hpp:273
#4  0x0000000000ffd7f6 in n_token::t_token::~t_token (this=0x7fffffff8da0,
__in_chrg=<value optimized out>) at /home/espreon/wesnoth/src/token.hpp:74
#5  0x000000000100cd9a in
battle_context_unit_stats::~battle_context_unit_stats (this=0x7fffffff8d58,
__in_chrg=<value optimized out>) at
/home/espreon/wesnoth/src/actions.cpp:1163
#6  0x000000000106980b in std::pair<battle_context_unit_stats,
battle_context_unit_stats>::~pair (this=0x7fffffff8d00, __in_chrg=<value
optimized out>)
    at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_pair.h:72
#7  0x0000000001069854 in std::pair<std::pair<map_location, unit_type const*>
const, std::pair<battle_context_unit_stats, battle_context_unit_stats>
>::~pair (this=0x7fffffff8cf0, 
    __in_chrg=<value optimized out>) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/include/g++-v4/bits/stl_pair.h:72
#8  0x00000000010d90b9 in ai::attack_analysis::analyze (this=0x7fffffff94a0,
map=..., units=..., ai_obj=..., dstsrc=std::multimap with 316 elements =
{...}, srcdst=
    std::multimap with 316 elements = {...}, enemy_dstsrc=std::multimap with
362 elements = {...}, aggression=1) at
/home/espreon/wesnoth/src/ai/default/attack.cpp:146
#9  0x000000000119163b in
ai::testing_ai_default::aspect_attacks::do_attack_analysis (loc=...,
srcdst=std::multimap with 316 elements = {...}, dstsrc=std::multimap with 316
elements = {...}, 
    fullmove_srcdst=std::multimap with 316 elements = {...},
fullmove_dstsrc=std::multimap with 316 elements = {...},
enemy_srcdst=std::multimap with 362 elements = {...}, enemy_dstsrc=
    std::multimap with 362 elements = {...}, tiles=0x7fffffff9540,
used_locations=0x7fffffff9620, units=std::vector of length 5, capacity 8 =
{...}, 
    result=std::vector of length 0, capacity 0, cur_analysis=...,
current_team=..., ai_obj=0x7fffd6be0d20) at
/home/espreon/wesnoth/src/ai/testing/aspect_attacks.cpp:349
#10 0x00000000011902d0 in
ai::testing_ai_default::aspect_attacks::analyze_targets (this=0x7fffd6be0d20)
at /home/espreon/wesnoth/src/ai/testing/aspect_attacks.cpp:114
#11 0x000000000118fade in ai::testing_ai_default::aspect_attacks::recalculate
(this=0x7fffd6be0d20) at
/home/espreon/wesnoth/src/ai/testing/aspect_attacks.cpp:63
#12 0x000000000117ab16 in
ai::typesafe_aspect<std::vector<ai::attack_analysis,
std::allocator<ai::attack_analysis> > >::get_ptr (this=0x7fffd6be0d20)
    at /home/espreon/wesnoth/src/ai/composite/aspect.hpp:171
#13 0x000000000117a5fc in
ai::composite_aspect<std::vector<ai::attack_analysis,
std::allocator<ai::attack_analysis> > >::recalculate (this=0x7fffd6be0a20)
    at /home/espreon/wesnoth/src/ai/composite/aspect.hpp:311
#14 0x000000000117ab16 in
ai::typesafe_aspect<std::vector<ai::attack_analysis,
std::allocator<ai::attack_analysis> > >::get_ptr (this=0x7fffd6be0a20)
    at /home/espreon/wesnoth/src/ai/composite/aspect.hpp:171
#15 0x000000000117aa93 in
ai::typesafe_aspect<std::vector<ai::attack_analysis,
std::allocator<ai::attack_analysis> > >::get (this=0x7fffd6be0a20)
    at /home/espreon/wesnoth/src/ai/composite/aspect.hpp:134
#16 0x00000000010b2d54 in ai::readonly_context_impl::get_attacks
(this=0x7fffd6d83aa0) at /home/espreon/wesnoth/src/ai/contexts.cpp:516
#17 0x0000000001060ba3 in ai::readonly_context_proxy::get_attacks
(this=0x7fffd61a2db8) at
/home/espreon/wesnoth/src/ai/composite/../default/../contexts.hpp:631
#18 0x000000000119d854 in ai::testing_ai_default::combat_phase::evaluate
(this=0x7fffd61a2c60) at /home/espreon/wesnoth/src/ai/testing/ca.cpp:543
#19 0x00000000011d6f46 in
ai::testing_ai_default::candidate_action_evaluation_loop::do_play_stage
(this=0x7fffd4c02b20) at
/home/espreon/wesnoth/src/ai/testing/stage_rca.cpp:118
#20 0x000000000109ed3f in ai::stage::play_stage (this=0x7fffd4c02b48) at
/home/espreon/wesnoth/src/ai/composite/stage.cpp:60
#21 0x000000000105e9b7 in ai::ai_composite::play_turn (this=0x7fffd6d81530)
at /home/espreon/wesnoth/src/ai/composite/ai.cpp:141
#22 0x0000000001126488 in ai::manager::play_turn (side=3) at
/home/espreon/wesnoth/src/ai/manager.cpp:741
#23 0x00000000016389ad in playsingle_controller::play_ai_turn
(this=0x7fffffffb110) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:844
#24 0x000000000163792a in playsingle_controller::play_side
(this=0x7fffffffb110, team_index=3, save=true) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:663
#25 0x00000000016374e2 in playsingle_controller::play_turn
(this=0x7fffffffb110, save=true) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:594
#26 0x0000000001635b52 in playsingle_controller::play_scenario
(this=0x7fffffffb110, story=..., skip_replay=false) at
/home/espreon/wesnoth/src/playsingle_controller.cpp:392
#27 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
#28 0x000000000162b023 in play_game (disp=..., gamestate=...,
game_config=..., io_type=IO_NONE, skip_replay=false) at
/home/espreon/wesnoth/src/playcampaign.cpp:365
#29 0x00000000012b7a8c in game_controller::launch_game (this=0x23173f0,
reload=game_controller_abstract::RELOAD_DATA) at
/home/espreon/wesnoth/src/game_controller.cpp:1264
#30 0x0000000000fe0541 in do_gameloop (argc=1, argv=0x7fffffffdc08) at
/home/espreon/wesnoth/src/game.cpp:567
#31 0x0000000000fe0a82 in main (argc=1, argv=0x7fffffffdc08) at
/home/espreon/wesnoth/src/game.cpp:621




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to