-
Notifications
You must be signed in to change notification settings - Fork 37
TF2 Linux crash after sdk update #413
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
Comments
You shouldn't change the order of the includes. This is likely causing the undefined symbol. The segfaults are caused by the new vtable of some of the SDK classes. Unfortunately, I'm currently not at home, so I can't trigger a new build. But I will travel back today, so you can expect a new build tomorrow. |
Just apply #411 and recompile and you will be good to go. |
From a clean copy of the repo with #411, I get this error when I run
which I attributed to the Thanks for the quick response, I really appreciate it. |
This might be caused by the GCC version. Every version behaves slightly differently. We use an older server with an older GCC version 4.8 oder 5.x to make sure older servers don't have any problems with the GLIBC requirements. |
why put all includes after the |
Fixing Undefined Behavior has to be done this way. CookStar@635341c However, that is not the only problem with the new g++ version, SP does not work even with this fix. |
Have you tried including #411 with that edit ? |
It's not just TF2, it doesn't work in any game. I also think that we should be able to compile "Source.Python" with the new g++/MSVC, but we have to start by identifying the cause. |
You will likely always face issues no matter what unless you recompile all dependencies (especially the SDKs themselves). |
SourceMod seems to compile with the newer version of g++ (currently clang), so why do you think you need to recompile the SDK? |
I vaguely remember various demangling issues for everything that is statically linked. |
The new release is out and seems to work fine on my end. @waldotf Could you please verify? |
Seems to be working fine for me. Closing. |
After the 9/16 update (https://github.com/alliedmodders/hl2sdk/commits/tf2), some SP functions segfault (notably, anything which sets entity keyvals).
Additionally, some engine functions have been added/removed, as in (#411).
Side note, I and others tried to build with these changes, but the Linux build scripts did not behave well. After a few modifications to get around those issues (https://github.com/JoinedSenses/Source.Python/tree/update_tf2_sdk_2), still ran into issues loading the plugin e.g.
Both server and build on Debian 9.
Guidance with build and/or updated/patched binaries would be very helpful.
The text was updated successfully, but these errors were encountered: