[CRASH] in ThreatManager::_addThreat
CORE revision number : 014714fb1789083abbfb Database: YTDB 579 Patches: AC1
- http://pastebin.com/zztkegk4
Author: shocker Confirmed
Author: marky81 Confirmed:
{{{
0 0x00000000007653b8 in ThreatManager::addThreat(Unit, float) ()
#1 0x0000000000765669 in ThreatManager::addThreat(Unit_, float, SpellSchoolMask, SpellEntry const_) ()
#2 0x0000000000763682 in HostileRefManager::threatAssist(Unit_, float, SpellEntry const_, bool) ()
#3 0x0000000000acc265 in AuraEffect::PeriodicTick(AuraApplication_, Unit_) const ()
#4 0x0000000000ace956 in AuraEffect::Update(unsigned int, Unit_) ()
#5 0x0000000000ab0cf4 in Aura::UpdateOwner(unsigned int, WorldObject*) ()
#6 0x000000000089055b in Unit::_UpdateSpells(unsigned int) ()
#7 0x000000000089f62c in Unit::Update(unsigned int) ()
#8 0x0000000000841b21 in Player::Update(unsigned int) ()
#9 0x00000000009e59bd in Map::Update(unsigned int const&) ()
#10 0x00000000009e5b09 in InstanceMap::Update(unsigned int const&) ()
#11 0x0000000000c15bae in MapInstanced::Update(unsigned int const&) ()
#12 0x0000000000c14e32 in MapUpdateRequest::call() ()
#13 0x0000000000c66fac in DelayExecutor::svc() ()
#14 0x00002aaaaac12687 in ACE_Task_Base::svc_run (args=
}}}
Author: marky81 Any new about this crash ? Very often :(
Author: 1mp3rator http://pastebin.com/BvmHZqxx
Author: marky81 Any fix ? Hack fix ? this crash is so bad :(
Author: uncletom
{{{
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd0bff700 (LWP 3160)]
0x0000000000c130e0 in ThreatManager::addThreat(Unit_, float, SpellSchoolMask, SpellEntry const_) ()
#0 0x0000000000c130e0 in ThreatManager::addThreat(Unit_, float, SpellSchoolMask, SpellEntry const_) ()
#1 0x00000000007ab971 in HostileRefManager::threatAssist(Unit_, float, SpellEntry const_, bool) ()
#2 0x0000000000b595af in AuraEffect::PeriodicTick(AuraApplication_, Unit_) const ()
#3 0x0000000000b5e6bf in AuraEffect::Update(unsigned int, Unit_) ()
#4 0x0000000000b3d01b in Aura::UpdateOwner(unsigned int, WorldObject_) ()
#5 0x0000000000864c8e in Unit::_UpdateSpells(unsigned int) ()
#6 0x0000000000866cba in Unit::Update(unsigned int) ()
#7 0x000000000094679e in Player::Update(unsigned int) ()
#8 0x0000000000a352d5 in Map::Update(unsigned int const&) ()
#9 0x0000000000a353c9 in InstanceMap::Update(unsigned int const&) ()
#10 0x0000000000c49339 in MapInstanced::Update(unsigned int const&) ()
#11 0x0000000000a4291e in MapUpdateRequest::call() ()
#12 0x0000000000cd9d41 in DelayExecutor::svc() ()
#13 0x00007ffff7362fa7 in ACE_Task_Base::svc_run (args=
Author: uncletom please fix...
Author: stfx Crashes due to multithreading when threatlist is being modified while it is read in a different threat at the same time. The modification of threatlist is usually (always?) happening in Spell::DoSpellHitOnUnit() => unit->getHostileRefManager().threatAssist(m_caster, 0.0f);
Author: marky81 mutex needed
Author: doggy This totally destroys any multithreading :|
Author: doggy Could anyone please look into this =(
Author: lazzalf Confirm
Rev: https://github.com/TrinityCore/TrinityCore/commit/2717129d0d000993ff2cac7e57ad2c2d6dbb7e45 OS: Ubuntu Server 9.10 x64 DB: TDB 335.11.40
http://pastebin.com/3DB6KEDp
Any hack to fix it ?
Trinity Revision: 360f0534ce85+ Custom patch: AC1 Database Version: TDB 335.11.41 server: Ubuntu server 64 bit 10.04
crashlog : http://pastebin.com/skfwd9Ge
I make a lot test, with mutex and everything... this crash love me =/ Any dev is looking on this ?
crashdump again: http://pastebin.com/GUK3eKCZ
Trinity Revision: 944fb4c1b77c patches: AC1 Database Version: TDB 335.11.41 server: ubuntu 10.04 64 bit
confirmed on b2698d699e34736dde1d TDB 41 with updates
will take a look at it later, for now i paste crash log: http://paste2.org/p/1574676
Have a look at my pull request #2590 which might fix this issue.
Could someone provide a full backtrace of all threads while this crash occurs? Without prove that the mutex is necessary, the TC team is reluctant to pull my fix.
the mutex could add delay?