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

                 Summary: segfault due to unit map corruption
                 Project: Battle for Wesnoth
            Submitted by: crab
            Submitted on: Thu 11 Aug 2011 01:53:56 AM EEST
                Category: Bug
                Severity: 5 - Blocker
                Priority: 7 - High
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: thonsew
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: r50686
        Operating System: gnu/linux

    _______________________________________________________

Details:

how-to-reproduce: start AoI,enable debug mode, debug-create 2-3 L3 units near
enemy leader, kill him (in 2 turns). after his last_breath message, wesnoth
segfauhlts. the graphics code was just doing a foreach on units. not
reproducible from save.

---

Program received signal SIGSEGV, Segmentation fault.
0x0000000000709eb9 in unit::refresh (this=0x11001f00000000)
    at src/unit.cpp:2836
2836            if (state_ == STATE_FORGET && anim_ &&
anim_->animation_finished_potential())
(gdb) bt
#0  0x0000000000709eb9 in unit::refresh (this=0x11001f00000000)
    at src/unit.cpp:2836
#1  0x00000000004a8ed9 in game_display::invalidate_animations (
    this=0x7fffe017e0a0) at src/game_display.cpp:894
#2  0x0000000000d6e3cc in display::draw (this=0x7fffe017e0a0, update=true, 
    force=false) at src/display.cpp:1960
#3  0x00000000008f9297 in controller_base::play_slice (this=0x7fffffffba60, 
    is_delay_enabled=false) at src/controller_base.cpp:247
#4  0x00000000007468b8 in unit_animator::wait_for_end (this=0x7fffffff9ed0)
    at src/unit_animation.cpp:1117
#5  0x0000000000b4999a in unit_display::unit_sheath_weapon (primary_loc=...,

    primary_unit=0x7fffe00220d0, primary_attack=0x7fffd89519a0, 
    secondary_attack=0x0, secondary_loc=..., secondary_unit=0x0)
    at src/unit_display.cpp:264
#6  0x00000000007ec04c in attack::perform (this=0x7fffffffa1e0)
    at src/actions.cpp:1807
#7  0x00000000007e83e0 in attack_unit (attacker=..., defender=..., 
    attack_with=0, defend_with=0, update_display=true) at
src/actions.cpp:1345
#8  0x0000000000b0a296 in events::mouse_handler::perform_attack (
    this=0x7fffffffbb20, attacker_loc=..., defender_loc=..., 
    attacker_weapon=0, defender_weapon=0, seed=2035370608)
    at src/mouse_events.cpp:1005
#9  0x0000000000b09fb2 in events::mouse_handler::attack_enemy_ (
---Type <return> to continue, or q <return> to quit---
    this=0x7fffffffbb20, att_loc=..., def_loc=..., choice=0)
    at src/mouse_events.cpp:982





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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