sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

Extensions including anything with utlsymbol.h become un-unloadable and sourcemod will still try to load them

Open bottiger1 opened this issue 2 years ago • 0 comments

On Linux, no idea if this happens on windows, if you have an extension that includes anything with utlsymbol.h (utldict.h utlstringmap.h) it will include the symbol _ZN10CUtlSymbol25s_bAllowStaticSymbolTableE and mark the extension as RTLD_NODELETE.

This means the extension can't be reloaded and stays in memory even if you do sm exts unload.

Sourcemod will happily load the extension again if you do sm exts load, which usually causes crashes later.

I have tried commenting out s_bAllowStaticSymbolTable in the hl2sdk, but it seems to magically pull the symbol from the .a file still.

bottiger1 avatar Jun 04 '23 01:06 bottiger1