Raised This Month: $32 Target: $400
 8% 

CBasePlayer::AddPlayerItem crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 03-15-2015 , 19:10   CBasePlayer::AddPlayerItem crash
Reply With Quote #1

Once in a while my server is crashing

debug.log:
Code:
CRASH: Sun Mar 15 22:24:17 CET 2015
Start Line: ./hlds_linux -autorestart -game cstrike +maxplayers 32 +ip XXX +port XXX -pingboost 3 +sys_ticrate 800 +exec server.cfg +map jail_armageddon -dev -debug -condebug -pidfile /data/server_268882/logs/268882.cs.pid
[New LWP 11611]
[New LWP 11892]
[New LWP 11906]
[New LWP 26537]
[New LWP 18822]
[New LWP 30494]
[New LWP 30493]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -autorestart -game cstrike +maxplayers 32 +ip XXX +port'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000 in ?? ()
#0  0x00000000 in ?? ()
#1  0xf34ad0e0 in CBasePlayer::AddPlayerItem (this=0xefa4c118, pItem=0x9dddd08) at ../cstrike/dlls/player.cpp:7665
#2  0xf29d77d1 in Call_Int_Cbase(tagAMX*, int*) () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
#3  0x09452fda in ?? ()
#4  0xfff8096c in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf7705914  0xf774bc78  Yes         ./libstdc++.so.6
0xf76aca60  0xf76ad9a8  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libdl.so.2
0xf7696610  0xf76a2708  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
0xf7544c90  0xf765507c  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libc.so.6
0xf750b4b0  0xf7526188  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libm.so.6
0xf7795820  0xf77ac05f  Yes (*)     /lib/ld-linux.so.2
0xf74f4e04  0xf7504490  Yes         ./libgcc_s.so.1
0xf6fd8490  0xf705c24c  Yes         /home/data/server_268882/268882.cs16/engine_i486.so
0xf6f7e5c0  0xf6f88d74  Yes (*)     ./libsteam_api.so
0xf6f748c0  0xf6f78638  Yes (*)     /lib/i386-linux-gnu/i686/cmov/librt.so.1
0xf6f5ba00  0xf6f681b8  Yes         /home/data/server_268882/268882.cs16/filesystem_stdio.so
0xf6052e80  0xf6b3a040  Yes (*)     ./steamclient.so
0xf5ecd670  0xf5f43020  Yes (*)     ./crashhandler.so
0xf3695b70  0xf36ab984  Yes         /home/data/server_268882/268882.cs16/./cstrike/addons/metamod/dlls/metamod.so
0xf3458370  0xf357c3b0  Yes         /home/data/server_268882/268882.cs16/cstrike/dlls/cs.so
0xf331c330  0xf336d1c8  Yes (*)     /home/data/server_268882/268882.cs16/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf2b34c10  0xf2bc30e0  Yes (*)     cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xf2acebd0  0xf2ade15c  Yes (*)     /lib/i386-linux-gnu/libz.so.1
0xf2a9e710  0xf2ac64e0  Yes (*)     cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf2aeddf0  0xf2af0928  Yes (*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf2a159d0  0xf2a3e618  Yes (*)     cstrike/addons/amxmodx/modules/orpheu_amxx_i386.so
0xf29f4080  0xf29fc428  Yes (*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf29ad590  0xf29e5c70  Yes (*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf28d80c0  0xf28e17f8  Yes (*)     cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0xf2868580  0xf28b1798  Yes (*)     cstrike/addons/amxmodx/modules/regex_amxx_i386.so
0xf2859970  0xf285d588  Yes (*)     cstrike/addons/amxmodx/modules/nvault_amxx_i386.so
0xf17c6a50  0xf17cd908  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xfff80310:
 eip = 0x0; saved eip 0xf34ad0e0
 called by frame at 0xfff80350
 Arglist at 0xfff80308, args: 
 Locals at 0xfff80308, Previous frame's sp is 0xfff80310
 Saved registers:
  eip at 0xfff8030c
End of crash report
----------------------------------------------
Metalist:
Code:
[ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.3-d  ini   Start ANY  
          [ 2] MySQL            RUN   -    mysql_amxx_i386.  v1.8.3-d  pl1   ANY   ANY  
          [ 3] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.3-d  pl1   ANY   ANY  
          [ 4] Fun              RUN   -    fun_amxx_i386.so  v1.8.3-d  pl1   ANY   ANY  
          [ 5] Orpheu           RUN   -    orpheu_amxx_i386  v2.6.3    pl1   ANY   ANY  
          [ 6] CStrike          RUN   -    cstrike_amxx_i38  v1.8.3-d  pl1   ANY   ANY  
          [ 7] Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.3-d  pl1   ANY   ANY  
          [ 8] Engine           RUN   -    engine_amxx_i386  v1.8.3-d  pl1   ANY   ANY
Metamod v1.21p37
HLDS v6153
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-15-2015 , 21:29   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #2

[ 5] Orpheu RUN - orpheu_amxx_i386 v2.6.3 pl1 ANY ANY

Make sure that is not crashing server before post no?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 03-15-2015 , 22:21   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #3

I disable and check
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-16-2015 , 05:21   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #4

This sounds more a wrong usage of Ham_AddPlayerItem in a plugin.
__________________
Arkshine is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 03-16-2015 , 08:28   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #5

I don't use Ham_AddPlayerItem
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 03-16-2015 , 08:37   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #6

Last crash:
Code:
----------------------------------------------
CRASH: Mon Mar 16 13:12:10 CET 2015
Start Line: ./hlds_linux -autorestart -game cstrike +maxplayers 32 +ip XXX +port 27015 -pingboost 1 +sys_ticrate 300 +exec server.cfg +map jail_piu -dev -debug -condebug -pidfile /data/server_268882/logs/268882.cs.pid
[New LWP 12333]
[New LWP 13179]
[New LWP 13286]
[New LWP 12760]
[New LWP 24622]
[New LWP 24623]
[New LWP 2344]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -autorestart -game cstrike +maxplayers 32 +ip XXX +port'.
Program terminated with signal 11, Segmentation fault.
#0  CBasePlayer::TraceAttack (this=0xeb3f83b0, pevAttacker=0xf396c670, flDamage=0, vecDir=..., ptr=0xffb53db0, bitsDamageType=64) at ../cstrike/dlls/player.cpp:997
#0  CBasePlayer::TraceAttack (this=0xeb3f83b0, pevAttacker=0xf396c670, flDamage=0, vecDir=..., ptr=0xffb53db0, bitsDamageType=64) at ../cstrike/dlls/player.cpp:997
#1  0xf292184d in Hook_Void_Entvar_Float_Vector_Trace_Int(Hook*, void*, entvars_s*, float, Vector, TraceResult*, int) () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
#2  0xffb53db0 in ?? ()
#3  0xbee9340a in ?? ()
#4  0xbf5f1941 in ?? ()
#5  0xf3635078 in mm_RandomFloat(float, float) () from /home/data/server_268882/268882.cs16/./cstrike/addons/metamod/dlls/metamod.so
#6  0x00000040 in ?? ()
#7  0x00000000 in ?? ()
bShouldBleed = true
bShouldSpark = false
bHitShield = false
pAttacker = 0xedaf9e58
From        To          Syms Read   Shared Object Library
0xf769f914  0xf76e5c78  Yes         ./libstdc++.so.6
0xf7646a60  0xf76479a8  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libdl.so.2
0xf7630610  0xf763c708  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
0xf74dec90  0xf75ef07c  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libc.so.6
0xf74a54b0  0xf74c0188  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libm.so.6
0xf772f820  0xf774605f  Yes (*)     /lib/ld-linux.so.2
0xf748ee04  0xf749e490  Yes         ./libgcc_s.so.1
0xf6f72490  0xf6ff624c  Yes         /home/data/server_268882/268882.cs16/engine_i486.so
0xf6f185c0  0xf6f22d74  Yes (*)     ./libsteam_api.so
0xf6f0e8c0  0xf6f12638  Yes (*)     /lib/i386-linux-gnu/i686/cmov/librt.so.1
0xf6ef5a00  0xf6f021b8  Yes         /home/data/server_268882/268882.cs16/filesystem_stdio.so
0xf5fece80  0xf6ad4040  Yes (*)     ./steamclient.so
0xf5e67670  0xf5edd020  Yes (*)     ./crashhandler.so
0xf362fb70  0xf3645984  Yes         /home/data/server_268882/268882.cs16/./cstrike/addons/metamod/dlls/metamod.so
0xf33f2370  0xf35163b0  Yes         /home/data/server_268882/268882.cs16/cstrike/dlls/cs.so
0xf32b4e90  0xf3307048  Yes (*)     /home/data/server_268882/268882.cs16/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf2a09c00  0xf2a980d0  Yes (*)     cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xf299a710  0xf29c24e0  Yes (*)     cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf297bdf0  0xf297e928  Yes (*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf295d080  0xf2965428  Yes (*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf2916590  0xf294ec70  Yes (*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf28410c0  0xf284a7f8  Yes (*)     cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0xf27c2970  0xf27c6588  Yes (*)     cstrike/addons/amxmodx/modules/nvault_amxx_i386.so
0xf2859a50  0xf2860908  Yes (*)     /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
0xf2cdf580  0xf2d28798  Yes (*)     cstrike/addons/amxmodx/modules/regex_amxx_i386.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xffb53c80:
 eip = 0xf3446572 in CBasePlayer::TraceAttack (../cstrike/dlls/player.cpp:997); saved eip 0xf292184d
 called by frame at 0xffb53c94
 source language c++.
 Arglist at 0xffb53bfc, args: this=0xeb3f83b0, pevAttacker=0xf396c670, flDamage=0, vecDir=..., ptr=0xffb53db0, bitsDamageType=64
 Locals at 0xffb53bfc, Previous frame's sp is 0xffb53c80
 Saved registers:
  ebx at 0xffb53c6c, ebp at 0xffb53c78, esi at 0xffb53c70, edi at 0xffb53c74, eip at 0xffb53c7c
End of crash report
----------------------------------------------
Anyone know what could be the reason?
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-16-2015 , 09:43   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #7

What I mean is, you have some code which does some retards things, and when you call some Ham_ functions, it fucks up code in game.

That you're saying you don't use AddPlayerItem is likely wrong.

In first crash, you see a call from Ham. Call_Int_Cbase, then right away CBasePlayer::AddPlayerItem.
This can be only that a plugin has made a call using Ham_AddPlayerItem.
And from this call, it fucks up inside the game function CBasePlayer::AddPlayerItem, maybe another function or something.
But to get a crash using Ham, it's likely plugin does some weird things.

The second crash, a plugins hooks Ham_TraceAttack and it crashes in the game function.

I don't know why, and I don't know enough asm to understand the registers.
It's unlikely it would be Ham's fault, since code is straight but if it happens only sometimes this can means only you have plugins which fuck up things.
__________________

Last edited by Arkshine; 03-16-2015 at 09:50.
Arkshine is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-16-2015 , 09:44   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #8

Quote:
Originally Posted by OnePL View Post
I don't use Ham_AddPlayerItem
Sure? CBasePlayer::AddPlayerItem crash
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 03-16-2015 , 09:46   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #9

Quote:
Originally Posted by ^SmileY View Post
what's that quote even suppose to mean? If it's to contradict what Arkshine says, then look at this:
Quote:
Originally Posted by First crash log
#1 0xf34ad0e0 in CBasePlayer::AddPlayerItem (this=0xefa4c118, pItem=0x9dddd0 at ../cstrike/dlls/player.cpp:7665
#2 0xf29d77d1 in Call_Int_Cbase(tagAMX*, int*) () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
Quote:
Originally Posted by Second crash log
#0 CBasePlayer::TraceAttack (this=0xeb3f83b0, pevAttacker=0xf396c670, flDamage=0, vecDir=..., ptr=0xffb53db0, bitsDamageType=64) at ../cstrike/dlls/player.cpp:997
#0 CBasePlayer::TraceAttack (this=0xeb3f83b0, pevAttacker=0xf396c670, flDamage=0, vecDir=..., ptr=0xffb53db0, bitsDamageType=64) at ../cstrike/dlls/player.cpp:997
#1 0xf292184d in Hook_Void_Entvar_Float_Vector_Trace_Int(Hook* , void*, entvars_s*, float, Vector, TraceResult*, int) () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
__________________

Last edited by WildCard65; 03-16-2015 at 09:46.
WildCard65 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 03-16-2015 , 10:02   Re: CBasePlayer::AddPlayerItem crash
Reply With Quote #10

Quote:
Originally Posted by WildCard65 View Post
what's that quote even suppose to mean? If it's to contradict what Arkshine says, then look at this:
Not, is not contradict:

'That you're saying you don't use AddPlayerItem is likely wrong.'

He is using AddPlayerItem, he is posted at topic title not?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 03-16-2015 at 10:03.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode