Closed bottiger1 closed 1 year ago
Nice IP
net_chan_limit_msec is 0 by default, did you change it?
@Deathreus :)
yes I changed it
Sourcepawn isn't multithreaded. Maybe that curl extension called into the vm from another thread? Got a link to the extension? Do you have an accelerator link?
The crash dump saying it is "Thread 1" means it is running on the main thread, not that there are multiple sourcemod threads running.
The extension I wrote only executes callback functions in OnGameFrame. It has never caused any issues like this in the past 9 years it has been used on our servers.
https://github.com/bottiger1/sourcemod-async/blob/8e4742f8067e01ee42f1284569dc6631f9fcef37/context.cpp#L52 https://github.com/bottiger1/sourcemod-async/blob/8e4742f8067e01ee42f1284569dc6631f9fcef37/extension.cpp#L54 https://github.com/bottiger1/sourcemod-async/blob/8e4742f8067e01ee42f1284569dc6631f9fcef37/extension.cpp#L317
I don't use accelerator since this is basically the same thing without needing to upload sensitive data to a 3rd party server.
It's hard to debug using only a stack trace though. Do you have a coredump handy to aid find the cause?
Never mind that was probably a corrupted stack trace. Just got another one of these crashes in a different place.
Msg from :27005: net_SetConVar after processing time exceeded (19 bytes), aborting connection after 7179362 usec tick
I'm guessing the only way it could work is by doing unsafe thread interrupts, there's just no way to safely use net_chan_limit_msec.
Just found this logged crash dated 5 days old. It seems like this sourcemod function segfaulted when a player was kicked for exceeding processing time set by net_chan_limit_msec.
It appears to have been caused by the LogError function in this sourcemod plugin
SourceMod Version Information: SourceMod Version: 1.11.0.6922 SourcePawn Engine: 1.11.0.6922, jit-x86 (build 1.11.0.6922) SourcePawn API: v1 = 5, v2 = 16 Compiled on: Dec 1 2022 21:09:07 Built from: https://github.com/alliedmodders/sourcemod/commit/f9765981 Build ID: 6922:f9765981 http://www.sourcemod.net/