Raised This Month: $51 Target: $400
 12% 

Weird crash in newest amxx build


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 09-25-2014 , 12:37   Weird crash in newest amxx build
Reply With Quote #1

PHP Code:
----------------------------------------------
CRASHC  sep 25 19:23:55 EEST 2014
[New LWP 21835]
[New 
LWP 21838]
[New 
LWP 21841]
[New 
LWP 23712]
[New 
LWP 21982]
[New 
LWP 21979]
[New 
LWP 21980]
[
Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program terminated with signal SIGSEGVSegmentation fault.
#0  0xf328dbe8 in amxx_DynaCallback(int, tagAMX*, int*) () from /var/servers/new_fun/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#0  0xf328dbe8 in amxx_DynaCallback(int, tagAMX*, int*) () from /var/servers/new_fun/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#1  0xf35d0de4 in main_hook_function(class_ret_t, unsigned int, enum_api_t, unsigned int, void const*) () from /var/servers/new_fun/./cstrike/addons/metamod/dlls/metamod.so
#2  0xf2b3bd6b in Hook_Void_Void(Hook*, void*) () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
#3  0x016308a0 in ?? ()
#4  0x00000000 in ?? ()
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf76a4914  0xf76eac78  Yes         
./libstdc++.so.6
0xf7650ad0  0xf765196c  Yes 
(*)     /lib32/libdl.so.2
0xf7638840  0xf76451d7  Yes         
/lib32/libpthread.so.0
0xf749f420  0xf75ce48e  Yes 
(*)     /lib32/libc.so.6
0xf7446600  0xf747438b  Yes 
(*)     /lib32/libm.so.6
0xf7734860  0xf774c7ac  Yes 
(*)     /lib/ld-linux.so.2
0xf742de04  0xf743d490  Yes         
./libgcc_s.so.1
0xf6f12490  0xf6f9624c  Yes         
/var/servers/new_fun/engine_i486.so
0xf6eb85c0  0xf6ec2d74  Yes 
(*)     ./libsteam_api.so
0xf6eae9b0  0xf6eb1f5a  Yes 
(*)     /lib32/librt.so.1
0xf6e95a00  0xf6ea21b8  Yes         
/var/servers/new_fun/filesystem_stdio.so
0xf5f8ce80  0xf6a74040  Yes 
(*)     ./steamclient.so
0xf5e07670  0xf5e7d020  Yes 
(*)     ./crashhandler.so
0xf35cfb70  0xf35e5984  Yes         
/var/servers/new_fun/./cstrike/addons/metamod/dlls/metamod.so
0xf3392350  0xf34b6340  Yes         
/var/servers/new_fun/cstrike/dlls/cs.so
0xf3260310  0xf32a9388  Yes 
(*)     /var/servers/new_fun/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf3244d40  0xf32477d8  Yes 
(*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf3236e80  0xf323eec8  Yes 
(*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf31c2fe0  0xf31c8a44  Yes 
(*)     cstrike/addons/amxmodx/modules/csx_amxx_i386.so
0xf7659920  0xf765a378  Yes 
(*)     /var/servers/new_fun/cstrike/addons/bsploaderfixer/bsploaderfixer_i386.so
0xf2c4db40  0xf2cdbf30  Yes 
(*)     cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xf2bec670  0xf2bfcf24  Yes 
(*)     /usr/lib32/libz.so.1
0xf2bdd000  0xf2be66d8  Yes 
(*)     cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0xf2b99640  0xf2bc1380  Yes 
(*)     cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf2b39530  0xf2b71d60  Yes 
(*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf2a51620  0xf2ac9bd8  Yes 
(*)     cstrike/addons/amxmodx/modules/orpheu_amxx_i386.so
0xf2bccad0  0xf2bd353b  Yes 
(*)     /lib32/libnss_files.so.2
(*): Shared library is missing debugging information.
Stack level 0frame at 0xffbf84e0:
 
eip 0xf328dbe8 in amxx_DynaCallback(inttagAMX*, int*); saved eip 0xf35d0de4
 called by frame at 0xffbf8560
 Arglist at 0xffbf84d8
args
 
Locals at 0xffbf84d8Previous frame's sp is 0xffbf84e0
 Saved registers:
  ebx at 0xffbf84d4, ebp at 0xffbf84d8, esi at 0xffbf84cc, edi at 0xffbf84d0, eip at 0xffbf84dc
End of crash report
---------------------------------------------- 
Server is up-to-date, newest amxmodx, but sometimes it crashes. What are those methods name above? What calls them? I'm pretty sure it is one of my plugins, but determining what calls those methods could help me reduce possible plugin count.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-25-2014 , 15:46   Re: Weird crash in newest amxx build
Reply With Quote #2

Make sure first you use latest of everything.

Next, do you use a plugin with Ham and which some dynamic natives (custom API)? Probably a native called from Spawn or similar. But I'm not sure the cause of crash, and if random, going to be a pain. You must narrow down thing as much you can.
__________________
Arkshine is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 09-25-2014 , 16:25   Re: Weird crash in newest amxx build
Reply With Quote #3

Everything is uptodate(hehe)
Yea, a lot of hams and my api :/
Spawn or similar? By similar you mean any ham event?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-25-2014 , 18:19   Re: Weird crash in newest amxx build
Reply With Quote #4

I mean Ham forward with doens't have return and doesn't have argument (like Spawn). Anyway you should test more, disable as much as plugins you can, then maybe you will see you do some wrong thing with dynamic natives. Could be useful to recompile AMXX & modules in debug ; then we could get probably a better backtrace.
__________________
Arkshine is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 09-26-2014 , 03:13   Re: Weird crash in newest amxx build
Reply With Quote #5

Could you post also debug versions in amxmodx.org? Like another row in that table? Cause I don't know how to compile binaries :/
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 09-27-2014 , 18:02   Re: Weird crash in newest amxx build
Reply With Quote #6

Ok, I managed to get rid of that crash, but now I have this one:
PHP Code:
----------------------------------------------
CRASHSv sep 28 00:47:16 EEST 2014
[New LWP 10752]
[New 
LWP 10860]
[New 
LWP 10862]
[New 
LWP 10755]
[New 
LWP 10861]
[New 
LWP 10757]
[
Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program terminated with signal SIGABRTAborted.
#0  0xf77b2430 in __kernel_vsyscall ()
#0  0xf77b2430 in __kernel_vsyscall ()
#1  0xf7535337 in raise () from /lib32/libc.so.6
#2  0xf75386a3 in abort () from /lib32/libc.so.6
#3  0xf756fc23 in ?? () from /lib32/libc.so.6
#4  0xf757a04a in ?? () from /lib32/libc.so.6
#5  0xf757acad in ?? () from /lib32/libc.so.6
#6  0xf32e86f0 in unload_amxscript(tagAMX*, void**) () from /var/servers/new_fun/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#7  0xffd579d8 in ?? ()
Backtrace stoppedprevious frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf7723914  0xf7769c78  Yes         
./libstdc++.so.6
0xf76cfad0  0xf76d096c  Yes 
(*)     /lib32/libdl.so.2
0xf76b7840  0xf76c41d7  Yes         
/lib32/libpthread.so.0
0xf751e420  0xf764d48e  Yes 
(*)     /lib32/libc.so.6
0xf74c5600  0xf74f338b  Yes 
(*)     /lib32/libm.so.6
0xf77b3860  0xf77cb7ac  Yes 
(*)     /lib/ld-linux.so.2
0xf74ace04  0xf74bc490  Yes         
./libgcc_s.so.1
0xf6f91490  0xf701524c  Yes         
/var/servers/new_fun/engine_i486.so
0xf6f375c0  0xf6f41d74  Yes 
(*)     ./libsteam_api.so
0xf6f2d9b0  0xf6f30f5a  Yes 
(*)     /lib32/librt.so.1
0xf6f14a00  0xf6f211b8  Yes         
/var/servers/new_fun/filesystem_stdio.so
0xf600be80  0xf6af3040  Yes 
(*)     ./steamclient.so
0xf5e86670  0xf5efc020  Yes 
(*)     ./crashhandler.so
0xf364eb70  0xf3664984  Yes         
/var/servers/new_fun/./cstrike/addons/metamod/dlls/metamod.so
0xf3411350  0xf3535340  Yes         
/var/servers/new_fun/cstrike/dlls/cs.so
0xf32df310  0xf3328388  Yes 
(*)     /var/servers/new_fun/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xf32c3d40  0xf32c67d8  Yes 
(*)     cstrike/addons/amxmodx/modules/fun_amxx_i386.so
0xf32b5e80  0xf32bdec8  Yes 
(*)     cstrike/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf3241fe0  0xf3247a44  Yes 
(*)     cstrike/addons/amxmodx/modules/csx_amxx_i386.so
0xf76d8920  0xf76d9378  Yes 
(*)     /var/servers/new_fun/cstrike/addons/bsploaderfixer/bsploaderfixer_i386.so
0xf2cccb40  0xf2d5af30  Yes 
(*)     cstrike/addons/amxmodx/modules/mysql_amxx_i386.so
0xf2c6b670  0xf2c7bf24  Yes 
(*)     /usr/lib32/libz.so.1
0xf2c5c000  0xf2c656d8  Yes 
(*)     cstrike/addons/amxmodx/modules/engine_amxx_i386.so
0xf2c1b640  0xf2c43380  Yes 
(*)     cstrike/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf2b2f620  0xf2ba7bd8  Yes 
(*)     cstrike/addons/amxmodx/modules/orpheu_amxx_i386.so
0xf28c3530  0xf28fbd60  Yes 
(*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf2c4bad0  0xf2c5253b  Yes 
(*)     /lib32/libnss_files.so.2
(*): Shared library is missing debugging information.
Stack level 0frame at 0xffd57654:
 
eip 0xf77b2430 in __kernel_vsyscallsaved eip 0xf7535337
 called by frame at 0xffd57660
 Arglist at 0xffd5764c
args
 
Locals at 0xffd5764cPrevious frame's sp is 0xffd57654
 Saved registers:
  ebp at 0xffd57644, eip at 0xffd57650
End of crash report
---------------------------------------------- 
Can you translate it to me? When could that happen, what could raise that etc. For me it happened about the time when map should have changed.
Btw, I'm using polymorph, plugin for multiplemods, I don't know it that matters.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 09-27-2014 at 18:04.
GuskiS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-27-2014 , 18:17   Re: Weird crash in newest amxx build
Reply With Quote #7

What did you do to fix the crash? Was it some typo/error in your code?

About new crash no idea but nothing has changed around unload_amxscript() in 1.8.3.
__________________
Arkshine is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 09-28-2014 , 05:02   Re: Weird crash in newest amxx build
Reply With Quote #8

I had too many RegisterHam in plugin_init for my API (deploy + holster for every weapon). Set it to precache and it is working.

What that unload_amxscript does? When it is called?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
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:53.


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