[4.3.4] crash spell destination BACKTRACE #10853

Closed
rodrigoalv opened this Issue Sep 17, 2013 · 2 comments

Comments

Projects
None yet
2 participants

Hi :

REv: last trinity rev
DB: last triniry DB

CRASH ON mar sep 17 16:48:59 CEST 2013
(gdb) info program
Using the running image of child Thread 0x7fffbfbff700 (LWP 18052).
Program stopped at 0x134334f.
It stopped with signal SIGSEGV, Segmentation fault.
(gdb) shell echo -e "\nBACKTRACE\n"

BACKTRACE

(gdb) bt
#0 0x000000000134334f in SpellDestination (this=0x7fffbfbfd770, wObj=...)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:85

#1 0x00000000013441f5 in SpellCastTargets::SetDst (this=0x7fff4d33e628,

wObj=...)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:394

#2 0x0000000001349415 in Spell::SelectImplicitTargetDestTargets (

this=0x7fff4d33e600, effIndex=EFFECT_0, targetType=...)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:1457

#3 0x0000000001346f7e in Spell::SelectEffectImplicitTargets (

this=0x7fff4d33e600, effIndex=EFFECT_0, targetType=...,
processedEffectMask=@0x7fffbfbfd8bc)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:879

#4 0x00000000013466ff in Spell::SelectSpellTargets (this=0x7fff4d33e600)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:739

#5 0x00000000013503af in Spell::cast (this=0x7fff4d33e600, skipCheck=true)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3255

#6 0x000000000134f968 in Spell::prepare (this=0x7fff4d33e600,

targets=0x7fffbfbfdaf0, triggeredByAura=0x7fffacd36940)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3075

#7 0x0000000000f80a69 in Unit::CastSpell (this=0x7fff85c12000, targets=...,

spellInfo=0x7fffe3ada800, value=0x0, triggerFlags=4294967295,
castItem=0x0, triggeredByAura=0x7fffacd36940, originalCaster=170362)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:8---Type <return> to continue, or q <return> to quit---shell echo -e "\nBACKTRACE FULL\n"

35
#8 0x0000000000f80d05 in Unit::CastSpell (this=0x7fff85c12000, victim=0x0,

spellInfo=0x7fffe3ada800, triggerFlags=4294967295, castItem=0x0,
triggeredByAura=0x7fffacd36940, originalCaster=0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:864

#9 0x0000000000f80be6 in Unit::CastSpell (this=0x7fff85c12000, victim=0x0,

spellId=64803, triggerFlags=4294967295, castItem=0x0,
triggeredByAura=0x7fffacd36940, originalCaster=0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:852

#10 0x0000000000f80ad6 in Unit::CastSpell (this=0x7fff85c12000, victim=0x0,

spellId=64803, triggered=true, castItem=0x0,
triggeredByAura=0x7fffacd36940, originalCaster=0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:840

#11 0x0000000000f96e8f in Unit::HandleProcTriggerSpell (this=0x7fff85c12000,

victim=0x0, damage=0, triggeredByAura=0x7fffacd36940,
procSpell=0x7fffe7e95800, procFlags=2097152, procEx=67108865, cooldown=0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:7130

#12 0x0000000000fa9ced in Unit::ProcDamageAndSpellFor (this=0x7fff85c12000,

isVictim=false, target=0x0, procFlag=2097152, procExtra=67108865,

---Type to continue, or q to quit---bt full
attType=BASE_ATTACK, procSpell=0x7fffe7e95800, damage=0, procAura=0x0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:12381
#13 0x0000000000f8f8d9 in Unit::ProcDamageAndSpell (this=0x7fff85c12000,

victim=0x0, procAttacker=2097152, procVictim=0, procExtra=67108865,
amount=0, attType=BASE_ATTACK, procSpell=0x7fffe7e95800, procAura=0x0)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:4728

#14 0x0000000001351129 in Spell::_handle_immediate_phase (this=0x7fff4d33df00)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3522

#15 0x0000000001350a76 in Spell::handle_immediate (this=0x7fff4d33df00)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3391

#16 0x000000000135071d in Spell::cast (this=0x7fff4d33df00, skipCheck=true)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3334

#17 0x000000000134f968 in Spell::prepare (this=0x7fff4d33df00,

targets=0x7fffbfbfe330, triggeredByAura=0x0)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3075

#18 0x0000000000f80a69 in Unit::CastSpell (this=0x7fff4a102000, targets=...,

spellInfo=0x7fffe7e95800, value=0x7fffbfbfe3d0, triggerFlags=4294967295,
castItem=0x0, triggeredByAura=0x0, originalCaster=170362)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:835

#19 0x000000000149a406 in Spell::EffectTriggerSpell (this=0x7fff34da2e00,

---Type to continue, or q to quit---shell echo -e "\nTHREADS\n"
effIndex=EFFECT_1)
at /home/repos/Trinity/src/server/game/Spells/SpellEffects.cpp:814
#20 0x0000000001355ae6 in Spell::HandleEffects (this=0x7fff34da2e00,

pUnitTarget=0x0, pItemTarget=0x0, pGOTarget=0x0, i=1,
mode=SPELL_EFFECT_HANDLE_LAUNCH)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:4778

#21 0x000000000135d440 in Spell::HandleLaunchPhase (this=0x7fff34da2e00)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:6746

#22 0x00000000013505fd in Spell::cast (this=0x7fff34da2e00, skipCheck=true)

at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3311

#23 0x000000000134f968 in Spell::prepare (this=0x7fff34da2e00,

targets=0x7fffbfbfe730, triggeredByAura=0x0)
at /home/repos/Trinity/src/server/game/Spells/Spell.cpp:3075

#24 0x0000000000f80a69 in Unit::CastSpell (this=0x7fff4a102000, targets=...,

spellInfo=0x7fffe39b0c00, value=0x0, triggerFlags=4294967295,
castItem=0x0, triggeredByAura=0x0, originalCaster=170362)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:835

#25 0x0000000000f80d05 in Unit::CastSpell (this=0x7fff4a102000,

victim=0x7fff4951b000, spellInfo=0x7fffe39b0c00, triggerFlags=4294967295,
castItem=0x0, triggeredByAura=0x0, originalCaster=170362)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:8---Type <return> to continue, or q <return> to quit---info threads

64
#26 0x0000000000f80c52 in Unit::CastSpell (this=0x7fff4a102000,

victim=0x7fff4951b000, spellInfo=0x7fffe39b0c00, triggered=true,
castItem=0x0, triggeredByAura=0x0, originalCaster=170362)
at /home/repos/Trinity/src/server/game/Entities/Unit/Unit.cpp:857

#27 0x0000000000ff97f8 in GameObject::CastSpell (this=0x7fff38ecf300,

target=0x7fff4951b000, spellId=63487)
at /home/repos/Trinity/src/server/game/Entities/GameObject/GameObject.cpp:1704

#28 0x0000000000ff5766 in GameObject::Update (this=0x7fff38ecf300, diff=324)

at /home/repos/Trinity/src/server/game/Entities/GameObject/GameObject.cpp:478

#29 0x000000000118bddf in Trinity::ObjectUpdater::Visit (

this=0x7fffbfbfed30, m=...)
at /home/repos/Trinity/src/server/game/Grids/Notifiers/GridNotifiers.cpp:329

#30 0x00000000012409a7 in VisitorHelper<Trinity::ObjectUpdater, GameObject> (

v=..., c=...)
at /home/repos/Trinity/src/server/shared/Dynamic/TypeContainerVisitor.h:64

#31 0x0000000001240129 in VisitorHelper<Trinity::ObjectUpdater, GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, Ty---Type to continue, or q to quit---shell echo -e "\nTHREADS BACKTRACE\n"

peNull> > > > > (v=..., c=...)
at /home/repos/Trinity/src/server/shared/Dynamic/TypeContainerVisitor.h:70
#32 0x000000000123f9e7 in VisitorHelper<Trinity::ObjectUpdater, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, TypeNull> > > > > > (v=..., c=...)

at /home/repos/Trinity/src/server/shared/Dynamic/TypeContainerVisitor.h:94

#33 0x000000000123f230 in TypeContainerVisitor<Trinity::ObjectUpdater, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, TypeNull> > > > > > >::Visit (

this=0x7fffbfbfed20, c=...)
at /home/repos/Trinity/src/server/shared/Dynamic/TypeContainerVisitor.h:105

#34 0x000000000123dcb1 in Grid<Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeList<DynamicObject, TypeNull> > > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, TypeNull> > > > > >::VisitTrinity::ObjectUpdater (this=0x7fff9d0dcd98,

visitor=...)
at /home/repos/Trinity/src/server/game/Grids/Grid.h:91

#35 0x000000000123bf89 in NGrid<8u, Player, TypeList<Player, TypeList<Creature, TypeList<Corpse, TypeList<DynamicObject, TypeNull> > > >, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger,---Type to continue, or q to quit---thread apply all bt full

TypeNull> > > > > >::VisitGrid<Trinity::ObjectUpdater, TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, TypeNull> > > > > > (this=0x7fff9d0d9000, x=4, y=3, visitor=...)
at /home/repos/Trinity/src/server/game/Grids/NGrid.h:157
#36 0x0000000001238690 in Map::Visit<Trinity::ObjectUpdater, TypeMapContainer<TypeList<GameObject, TypeList<Creature, TypeList<DynamicObject, TypeList<Corpse, TypeList<AreaTrigger, TypeNull> > > > > > > (this=0x7fff7cada000, cell=...,

visitor=...)
at /home/repos/Trinity/src/server/game/Maps/Map.h:695

#37 0x000000000122c279 in Map::VisitNearbyCellsOf (this=0x7fff7cada000,

obj=0x7fff91d85000, gridVisitor=..., worldVisitor=...)
at /home/repos/Trinity/src/server/game/Maps/Map.cpp:511

#38 0x000000000122c566 in Map::Update (this=0x7fff7cada000, t_diff=324)

at /home/repos/Trinity/src/server/game/Maps/Map.cpp:553

#39 0x000000000148a17e in MapUpdateRequest::call (this=0x7fff67ff8a60)

at /home/repos/Trinity/src/server/game/Maps/MapUpdater.cpp:54

#40 0x000000000151d145 in DelayExecutor::svc (this=0x7ffff4905340)

at /home/repos/Trinity/src/server/shared/Threading/DelayExecutor.cpp:52

#41 0x00007ffff76f0d77 in ACE_Task_Base::svc_run (args=)

at ../../ace/Task.cpp:271

#42 0x00007ffff76f2122 in ACE_Thread_Adapter::invoke_i (

this=<value optimized out>) at ../../ace/Thread_Adapter.cpp:161

---Type to continue, or q to quit---
#43 0x00007ffff76f21a1 in ACE_Thread_Adapter::invoke (this=0x7fffd110a580)

at ../../ace/Thread_Adapter.cpp:96

#44 0x00007ffff67338ca in start_thread () from /lib/libpthread.so.0
#45 0x00007ffff5ceeb6d in clone () from /lib/libc.so.6
#46 0x0000000000000000 in ?? ()

(gdb)

Greetings :D

@zorix thanks U soo much, i now tested and tellu :Dty :D

zorix referenced this issue Sep 20, 2013

Merged

Core/Spell: #10887

work fine :D ty

rodrigoalv closed this Sep 26, 2013

Subv reopened this Jul 8, 2014

Subv closed this in #10887 Jul 8, 2014

@Subv Subv added a commit that referenced this issue Jul 8, 2014

@Subv Subv Merge pull request #10887 from zorix/PR3
Core/Spell:  Triggered spells now will be cast on the primal target instead of on caster

Closes #10853
Closes #10860
4a4da95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment