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

                 Summary: Segmentation fault in unit_filter while running MP
                 Project: Battle for Wesnoth
            Submitted by: kevin11
            Submitted on: Thu 17 Jul 2014 03:38:22 AM UTC
                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.13.0-dev
        Operating System: Ubuntu 12.04

    _______________________________________________________

Details:

This seems to related to #22284. When running RCA vs RCA game, it has a chance
to get segmentation fault:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000732ed7 in basic_unit_filter_impl::matches (this=0x78d1fc0, u=...,
loc=...) at src/unit_filter.cpp:332
332                     scoped_xy_unit auto_store("this_unit", loc.x, loc.y,
fc_.get_disp_context().units());
(gdb) bt
#0  0x0000000000732ed7 in basic_unit_filter_impl::matches (this=0x78d1fc0,
u=..., loc=...) at src/unit_filter.cpp:332
#1  0x000000000067a171 in unit_filter::matches (this=0x63c0e30, u=...,
loc=...) at src/unit_filter.hpp:65
#2  0x0000000000708abb in unit_animation::matches (this=0x88ab160, disp=...,
loc=..., second_loc=..., my_unit=0x91fb6f0, event=..., value=0, 
    hit=unit_animation::INVALID, attack=0x0, second_attack=0x0, value2=0) at
src/unit_animation.cpp:414
#3  0x000000000072e4a2 in unit_animation_component::choose_animation
(this=0x8278b90, disp=..., loc=..., event=..., second_loc=..., value=0, 
    hit=unit_animation::INVALID, attack=0x0, second_attack=0x0, swing_num=0)
at src/unit_animation_component.cpp:33
#4  0x000000000072ec54 in unit_animation_component::set_idling
(this=0x8278b90) at src/unit_animation_component.cpp:80
#5  0x000000000072f3b3 in unit_animation_component::refresh (this=0x8278b90)
at src/unit_animation_component.cpp:146
#6  0x0000000000e5bc2c in display::invalidate_animations (this=0x869e430) at
src/display.cpp:2998
#7  0x0000000000e566fc in display::draw (this=0x869e430, update=true,
force=false) at src/display.cpp:2385
#8  0x0000000000e554a3 in display::scroll_to_xy (this=0x869e430,
screenxpos=451, screenypos=776, scroll_type=display::ONSCREEN, force=false)
    at src/display.cpp:2103
#9  0x0000000000e55db9 in display::scroll_to_tiles (this=0x869e430, begin=...,
end=..., scroll_type=display::ONSCREEN, check_fogged=true, 
    only_if_possible=true, add_spacing=0, force=false) at
src/display.cpp:2256
#10 0x0000000000bceb23 in display::scroll_to_tiles (this=0x869e430, locs=...,
scroll_type=display::ONSCREEN, check_fogged=true, 
    only_if_possible=true, add_spacing=0, force=false) at src/display.hpp:569
#11 0x0000000000bc806e in unit_display::unit_mover::start
(this=0x7fffffff08e0, u=...) at src/unit_display.cpp:274
#12 0x00000000007f6c00 in actions::(anonymous
namespace)::unit_mover::try_actual_movement (this=0x7fffffff0d20, show=true)
at src/actions/move.cpp:945
#13 0x00000000007f851f in actions::move_unit_internal (undo_stack=0x0,
show_move=true, interrupted=0x0, mover=...) at src/actions/move.cpp:1186
#14 0x00000000007f9062 in actions::move_unit_and_record (steps=...,
undo_stack=0x0, continued_move=true, show_move=true, interrupted=0x0, 
    move_spectator=0x7fffffff1010) at src/actions/move.cpp:1266
#15 0x0000000000be7fca in ai::move_result::do_execute (this=0xa80c800) at
src/ai/actions.cpp:473
#16 0x0000000000be5d66 in ai::action_result::execute (this=0xa80c800) at
src/ai/actions.cpp:95
#17 0x0000000000bea5e0 in ai::actions::execute_move_action (side=1,
execute=true, from=..., to=..., remove_movement=true, unreach_is_ok=false)
    at src/ai/actions.cpp:1010
#18 0x0000000000c07324 in ai::readwrite_context_impl::execute_move_action
(this=0x6405160, from=..., to=..., remove_movement=true, 
    unreach_is_ok=false) at src/ai/contexts.cpp:133
#19 0x0000000000818c59 in ai::readwrite_context_proxy::execute_move_action
(this=0x6c49ec8, from=..., to=..., remove_movement=true, 
    unreach_is_ok=false) at src/ai/composite/../default/../contexts.hpp:1072
#20 0x0000000000904113 in
ai::testing_ai_default::testing_move_to_targets_phase::execute
(this=0x6c49e20)
    at src/ai/testing/ca_testing_move_to_targets.cpp:178
#21 0x00000000009210e0 in
ai::testing_ai_default::candidate_action_evaluation_loop::do_play_stage
(this=0x9acf5e0) at src/ai/testing/stage_rca.cpp:130
#22 0x000000000083b6ad in ai::stage::play_stage (this=0x9acf608) at
src/ai/composite/stage.cpp:58
#23 0x000000000081588a in ai::ai_composite::play_turn (this=0x827e1d0) at
src/ai/composite/ai.cpp:140
#24 0x0000000000859f4e in ai::manager::play_turn (side=1) at
src/ai/manager.cpp:794
#25 0x000000000062a79f in playsingle_controller::play_ai_turn
(this=0x7fffffff2730) at src/playsingle_controller.cpp:978
#26 0x0000000000628f3e in playsingle_controller::play_side
(this=0x7fffffff2730) at src/playsingle_controller.cpp:768
#27 0x000000000061daba in playmp_controller::play_side (this=0x7fffffff2730)
at src/playmp_controller.cpp:110
#28 0x0000000000628361 in playsingle_controller::play_turn
(this=0x7fffffff2730) at src/playsingle_controller.cpp:668
#29 0x000000000062600c in playsingle_controller::play_scenario_main_loop
(this=0x7fffffff2730, end_level=...) at src/playsingle_controller.cpp:423
#30 0x0000000000626bfa in playsingle_controller::play_scenario
(this=0x7fffffff2730, story=..., skip_replay=false)
---Type <return> to continue, or q <return> to quit---
    at src/playsingle_controller.cpp:473
#31 0x0000000000619e77 in playmp_scenario (game_config=..., disp=...,
state_of_game=..., story=..., skip_replay=false, blindfold_replay=false, 
    io_type=@0x7fffffff2ee4: IO_SERVER, end_level=...) at
src/playcampaign.cpp:229
#32 0x000000000061a254 in play_game (disp=..., gamestate=..., game_config=...,
io_type=IO_SERVER, skip_replay=false, network_game=false, 
    blindfold_replay=false, is_unit_test=false) at src/playcampaign.cpp:293
#33 0x0000000000598e84 in enter_connect_mode (disp=..., game_config=...,
state=..., local_players_only=true) at src/multiplayer.cpp:510
#34 0x00000000005995ad in enter_configure_mode (disp=..., game_config=...,
state=..., local_players_only=true) at src/multiplayer.cpp:602
#35 0x0000000000599287 in enter_create_mode (disp=..., game_config=...,
state=..., local_players_only=true) at src/multiplayer.cpp:563
#36 0x000000000059a634 in mp::start_local_game (disp=..., game_config=...,
state=...) at src/multiplayer.cpp:749
#37 0x0000000000498f4d in game_launcher::play_multiplayer (this=0x19c4c10) at
src/game_launcher.cpp:842
#38 0x000000000041f16e in do_gameloop (argc=2, argv=0x7fffffffdfc8) at
src/wesnoth.cpp:683
#39 0x000000000042015d in main (argc=2, argv=0x7fffffffdfc8) at
src/wesnoth.cpp:819





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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