Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_fail_state in plugin_native cause Segmentation fault #1082

Open
lexzor opened this issue Jul 20, 2023 · 0 comments
Open

set_fail_state in plugin_native cause Segmentation fault #1082

lexzor opened this issue Jul 20, 2023 · 0 comments

Comments

@lexzor
Copy link

lexzor commented Jul 20, 2023

debug.log

----------------------------------------------
CRASH: Fri Jul 21 00:55:49 EEST 2023
Start Line: ./hlds_linux -console -game cstrike -port 27015 -sport 26900 +map de_dust2 +ip 188.212.101.238 -secure -debug +fps_max 0 +sys_ticrate 1200 +maxplayers 14 -heapsize 1048576 -num_edicts 2047 -condebug -master -pidfile hlds.19.pid
[New LWP 26]
[New LWP 33]
[New LWP 29]
[New LWP 27]
[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 -console -game cstrike -port 27015 -sport 26900 +map de_dust2 +ip'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xed1725cb in CPluginMngr::CPlugin::setStatus(int) () from /home/container/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
[Current thread is 1 (Thread 0xf7a09b80 (LWP 26))]
#0  0xed1725cb in CPluginMngr::CPlugin::setStatus(int) () from /home/container/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
#1  0xeceaa250 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
0xf7dc6610  0xf7f13376  Yes (*)     /lib/i386-linux-gnu/libc.so.6
0xf7da9ad0  0xf7daaaa4  Yes (*)     /lib/i386-linux-gnu/libdl.so.2
0xf7c111c0  0xf7d1c278  Yes (*)     ./libstdc++.so.6
0xf7b33e20  0xf7b87641  Yes (*)     ./libintlc.so.5
0xf7f9dab0  0xf7fb88bb  Yes (*)     /lib/ld-linux.so.2
0xf7a33590  0xf7af38f5  Yes (*)     /lib/i386-linux-gnu/libm.so.6
0xf7a0d310  0xf7a23325  Yes (*)     ./libgcc_s.so.1
0xf732b820  0xf741cfb0  Yes (*)     /home/container/engine_i486.so
0xf72ee910  0xf72f23a4  Yes (*)     /lib/i386-linux-gnu/librt.so.1
0xf72dc5c0  0xf72e6d74  Yes (*)     ./libsteam_api.so
0xf72be9d0  0xf72ce29f  Yes (*)     /lib/i386-linux-gnu/libpthread.so.0
0xf7294e00  0xf72b0838  Yes (*)     /home/container/filesystem_stdio.so
0xf5832700  0xf6b44884  Yes (*)     /home/container/.steam/sdk32/steamclient.so
0xed6df3a0  0xed722a90  Yes (*)     /home/container/./cstrike/addons/metamod/metamod_i386.so
0xed487ba0  0xed61fb00  Yes (*)     /home/container/cstrike/dlls/cs.so
0xed31d690  0xed332014  Yes (*)     /home/container/cstrike/addons/SafeNameAndChat/SafeNameAndChat.so
0xed148070  0xed1ac2e0  Yes (*)     /home/container/cstrike/addons/amxmodx/dlls/amxmodx_mm_i386.so
0xed0f8850  0xed11c550  Yes (*)     /home/container/cstrike/addons/reunion/reunion_mm_i386.so
0xed0d9200  0xed0ec120  Yes (*)     /home/container/cstrike/addons/rechecker/rechecker_mm_i386.so
0xed0c8b90  0xed0d22f0  Yes (*)     /home/container/cstrike/addons/resemiclip/resemiclip_mm_i386.so
0xed018340  0xed02b48e  Yes (*)     /home/container/cstrike/addons/whblocker/whblocker_mm_i386.so
0xebf22530  0xebf519b4  Yes (*)     /home/container/cstrike/addons/hitbox_fix/hitbox_fix_mm_i386.so
0xecfe7aa0  0xed00b2f2  Yes (*)     /home/container/cstrike/addons/printcenterfix/printcenterfix_mm_i386.so
0xecf4c830  0xecf93974  Yes (*)     cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xeceba120  0xecec0444  Yes (*)     cstrike/addons/amxmodx/modules/csx_amxx_i386.so
0xeacee300  0xeba01c44  Yes (*)     ./steamclient.so
0xecbd1670  0xecc47020  Yes (*)     ./crashhandler.so
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xff831f14:
 eip = 0xed1725cb in CPluginMngr::CPlugin::setStatus(int); saved eip = 0xeceaa250
 called by frame at 0x9568578
 Arglist at 0xff831f0c, args: 
 Locals at 0xff831f0c, Previous frame's sp is 0xff831f14
 Saved registers:
  eip at 0xff831f10
End of crash report
----------------------------------------------

plugin:

#include <amxmodx>

public plugin_natives()
{
    set_fail_state("seg fault :(")
}

linux, counter-strike 1.6, amxmodx 1.10.0 build 5467

honestly don't know if this has been encountered before, for me doesn't seems as a normal situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant