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

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

Open
bottiger1 opened this issue Jun 4, 2023 · 0 comments

Comments

@bottiger1
Copy link
Contributor

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.

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