Page 1 of 1
World Crash - GetSpellEffect()
Posted: Fri Jul 11, 2014 7:24 pm
by John Adams
Code: Select all
19:22:55 D Command : Player 'Albinosaurus' (6700), Command: gsay
19:22:56 D Command : Player 'Zcoretri' (126), Command: disable_quest_exp
19:22:56 D Player : Flag: 6
19:22:56 D Player : Flags before: 301465664, Flags2: 40
19:22:56 D Player : Flags after: 301465600, Flags2: 40
19:23:08 D Player : Zcoretri left grid 4294967295 and entered grid 3646759888
19:23:13 D Command : Player 'Albinosaurus' (6700), Command: gsay
19:23:26 D Command : Player 'Jabantiz' (5982), Command: useability
19:23:26 D LUA : Found LUA Spell Script: 'Spells/Fighter/Crusader/Paladin/KnightsStance.lua'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xa05feb70 (LWP 3814)]
0xb7c6cf2d in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
(gdb) bt
#0 0xb7c6cf2d in pthread_mutex_lock () from /lib/tls/i686/cmov/libpthread.so.0
#1 0x080ec56f in CriticalSection::lock (this=0x1ec0) at ../common/Mutex.cpp:339
#2 0x080ece09 in Mutex::readlock (this=0x1ec0, function=0x83a7244 "GetSpellEffect", line=683) at ../common/Mutex.cpp:84
#3 0x081b0b1d in Entity::GetSpellEffect (this=0x0, id=100057, caster=0x0) at Entity.cpp:683
#4 0x082cd40b in SpellProcess::CastProcessedSpell (this=0xb216cf50, spell=0xa3a6b0b0, passive=false) at SpellProcess.cpp:1287
#5 0x082d2809 in SpellProcess::Process (this=0xb216cf50) at SpellProcess.cpp:178
#6 0x0837225f in ZoneServer::Process (this=0xb216b2b0) at zoneserver.cpp:1207
#7 0x08372777 in ZoneLoop (tmp=0xb216b2b0) at zoneserver.cpp:5586
#8 0xb7c6a96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#9 0xb7bd998e in clone () from /lib/tls/i686/cmov/libc.so.6
Re: World Crash - GetSpellEffect()
Posted: Fri Jul 11, 2014 7:43 pm
by thefoof
John Adams wrote:#3 0x081b0b1d in Entity::GetSpellEffect (this=0x0, id=100057, caster=0x0) at Entity.cpp:683
#4 0x082cd40b in SpellProcess::CastProcessedSpell (this=0xb216cf50, spell=0xa3a6b0b0, passive=false) at SpellProcess.cpp:1287[/code]
So entity and caster were null there basically, a simple check should fix the crash. Someone will have to look at the code to see why it would ever be null though.
EDIT: Nvm..."this" was null, I read the params wrong lol. So it was a threading issue
Re: World Crash - GetSpellEffect()
Posted: Fri Jul 11, 2014 8:50 pm
by John Adams
Another crash while I was out. This one ended in the no memory issue.
Code: Select all
19:58:09 I Zone : Removing connection for client 'Bigtuffguy'.
19:58:09 D Player : Toggling Character OFFLINE!
19:58:09 D Client : SendLoginInfo to new client...
19:58:09 D World : Increment Server_Accepted_Connection + 1
19:58:09 D Client : Populate Skill Map...
19:58:09 D Client : Toggle Character Online...
19:58:09 D Player : Toggling Character ONLINE!
19:58:09 D Client : Loading Character Skills for player 'Bigtuffguy'...
19:58:09 D World : Loading Titles for player 'Bigtuffguy'...
19:58:09 D World : Loading Languages for player 'Bigtuffguy'...
19:58:09 D Client : No character languages loaded!
19:58:09 D Spells : Loading Character Spells for player Bigtuffguy...
19:58:09 D Recipes : Loading Character Recipe Books for player 'Bigtuffguy' ...
19:58:09 D Client : No character recipe books found!
19:58:09 D Packet : Sending Login Accepted packet (LS_LoginResponse, 58482)
19:58:09 D World : Send MOTD...
19:58:09 D Packet : Sending Character Macro packet (WS_MacroInit, 58482)
19:58:09 D World : Sending FriendList...
19:58:09 D Player : Loading Player Factions...
19:58:09 D Player : Loading Character Quests...
19:58:09 D LUA : Quest: Frigid Fishing, function: Reload
19:58:16 D World : Timeout up!, state=
19:58:20 E Mutex : The mutex called from (null) at line 0 timed out waiting on another writelock!
19:58:20 E Mutex : The following functions had locks:
19:58:20 D LUA : Done!
19:58:20 D Player : Loading Player Mail...
19:58:20 D Client : Send Quest Journal...
19:58:20 D Client : Loading Faction Updates...
19:58:20 D Client : Send Command List...
19:58:20 D Client : Send Language Updates...
19:58:20 D Player : Getting current language for player 'Bigtuffguy'...
19:58:20 D Client : SendFriendList
19:58:20 D Client : SendIgnoreList
*** glibc detected *** /home/eq2dev/bin/world/current_world: malloc(): smallbin double linked list corrupted: 0x0f18e718 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b161)[0xb7b77161]
/lib/tls/i686/cmov/libc.so.6(+0x6e2e0)[0xb7b7a2e0]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x5c)[0xb7b7bb6c]
/usr/lib/libstdc++.so.6(_Znwj+0x27)[0xb7fa3c07]
/usr/lib/libstdc++.so.6(_Znaj+0x1d)[0xb7fa3d3d]
/home/eq2dev/bin/world/current_world(_ZN12PacketStruct3addEP10DataStruct+0x214)[0x80f4dc6]
/home/eq2dev/bin/world/current_world(_ZN12PacketStructC1EPS_t+0x179)[0x80f6217]
/home/eq2dev/bin/world/current_world(_ZN12ConfigReader9getStructEPKct+0x1f8)[0x80e0af6]
/home/eq2dev/bin/world/current_world(_ZN10PlayerInfo9serializeEt+0x56)[0x826ee5e]
/home/eq2dev/bin/world/current_world(_ZN21ClientPacketFunctions18SendCharacterSheetEP6Client+0x2c)[0x816cbb4]
/home/eq2dev/bin/world/current_world(_ZN10ZoneServer20SendCharSheetChangesEP6Client+0x47)[0x83492ad]
/home/eq2dev/bin/world/current_world(_ZN10ZoneServer20SendCharSheetChangesEv+0x37)[0x8354f91]
/home/eq2dev/bin/world/current_world(_ZN10ZoneServer7ProcessEv+0x265)[0x8372245]
/home/eq2dev/bin/world/current_world(_Z8ZoneLoopPv+0x120)[0x8372777]
/lib/tls/i686/cmov/libpthread.so.0(+0x596e)[0xb7c6a96e]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7bd998e]
======= Memory map: ========
08048000-08426000 r-xp 00000000 fb:00 1182436 /home/eq2dev/src/EQ2/source/WorldServer/current_world
08426000-08427000 r--p 003dd000 fb:00 1182436 /home/eq2dev/src/EQ2/source/WorldServer/current_world
08427000-0842a000 rw-p 003de000 fb:00 1182436 /home/eq2dev/src/EQ2/source/WorldServer/current_world
0842a000-0f972000 rw-p 00000000 00:00 0 [heap]
99ff4000-99ff5000 ---p 00000000 00:00 0
99ff5000-9a7f5000 rw-p 00000000 00:00 0
9a7f5000-9a7f6000 ---p 00000000 00:00 0
9a7f6000-9aff6000 rw-p 00000000 00:00 0
9aff6000-9aff7000 ---p 00000000 00:00 0
9aff7000-9b7f7000 rw-p 00000000 00:00 0
9b7f7000-9b7f8000 ---p 00000000 00:00 0
9b7f8000-9bff8000 rw-p 00000000 00:00 0
9bff8000-9bff9000 ---p 00000000 00:00 0
9bff9000-9c7f9000 rw-p 00000000 00:00 0
9c7f9000-9c7fa000 ---p 00000000 00:00 0
9c7fa000-9cffa000 rw-p 00000000 00:00 0
9cffa000-9cffb000 ---p 00000000 00:00 0
9cffb000-9d7fb000 rw-p 00000000 00:00 0
9d7fb000-9d7fc000 ---p 00000000 00:00 0
9d7fc000-9dffc000 rw-p 00000000 00:00 0
9dffc000-9dffd000 ---p 00000000 00:00 0
9dffd000-9e7fd000 rw-p 00000000 00:00 0
9e7fd000-9e7fe000 ---p 00000000 00:00 0
9e7fe000-9effe000 rw-p 00000000 00:00 0
9effe000-9efff000 ---p 00000000 00:00 0
9efff000-9f7ff000 rw-p 00000000 00:00 0
9f7ff000-9f800000 ---p 00000000 00:00 0
9f800000-a0000000 rw-p 00000000 00:00 0
a0000000-a0100000 rw-p 00000000 00:00 0
a0100000-a01b8000 rw-p 00000000 00:00 0
a01b8000-a0200000 ---p 00000000 00:00 0
a0200000-a0400000 rw-p 00000000 00:00 0
a0400000-a0600000 rw-p 00000000 00:00 0
a0600000-a0700000 rw-p 00000000 00:00 0
a0700000-a0800000 rw-p 00000000 00:00 0
a0800000-a0a00000 rw-p 00000000 00:00 0
a0a00000-a0c00000 rw-p 00000000 00:00 0
a0c00000-a0d00000 rw-p 00000000 00:00 0
a0d00000-a0e00000 rw-p 00000000 00:00 0
a0e00000-a1000000 rw-p 00000000 00:00 0
a1000000-a1100000 rw-p 00000000 00:00 0
a1100000-a1200000 rw-p 00000000 00:00 0
a1200000-a12fc000 rw-p 00000000 00:00 0
a12fc000-a1300000 ---p 00000000 00:00 0
a1300000-a1400000 rw-p 00000000 00:00 0
a1400000-a1500000 rw-p 00000000 00:00 0
a1500000-a15f4000 rw-p 00000000 00:00 0
a15f4000-a1600000 ---p 00000000 00:00 0
a1600000-a1800000 rw-p 00000000 00:00 0
a1800000-a1a00000 rw-p 00000000 00:00 0
a1a00000-a1b00000 rw-p 00000000 00:00 0
a1b00000-a1bef000 rw-p 00000000 00:00 0
a1bef000-a1c00000 ---p 00000000 00:00 0
a1c00000-a1d00000 rw-p 00000000 00:00 0
a1d00000-a1e00000 rw-p 00000000 00:00 0
a1e00000-a2000000 rw-p 00000000 00:00 0
a2000000-a2100000 rw-p 00000000 00:00 0
a2100000-a2200000 rw-p 00000000 00:00 0
a2200000-a2300000 rw-p 00000000 00:00 0
a2300000-a2400000 rw-p 00000000 00:00 0
a2400000-a2500000 rw-p 00000000 00:00 0
a2500000-a2600000 rw-p 00000000 00:00 0
a2600000-a2700000 rw-p 00000000 00:00 0
a2700000-a2800000 rw-p 00000000 00:00 0
a2800000-a2900000 rw-p 00000000 00:00 0
a2900000-a2a00000 rw-p 00000000 00:00 0
a2a00000-a2b00000 rw-p 00000000 00:00 0
a2b00000-a2c00000 rw-p 00000000 00:00 0
a2c00000-a2e00000 rw-p 00000000 00:00 0
a2e00000-a2f00000 rw-p 00000000 00:00 0
a2f00000-a3000000 rw-p 00000000 00:00 0
a3000000-a3100000 rw-p 00000000 00:00 0
a3100000-a3200000 rw-p 00000000 00:00 0
a3200000-a3300000 rw-p 00000000 00:00 0
a3300000-a3400000 rw-p 00000000 00:00 0
a3400000-a3700000 rw-p 00000000 00:00 0
a3700000-a3800000 rw-p 00000000 00:00 0
a3900000-a3a00000 rw-p 00000000 00:00 0
a3a00000-a3b00000 rw-p 00000000 00:00 0
a3b00000-a3be0000 rw-p 00000000 00:00 0
a3be0000-a3c00000 ---p 00000000 00:00 0
a3c00000-a3ce8000 rw-p 00000000 00:00 0
a3ce8000-a3d00000 ---p 00000000 00:00 0
a3d00000-a3e00000 rw-p 00000000 00:00 0
a3e00000-a3ed8000 rw-p 00000000 00:00 0
a3ed8000-a3f00000 ---p 00000000 00:00 0
a3f00000-a3ff8000 rw-p 00000000 00:00 0
a3ff8000-a4000000 ---p 00000000 00:00 0
a4000000-a40d0000 rw-p 00000000 00:00 0
a40d0000-a4100000 ---p 00000000 00:00 0
a4100000-a41e0000 rw-p 00000000 00:00 0
a41e0000-a4200000 ---p 00000000 00:00 0
a4200000-a42ec000 rw-p 00000000 00:00 0
a42ec000-a4300000 ---p 00000000 00:00 0
a4300000-a43fc000 rw-p 00000000 00:00 0
a43fc000-a4400000 ---p 00000000 00:00 0
a4400000-a4500000 rw-p 00000000 00:00 0
a4500000-a45fa000 rw-p 00000000 00:00 0
a45fa000-a4600000 ---p 00000000 00:00 0
a4600000-a46ea000 rw-p 00000000 00:00 0
a46ea000-a4700000 ---p 00000000 00:00 0
a4700000-a47e4000 rw-p 00000000 00:00 0
a47e4000-a4800000 ---p 00000000 00:00 0
a4800000-a48e2000 rw-p 00000000 00:00 0
a48e2000-a4900000 ---p 00000000 00:00 0
a4900000-a49f0000 rw-p 00000000 00:00 0
a49f0000-a4a00000 ---p 00000000 00:00 0
a4a00000-a4b00000 rw-p 00000000 00:00 0
a4b00000-a4d00000 rw-p 00000000 00:00 0
a4d00000-a4f00000 rw-p 00000000 00:00 0
a4f00000-a5100000 rw-p 00000000 00:00 0
a5100000-a5300000 rw-p 00000000 00:00 0
a5300000-a5500000 rw-p 00000000 00:00 0
a5500000-a5700000 rw-p 00000000 00:00 0
a5800000-a5b00000 rw-p 00000000 00:00 0
a5b00000-a5c00000 rw-p 00000000 00:00 0
a5d00000-a5e00000 rw-p 00000000 00:00 0
a5f00000-a6100000 rw-p 00000000 00:00 0
a6100000-a6200000 rw-p 00000000 00:00 0
a6200000-a62f3000 rw-p 00000000 00:00 0
a62f3000-a6300000 ---p 00000000 00:00 0
a6300000-a6400000 rw-p 00000000 00:00 0
a6400000-a6500000 rw-p 00000000 00:00 0
a6500000-a6600000 rw-p 00000000 00:00 0
a6600000-a66f0000 rw-p 00000000 00:00 0
a66f0000-a6700000 ---p 00000000 00:00 0
a6700000-a67f0000 rw-p 00000000 00:00 0
a67f0000-a6800000 ---p 00000000 00:00 0
a6800000-a6900000 rw-p 00000000 00:00 0
a6900000-a69f9000 rw-p 00000000 00:00 0
a69f9000-a6a00000 ---p 00000000 00:00 0
a6a00000-a6b00000 rw-p 00000000 00:00 0
a6b00000-a6d00000 rw-p 00000000 00:00 0
a6d00000-a6e00000 rw-p 00000000 00:00 0
a6e00000-a6f00000 rw-p 00000000 00:00 0
a6f00000-a7000000 rw-p 00000000 00:00 0
a7000000-a7100000 rw-p 00000000 00:00 0
a7100000-a7200000 rw-p 00000000 00:00 0
a7200000-a7300000 rw-p 00000000 00:00 0
a7300000-a7400000 rw-p 00000000 00:00 0
a7400000-a7500000 rw-p 00000000 00:00 0
a7500000-a7600000 rw-p 00000000 00:00 0
a7600000-a7700000 rw-p 00000000 00:00 0
a7700000-a7800000 rw-p 00000000 00:00 0
a7800000-a7900000 rw-p 00000000 00:00 0
a7900000-a7a00000 rw-p 00000000 00:00 0
a7a00000-a7b00000 rw-p 00000000 00:00 0
a7b00000-a7d00000 rw-p 00000000 00:00 0
a7d00000-a7f00000 rw-p 00000000 00:00 0
a7f00000-a8000000 rw-p 00000000 00:00 0
a8000000-a8100000 rw-p 00000000 00:00 0
a8100000-a8200000 rw-p 00000000 00:00 0
a8200000-a8300000 rw-p 00000000 00:00 0
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xae1feb70 (LWP 3987)]
0xb7fe2430 in __kernel_vsyscall ()
(gdb)