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

[Synergy 24.11] Game/server crash during startup #199

Open
V1H4 opened this issue Nov 29, 2024 · 8 comments
Open

[Synergy 24.11] Game/server crash during startup #199

V1H4 opened this issue Nov 29, 2024 · 8 comments

Comments

@V1H4
Copy link

V1H4 commented Nov 29, 2024

This update caused a problem.
Any ideas?

explorer_cPDc2uOELs.mp4
@Cook4104
Copy link

Well this isn't the solution.
But there is a segmentation fault happening with latest version of Synergy and Metamod.
With the PDB here is what i found.
image
Using metamod compiled from the master branch

@IntriguingTiles
Copy link

This is caused by attempting to read any data that lies within the .voltbl section in Synergy's binaries. It looks like Windows blackholes sections that don't have any characteristics set.

@Cook4104
Copy link

Cook4104 commented Nov 30, 2024

I changed Metamod's source code to skip the backend checking but Sourcemod is the one that segfaults now.
It had to do something with reading the pointer to the loaded server.dll from Synergy

Edit:it could be what @IntriguingTiles is saying cause it segfaults when reading the server.dll from synergy's binaries

@IntriguingTiles
Copy link

As a workaround, you can replace lib.memorySize = opt->SizeOfImage; with lib.memorySize = opt->SizeOfCode + opt->SizeOfInitializedData + opt->SizeOfUninitializedData;, which will work with Synergy's binaries for both metamod and sourcemod. However, this relies on code and data being the first few sections in the binary, which isn't guaranteed.

@Cook4104
Copy link

Cook4104 commented Dec 1, 2024

image

I checked the sections with dumpbin well this is what i found

@Cook4104
Copy link

Cook4104 commented Dec 1, 2024

Putting @IntriguingTiles workaround on both metamod and sourcemod worked for Synergy i haven't tried it on other games

@IntriguingTiles
Copy link

Synergy's development beta branch now has characteristics set for the .voltbl section for engine.dll and server.dll, so this will no longer be an issue once the update is released to the public branch.

@Cook4104
Copy link

Cook4104 commented Dec 3, 2024

A good to know but the problem right now is outdated vtable offsets from Synergy which makes sourcemod plugins unable to load

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants