My server sometimes crashes with this trace stack when a plugins sends a SQL query to DB:
0 linux-gate.so + 0x430
1 linux-gate.so + 0x400
2 dbi.mysql.ext.so + 0x246d6
mysql_real_connect ->
my_connect
3 dbi.mysql.ext.so + 0x24e1c
mysql_reconnect
4 dbi.mysql.ext.so + 0x250e0
cli_advanced_command
5 dbi.mysql.ext.so + 0x1f6eb
mysql_send_query
6 dbi.mysql.ext.so + 0x1f720
mysql_real_query
7 dbi.mysql.ext.so + 0x2281e
mysql_set_character_set "SET NAMES utf8mb4"
8 dbi.mysql.ext.so + 0x1e416
MyDatabase__SetCharacterSet
9 sourcemod.logic.so + 0x53303
10 0xe675b77d
11 0xe679fd8c
12 0xe66fd5d8
13 0xebbb306f
14 sourcepawn.jit.x86.so + 0x7e44
sp::Environment::Invoke
15 sourcepawn.jit.x86.so + 0xdda8
sp::PluginContext::Invoke
16 sourcepawn.jit.x86.so + 0x11203
sp::ScriptedInvoker::Invoke materialadmin.smx::OnClientAuthorized
17 sourcepawn.jit.x86.so + 0x10f4d
sp::ScriptedInvoker::Execute
18 sourcemod.logic.so + 0x56edb
19 sourcemod.2.csgo.so + 0x7c490
20 sourcemod.2.csgo.so + 0x656ca
21 sourcemod.2.csgo.so + 0x81ebc
22 sourcemod.2.csgo.so + 0x6b1ed
23 sourcemod.2.csgo.so + 0x6ad13
Is there a way to prevent this crash. The query looks simple and doesn't seem to have any mistakes? Full tracestack is in the attachment.
SourceMod Version: 1.10.0.6497
SourcePawn Engine: 1.10.0.6497, jit-x86 (build 1.10.0.6497)
SourcePawn API: v1 = 5, v2 = 12
Compiled on: Sep 24 2020 19:39:13
Built from:
https://github.com/alliedmodders/sou...commit/39c2dc6
Build ID: 6497:39c2dc6
Metamod:Source version 1.10.7-dev
Built from:
https://github.com/alliedmodders/met...commit/6c8495f
Build ID: 971:6c8495f
Loaded As: Valve Server Plugin
Compiled on: Sep 2 2019
Plugin interface version: 15:14
SourceHook version: 5:5
Also I have a *.dmp file related to this crash. I can share it if it's needed.