Bug #356: TimeEvent double free when casting spells - server crash
|Submitted||6th Aug 2015|
|Updated||6th Aug 2015|
|r459||06 Aug 2015 23:10:21 UTC||Fix spell crashing (bug #356)|
character_cast_spell(void*) deletes the spell_event TimeEvent while the Timer system is executing it, leading to the TimeEvent being deleted twice.
Stack trace (r458):
- 6 0xb7396ea8 in operator delete(void*) () from /usr/lib/i386-linux-gnu/libstdc++.so.6
Removing the delete line from character_cast_spell should be a sufficient fix as it is not called from outside its timer event.
Please don't post unless you have something relevant to the bug to say.
Do not comment to say "thanks" or "fix this please".
Please log in to add comments. EOSERV Bug Tracker > Bug #356: TimeEvent double free when casting spells - server crash