Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Баг-репорты (http://mangos.ytdb.ru/forumdisplay.php?f=27)
-   -   Краш (http://mangos.ytdb.ru/showthread.php?t=940)

xmolex 04.05.2010 18:10

Краш
 
Постоянно время от времени ловлю краш.

Код:

Core was generated by `mangos-worldd'.
Program terminated with signal 6, Aborted.
#0  0x291ce5cb in thr_kill () from /lib/libc.so.7
[New Thread 0x392e3c00 (LWP 100328)]
[New Thread 0x392e3b00 (LWP 100306)]
[New Thread 0x392e3900 (LWP 100303)]
[New Thread 0x392e3800 (LWP 100281)]
[New Thread 0x392e3700 (LWP 100195)]
[New Thread 0x392e3600 (LWP 100189)]
[New Thread 0x29301400 (LWP 100112)]
[New Thread 0x29301300 (LWP 100063)]
[New Thread 0x29301200 (LWP 100047)]
[New Thread 0x29301100 (LWP 100070)]
#0  0x291ce5cb in thr_kill () from /lib/libc.so.7
No symbol table info available.
#1  0x2906d386 in pthread_kill () from /lib/libthr.so.3
No symbol table info available.
#2  0x2906b123 in raise () from /lib/libthr.so.3
No symbol table info available.
#3  0x2925bb8a in abort () from /lib/libc.so.7
No symbol table info available.
#4  0x29244096 in __assert () from /lib/libc.so.7
No symbol table info available.
#5  0x0866942e in Aura::UnregisterSingleCastAura (this=0x3a5a3b20) at ../../../src/game/SpellAuras.cpp:8364
        st = {static SYMBUFSIZ = 4096,
  buf_ = "<stack traces unsupported platform>\000ш\a')\005\000\000\000\000*щ98{_ї\202№\036)\214\032\230\b\b\200.D\030{_ї>[;\b`Їщ9\214\032\230\bh\033\230\bбЭ:\bG{_\000\006\000.\001({_ї1\220A\bhЇщ9\b\200.D;ё\036)ш\a')`Їщ9\025\000\000\000h{_ї~»\036)hЇщ9\200\000\000\000X{_їRЭM\b\004\000\000\000$\000\000\000h{_ї\f\017T\b4+\026)$\000\000\000x{_ї\216\017T\bь\0350Dм\0350D\210{_їЎ\017T\b"..., buflen_ = 0, static UNSUPPORTED = 0x28a7e3a0 "<stack traces unsupported platform>",
  static UNABLE_TO_GET_TRACE = 0x28a7e3c4 "<unable to get trace>"}
        caster = (Unit *) 0x0
        __FUNCTION__ = "UnregisterSingleCastAura"
        __func__ = "UnregisterSingleCastAura"
#6  0x0870f962 in Unit::RemoveAura (this=0x43e21000, i=@0xbf5f8b2c, mode=AURA_REMOVE_BY_DEFAULT) at ../../../src/game/Unit.cpp:4451
        Aur = (Aura *) 0x3a5a3b20
        AurSpellInfo = (const SpellEntry *) 0x2f3392d4
        statue = (Totem *) 0xbf5f8b08
#7  0x0870ff2b in Unit::RemoveAura (this=0x43e21000, aura=0x3a5a3b20, mode=AURA_REMOVE_BY_DEFAULT) at ../../../src/game/Unit.cpp:4439
        i = {_M_node = 0x3a411300}
        upperBound = {_M_node = 0x43e211d0}
#8  0x0871113e in Unit::RemoveNotOwnSingleTargetAuras (this=0x44301000, newPhase=0) at ../../../src/game/Unit.cpp:4422
        aura = (Aura *) 0x3a5a3b20
        iter = {_M_node = 0x42bea9d0}
        scAuras = (std::list<Aura*,std::allocator<Aura*> > &) @0x443011f0: {<std::_List_base<Aura*,std::allocator<Aura*> >> = {
    _M_impl = {<std::allocator<std::_List_node<Aura*> >> = {<__gnu_cxx::new_allocator<std::_List_node<Aura*> >> = {<No data fields>}, <No data fields>}, _M_node = {
        _M_next = 0x443011f0, _M_prev = 0x443011f0}}}, <No data fields>}
#9  0x08711276 in Unit::RemoveFromWorld (this=0x44301000) at ../../../src/game/Unit.cpp:12153
No locals.
#10 0x0841825f in Creature::RemoveFromWorld (this=0x44301000) at ../../../src/game/Creature.cpp:160
No locals.
#11 0x0854de58 in WorldObject::CleanupsBeforeDelete (this=0x44301000) at ../../../src/game/Object.cpp:1094
No locals.
#12 0x0871650c in Unit::CleanupsBeforeDelete (this=0x44301000) at ../../../src/game/Unit.cpp:12176
No locals.
#13 0x0855cd57 in ObjectGridUnloader::Visit<Creature> (this=0xbf5f9d24, m=@0x3c8f4f1c) at ../../../src/game/ObjectGridLoader.cpp:263
        iter = {_Ptr = 0x44302058}
#14 0x0855ce38 in VisitorHelper<ObjectGridUnloader, Creature> (v=@0xbf5f9d24, c=@0x3c8f4f1c) at TypeContainerVisitor.h:50
No locals.
#15 0x0855cfd8 in VisitorHelper<ObjectGridUnloader, Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > (v=@0xbf5f9d24, c=@0x3c8f4f1c)
    at TypeContainerVisitor.h:57
No locals.
#16 0x0855d01d in VisitorHelper<ObjectGridUnloader, GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > (v=@0xbf5f9d24,
    c=@0x3c8f4f04) at TypeContainerVisitor.h:58
No locals.
#17 0x0855d040 in VisitorHelper<ObjectGridUnloader, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > (v=@0xbf5f9d24,
    c=@0x3c8f4f04) at TypeContainerVisitor.h:65
No locals.
#18 0x0855d06a in TypeContainerVisitor<ObjectGridUnloader, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > > >::Visit (this=0xbf5f8ca4, c=@0x3c8f4f04) at TypeContainerVisitor.h:80
No locals.
#19 0x0855d088 in Grid<Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeNull> > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >::Visit<ObjectGridUnloader> (this=0x3c8f4f04, visitor=@0xbf5f8ca4) at Grid.h:80
No locals.
#20 0x0855ae2a in ObjectGridUnloader::Unload (this=0xbf5f9d24, grid=@0x3c8f4f04) at ../../../src/game/ObjectGridLoader.cpp:254
        unloader = {i_visitor = @0xbf5f9d24}
#21 0x085347b8 in GridLoader<Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeNull> > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeNull> > > > >::Unload<ObjectGridUnloader> (this=0xbf5f8cdf, grid=@0x3c8f4f04, unloader=@0xbf5f9d24) at GridLoader.h:68
No locals.
#22 0x0853480b in ObjectGridUnloader::UnloadN (this=0xbf5f9d24) at ObjectGridLoader.h:70
        loader = {<No data fields>}
        y = 3
        x = 2
#23 0x085146cb in Map::UnloadGrid (this=0x486ea000, x=@0xbf5fae40, y=@0xbf5fae3c, pForce=false) at ../../../src/game/Map.cpp:1027
        unloader = {i_grid = @0x3c8f4000}
        grid = (NGridType *) 0x3c8f4000
        gx = 0
        gy = -1084252856
        __FUNCTION__ = "UnloadGrid"
        __func__ = "UnloadGrid"
#24 0x087a54cb in RemovalState::Update (this=0x3924cce8, m=@0x486ea000, grid=@0x3c8f4000, info=@0x3c8f4004, x=@0xbf5fae40, y=@0xbf5fae3c, t_diff=@0xbf5faea8)
    at ../../../src/game/GridStates.cpp:65
No locals.
#25 0x0851b3d9 in Map::Update (this=0x486ea000, t_diff=@0xbf5faea8) at ../../../src/game/Map.cpp:710
        grid = (NGridType *) 0x3c8f4000
        info = (GridInfo *) 0x3c8f4004
        i = {_Ptr = 0x0}
        updater = {i_timeDiff = 100}
        grid_object_update = {i_visitor = @0xbf5fae20}
        world_object_update = {i_visitor = @0xbf5fae20}
        __FUNCTION__ = "Update"
        __func__ = "Update"
#26 0x0853b919 in MapManager::Update (this=0x392278d0, diff=34) at ../../../src/game/MapManager.cpp:262
        iter = {_M_cur = 0x486b6350, _M_ht = 0x39227918}
#27 0x08747eb8 in World::Update (this=0x2932ec00, diff=34) at ../../../src/game/World.cpp:1425
No locals.
#28 0x0839e047 in WorldRunnable::run (this=0x3922a7a0) at ../../../src/mangosd/WorldRunnable.cpp:60
        diff = 34
        realCurrTime = 1667499504
        realPrevTime = 1667499470
        prevSleepTime = 30
#29 0x0880161e in ACE_Based::Thread::ThreadTask (param=0x3922a7a0) at ../../../src/shared/Threading.cpp:187
        _task = (ACE_Based::Runnable *) 0x3922a7a0
#30 0x28a2617c in ACE_OS_Thread_Adapter::invoke () from /usr/local/mangos/temp/lib/libACE-5.6.6.so
No symbol table info available.
#31 0x289bd46e in ace_thread_adapter () from /usr/local/mangos/temp/lib/libACE-5.6.6.so
No symbol table info available.
#32 0x29068b1f in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#33 0x00000000 in ?? ()
No symbol table info available.
[Switching to thread 1 (Thread 0x392e3c00 (LWP 100328))]#0  0x29260353 in select () from /lib/libc.so.7

Revision 9827. Но от ревизии не зависит, на 97xx тоже был.
Подскажите, что за аура такая?

MangMan 04.05.2010 18:18

Я сделал так
Код:

void Aura::UnregisterSingleCastAura()
{
    if (IsSingleTarget())
    {
        if(Unit* caster = GetCaster())
        {
            caster->GetSingleCastAuras().remove(this);
        }
        else
        {
            sLog.outError("Couldn't find the caster of the single target aura (SpellId %u), may crash later!", GetId());
 -            ASSERT(false);
 +          //ASSERT(false);
        }
        m_isSingleTargetAura = false;
    }
}

Конечно способ некорректен, но от краша должен помочь избавиться

xmolex 04.05.2010 18:37

Спасибо, попробую убрать.


Текущее время: 21:56. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS