Jump to content

Linux crash dumps


Auntie Mangos

Recommended Posts

  • Replies 986
  • Created
  • Last Reply

Top Posters In This Topic

Any Idea to this crash?

El núcleo se generó por «./mangos-worldd -c /home/stcore/etc/mangosd.conf».
El programa terminó con la señal 11, Segmentation fault.
#0  0x0000000000852ffc in WorldSession::HandleMovementOpcodes (
   this=0x7f7d1077fc80, recv_data=...)
   at ../../../src/game/MovementHandler.cpp:294
294        if (plMover && (movementInfo.HasMovementFlag(MOVEFLAG_SWIMMING) != plMover->IsInWater()))

Hilo 1 (Thread 31093):
#0  0x0000000000852ffc in WorldSession::HandleMovementOpcodes (
   this=0x7f7d1077fc80, recv_data=...)
   at ../../../src/game/MovementHandler.cpp:294
       mover = 0x7f7d01acc000
       plMover = 0x7f7d01acc000
       data = {<ByteBuffer> = {static DEFAULT_SIZE = 4096, _rpos = 103, 
           _wpos = 140175547408512, 
           _storage = {<std::_Vector_base<unsigned char, std::allocator<unsigned char> >> = {
               _M_impl = {<std::allocator<unsigned char>> = {<__gnu_cxx::new_allocator<unsigned char>> = {<No data fields>}, <No data fields>}, 
                 _M_start = 0xf6b5 <Address 0xf6b5 out of bounds>, 
                 _M_finish = 0x7f7d7b0b6cc0 "", 
                 _M_end_of_storage = 0x7f7ccb127690 "Fieantia"}}, <No data fields>}}, m_opcode = 24344}
       guid = {m_guid = 340094}
       movementInfo = {moveFlags = 0, moveFlags2 = 0, time = 39862844, pos = {
           x = 1565.76465, y = -4209.36865, z = 43.8628807, o = 1.38854623}, 
         t_guid = {m_guid = 0}, t_pos = {x = 0, y = 0, z = 0, o = 0}, 
         t_time = 0, t_seat = -1 'ÿ', t_time2 = 0, s_pitch = 0, 
         fallTime = 785, j_velocity = 0, j_sinAngle = 0, j_cosAngle = 0, 
         j_xyspeed = 0, u_unk1 = 0}
#1  0x00000000007f2240 in WorldSession::ExecuteOpcode (this=0x7f7d1077fc80, 
   opHandle=<value optimized out>, packet=0x7f7d74aa9de0)
   at ../../../src/game/WorldSession.cpp:871
No locales.
#2  0x00000000007f56d5 in WorldSession::Update (this=0x7f7d1077fc80)
   at ../../../src/game/WorldSession.cpp:221
       opHandle = @0x422f7397
       packet = 0x7f7d74aa9de0
       currTime = <value optimized out>
#3  0x00000000007ee5ea in World::UpdateSessions (this=0x7f7dd62e7900, diff=103)
   at ../../../src/game/World.cpp:1888
       itr = {<std::tr1::__detail::_Hashtable_iterator_base<std::Pair<unsigned int const, WorldSession*>, false>> = {_M_cur_node = 0xa, 
           _M_cur_bucket = 0x7f7dd9a885e6}, <No data fields>}
       sess = <value optimized out>
#4  0x00000000007eeeb1 in World::Update (this=0x7f7dd62e7900, diff=103)
   at ../../../src/game/World.cpp:1424
       autobroadcaston = 1
#5  0x000000000050b8dc in WorldRunnable::run (this=<value optimized out>)
   at ../../../src/mangosd/WorldRunnable.cpp:60
       diff = 103
       realCurrTime = 3411535097
       realPrevTime = <value optimized out>
       prevSleepTime = 40
#6  0x000000000089af2c in ACE_Based::Thread::ThreadTask (param=0x7f7d01acc000)
   at ../../../src/shared/Threading.cpp:187
       _task = 0x7f7d8605fec0
#7  0x00007f7dd80d7a04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x00007f7dd7695d4d in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

I know exacly how to reproduce it. It's a xploit, if you want the info send me a pm and I'll give you. (Some people of my server read this forum, if I put the "how to" just here it would the apocalipsis!

PD: It works with the latest version of mangos.

Link to comment
Share on other sites

Any Idea to this crash?

El núcleo se generó por «./mangos-worldd -c /home/stcore/etc/mangosd.conf».
El programa terminó con la señal 11, Segmentation fault.
#0  0x0000000000852ffc in WorldSession::HandleMovementOpcodes (
   this=0x7f7d1077fc80, recv_data=...)
   at ../../../src/game/MovementHandler.cpp:294
294        if (plMover && (movementInfo.HasMovementFlag(MOVEFLAG_SWIMMING) != plMover->IsInWater()))

Hilo 1 (Thread 31093):
#0  0x0000000000852ffc in WorldSession::HandleMovementOpcodes (
   this=0x7f7d1077fc80, recv_data=...)
   at ../../../src/game/MovementHandler.cpp:294
       mover = 0x7f7d01acc000
       plMover = 0x7f7d01acc000
       data = {<ByteBuffer> = {static DEFAULT_SIZE = 4096, _rpos = 103, 
           _wpos = 140175547408512, 
           _storage = {<std::_Vector_base<unsigned char, std::allocator<unsigned char> >> = {
               _M_impl = {<std::allocator<unsigned char>> = {<__gnu_cxx::new_allocator<unsigned char>> = {<No data fields>}, <No data fields>}, 
                 _M_start = 0xf6b5 <Address 0xf6b5 out of bounds>, 
                 _M_finish = 0x7f7d7b0b6cc0 "", 
                 _M_end_of_storage = 0x7f7ccb127690 "Fieantia"}}, <No data fields>}}, m_opcode = 24344}
       guid = {m_guid = 340094}
       movementInfo = {moveFlags = 0, moveFlags2 = 0, time = 39862844, pos = {
           x = 1565.76465, y = -4209.36865, z = 43.8628807, o = 1.38854623}, 
         t_guid = {m_guid = 0}, t_pos = {x = 0, y = 0, z = 0, o = 0}, 
         t_time = 0, t_seat = -1 'ÿ', t_time2 = 0, s_pitch = 0, 
         fallTime = 785, j_velocity = 0, j_sinAngle = 0, j_cosAngle = 0, 
         j_xyspeed = 0, u_unk1 = 0}
#1  0x00000000007f2240 in WorldSession::ExecuteOpcode (this=0x7f7d1077fc80, 
   opHandle=<value optimized out>, packet=0x7f7d74aa9de0)
   at ../../../src/game/WorldSession.cpp:871
No locales.
#2  0x00000000007f56d5 in WorldSession::Update (this=0x7f7d1077fc80)
   at ../../../src/game/WorldSession.cpp:221
       opHandle = @0x422f7397
       packet = 0x7f7d74aa9de0
       currTime = <value optimized out>
#3  0x00000000007ee5ea in World::UpdateSessions (this=0x7f7dd62e7900, diff=103)
   at ../../../src/game/World.cpp:1888
       itr = {<std::tr1::__detail::_Hashtable_iterator_base<std::Pair<unsigned int const, WorldSession*>, false>> = {_M_cur_node = 0xa, 
           _M_cur_bucket = 0x7f7dd9a885e6}, <No data fields>}
       sess = <value optimized out>
#4  0x00000000007eeeb1 in World::Update (this=0x7f7dd62e7900, diff=103)
   at ../../../src/game/World.cpp:1424
       autobroadcaston = 1
#5  0x000000000050b8dc in WorldRunnable::run (this=<value optimized out>)
   at ../../../src/mangosd/WorldRunnable.cpp:60
       diff = 103
       realCurrTime = 3411535097
       realPrevTime = <value optimized out>
       prevSleepTime = 40
#6  0x000000000089af2c in ACE_Based::Thread::ThreadTask (param=0x7f7d01acc000)
   at ../../../src/shared/Threading.cpp:187
       _task = 0x7f7d8605fec0
#7  0x00007f7dd80d7a04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8  0x00007f7dd7695d4d in clone () from /lib/libc.so.6
No symbol table info available.
#9  0x0000000000000000 in ?? ()
No symbol table info available.

I know exacly how to reproduce it. It's a xploit, if you want the info send me a pm and I'll give you. (Some people of my server read this forum, if I put the "how to" just here it would the apocalipsis!

PD: It works with the latest version of mangos.

i think you need to talk with some dev directly if you know how to reproduce it

Link to comment
Share on other sites

Another crash with DK's pets:

El núcleo se generó por «./mangos-worldd -c /home/stcore/etc/mangosd.conf».
El programa terminó con la señal 11, Segmentation fault.
#0  std::_Rb_tree<unsigned int, std::Pair<unsigned int const, unsigned int>, std::_Select1st<std::Pair<unsigned int const, unsigned int> >, std::less<unsigned int>, std::allocator<std::Pair<unsigned int const, unsigned int> > >::_M_lower_bound (this=0x7f5542248100, aura=0x7f54e80b4d28)
   at /usr/include/c++/4.4/bits/stl_tree.h:1002
1002        if (!_M_impl._M_key_compare(_S_key(__x), __k))

Hilo 1 (Thread 15472):
#0  std::_Rb_tree<unsigned int, std::Pair<unsigned int const, unsigned int>, std::_Select1st<std::Pair<unsigned int const, unsigned int> >, std::less<unsigned int>, std::allocator<std::Pair<unsigned int const, unsigned int> > >::_M_lower_bound (this=0x7f5542248100, aura=0x7f54e80b4d28)
   at /usr/include/c++/4.4/bits/stl_tree.h:1002
No locales.
#1  std::_Rb_tree<unsigned int, std::Pair<unsigned int const, unsigned int>, std::_Select1st<std::Pair<unsigned int const, unsigned int> >, std::less<unsigned int>, std::allocator<std::Pair<unsigned int const, unsigned int> > >::find (
   this=0x7f5542248100, aura=0x7f54e80b4d28)
   at /usr/include/c++/4.4/bits/stl_tree.h:1434
No locales.
#2  std::map<unsigned int, unsigned int, std::less<unsigned int>, std::allocator<std::Pair<unsigned int const, unsigned int> > >::find (this=0x7f5542248100, 
   aura=0x7f54e80b4d28) at /usr/include/c++/4.4/bits/stl_map.h:674
No locales.
#3  PetAura::GetAura (this=0x7f5542248100, aura=0x7f54e80b4d28)
   at ../../../src/game/SpellMgr.h:636
No locales.
#4  Pet::CastPetAura (this=0x7f5542248100, aura=0x7f54e80b4d28)
   at ../../../src/game/Pet.cpp:1911
       auraId = <value optimized out>
#5  0x00000000006bb8e5 in Pet::CastPetAuras (this=0x7f5542248100, current=true)
   at ../../../src/game/Pet.cpp:1905
       pa = 0x7f54e80b4d28
       owner = 0x14840000
#6  0x00000000006c1e67 in Pet::LoadPetFromDB (this=0x7f5542248100, 
   owner=0x14840000, petentry=<value optimized out>, 
   petnumber=<value optimized out>, current=13)
   at ../../../src/game/Pet.cpp:284
       px = 7827.74707
       cinfo = 0x2fe5
       ownerid = 1283463249
       result = 0x7f54e58435b0
       fields = 0x7f549306f888
       spellInfo = <value optimized out>
       pet_number = 9477899
       guid = <value optimized out>
       py = 5024.52197
       petlevel = 2134
       savedmana = 2134
       is_temporary_summoned = false
       pet_type = 2134
       pz = 2.49080801
       savedhealth = 12261
       summon_spell_id = <value optimized out>
       map = 0x240c000
#7  0x00000000006caa65 in Player::ResummonPetTemporaryUnSummonedIfAny (
   this=0x14840000) at ../../../src/game/Player.cpp:21733
No locales.
#8  0x00000000007321ba in Aura::ApplyModifier (this=0x7f54a4c536d0, apply=13, 
   Real=false) at ../../../src/game/SpellAuras.cpp:924
       aura = <value optimized out>
#9  0x00000000007b66c7 in Unit::RemoveAura (this=0x14840000, i=..., 
   mode=AURA_REMOVE_BY_DEFAULT) at ../../../src/game/Unit.cpp:4727
       Aur = 0x7f54a4c536d0
       AurSpellInfo = <value optimized out>
       statue = 0x0
#10 0x00000000007b71b0 in Unit::RemoveAura (this=0x14840000, spellId=54729, 
   effindex=EFFECT_INDEX_0, except=0x0, mode=3893054768)
   at ../../../src/game/Unit.cpp:4350
       iter = {_M_node = 0x7f5503dba0e0}
#11 0x00000000007b72f7 in Unit::RemoveAurasDueToSpell (this=0x14840000, 
   spellId=54729, mode=AURA_REMOVE_BY_DEFAULT, except=<value optimized out>)
   at ../../../src/game/Unit.cpp:4580
       i = 1
#12 0x00000000007b7431 in Unit::RemoveSpellsCausingAura (this=0x14840000, 
   auraType=<value optimized out>) at ../../../src/game/Unit.cpp:470
No locales.
#13 0x0000000000786c54 in Spell::EffectScriptEffect (this=0x7f5547d94800, 
   eff_idx=EFFECT_INDEX_2) at ../../../src/game/SpellEffects.cpp:6186
No locales.
#14 0x0000000000754bb0 in Spell::DoSpellHitOnUnit (this=0x7f5547d94800, 
   unit=0x14840000, effectMask=7) at ../../../src/game/Spell.cpp:1296
       effectNumber = 2
       realCaster = 0x14840000
#15 0x00000000007555de in Spell::DoAllEffectOnTarget (this=0x7f5547d94800, 
   target=0x7f5503dbb4d0) at ../../../src/game/Spell.cpp:1048
       unit = 0x14840000
       mask = 0
       real_caster = 0x14840000
       caster = 0x14840000
       missInfo = SPELL_MISS_NONE
       procVictim = <value optimized out>
       procAttacker = 16384
       procEx = <value optimized out>
#16 0x0000000000762b14 in Spell::handle_immediate (this=0x7f5547d94800)
   at ../../../src/game/Spell.cpp:3091
No locales.
#17 0x0000000000761a81 in Spell::cast (this=0x7f5547d94800, skipCheck=false)
   at ../../../src/game/Spell.cpp:3064
       castResult = <value optimized out>
#18 0x000000000076a810 in SpellEvent::Execute (this=0x7f548cc5e1b0, 
   e_time=713862, p_time=0) at ../../../src/game/Spell.cpp:6594
No locales.
#19 0x00000000008b522f in EventProcessor::Update (this=0x14840110, p_time=119)
   at ../../../src/framework/Utilities/EventProcessor.cpp:47
       Event = 0x7f548cc5e1b0
#20 0x00000000007c62bc in Unit::Update (this=0x14840000, p_time=119)
   at ../../../src/game/Unit.cpp:297
No locales.
#21 0x00000000007123e1 in Player::Update (this=0x14840000, p_time=119)
   at ../../../src/game/Player.cpp:1207
       now = <value optimized out>
       pet = <value optimized out>
#22 0x000000000064ffb8 in Map::Update (this=0x240c000, t_diff=@0x7f5559ca8ffc)
   at ../../../src/game/Map.cpp:523
       plr = 0x11d03000000
       updater = {i_timeDiff = 119}
       __FUNCTION__ = "Update"
       __PRETTY_FUNCTION__ = "virtual void Map::Update(const uint32&)"
#23 0x000000000065cf7f in MapManager::Update (this=0x7f559565f900, 
   diff=<value optimized out>) at ../../../src/game/MapManager.cpp:254
No locales.
#24 0x00000000007eeff1 in World::Update (this=0x7f55a78a3900, diff=21)
   at ../../../src/game/World.cpp:1463
       autobroadcaston = 1
#25 0x000000000050b8dc in WorldRunnable::run (this=<value optimized out>)
   at ../../../src/mangosd/WorldRunnable.cpp:60
       diff = 21
       realCurrTime = 3563058082
       realPrevTime = <value optimized out>
       prevSleepTime = 0
#26 0x000000000089af2c in ACE_Based::Thread::ThreadTask (param=0x11d03000000)
   at ../../../src/shared/Threading.cpp:187
       _task = 0x7f5559e3b290
#27 0x00007f55a9694a04 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#28 0x00007f55a8c52d4d in clone () from /lib/libc.so.6
No symbol table info available.
#29 0x0000000000000000 in ?? ()
No symbol table info available.

I'm using stcore stable with SD2stable.

Link to comment
Share on other sites

  • 8 months later...

Dunno if its that

sLog.outError("Not controlled pet %d lost view from owner, removed. Owner = %d, distance = %d, pet GUID = ", GetGUID(),owner->GetObjectGuid(), GetDistance2d(owner), owner->GetPetGuid().GetCounter());

look %d %d %d and you provide GetGUID, GetObjectGuid, Distance and Counter (3 vs 4) - fix structure of errorLog then change GetGUID to GetObjectGuid().GetCounter() maybe - this is multipet custom code by the way...

Link to comment
Share on other sites

in my unit.cpp

void Unit::RemoveGuardian( Pet* pet )
{
   if(GetTypeId() == TYPEID_PLAYER && ((Player*)this)->GetTemporaryUnsummonedPetNumber() != pet->GetCharmInfo()->GetPetNumber())
   {
       uint32 SpellID = pet->GetCreateSpellID();
       SpellEntry const *spellInfo = sSpellStore.LookupEntry(SpellID);
       if (spellInfo && spellInfo->Attributes & SPELL_ATTR_DISABLED_WHILE_ACTIVE)
       {
           ((Player*)this)->SendCooldownEvent(spellInfo);
       }
   }
   m_guardianPets.erase(pet->GetObjectGuid());
}

void Unit::RemoveGuardians()
{
   if (m_guardianPets.empty())
       return;

   while (!m_guardianPets.empty())
   {
       ObjectGuid guid = *m_guardianPets.begin();

       if (Pet* pet = _GetPet(guid))
           pet->Unsummon(PET_SAVE_AS_DELETED, this);
       else
           m_guardianPets.erase(guid);
   }
   m_guardianPets.clear();
}

mangos source unit.cpp

void Unit::SetPet(Pet* pet)
{
   SetPetGuid(pet ? pet->GetObjectGuid() : ObjectGuid());

   if(pet && GetTypeId() == TYPEID_PLAYER)
       ((Player*)this)->SendPetGUIDs();
}

void Unit::SetCharm(Unit* pet)
{
   SetCharmGuid(pet ? pet->GetObjectGuid() : ObjectGuid());
}

void Unit::AddGuardian( Pet* pet )
{
   m_guardianPets.insert(pet->GetObjectGuid());
}

void Unit::RemoveGuardian( Pet* pet )
{
   m_guardianPets.erase(pet->GetObjectGuid());
}

void Unit::RemoveGuardians()
{
   while (!m_guardianPets.empty())
   {
       ObjectGuid guid = *m_guardianPets.begin();

       if (Pet* pet = GetMap()->GetPet(guid))
           pet->Unsummon(PET_SAVE_AS_DELETED, this); // can remove pet guid from m_guardianPets

       m_guardianPets.erase(guid);
   }
}

I think it's here. no certainty = (

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use