On my "Arch Linux" machine I'm experiencing start up crash:
Core was generated by `/home/serfreeman1337/.local/share/Steam/steamapps/common/Half-Life/hl_linux -st'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0xd1927f6b in CEnginePatchesLinux::HookSvcHandlers (this=0xd1c6bec0 <s_EnginePatchesInstance>, array=0xd1c6b2c0 <s_SvcMessages>) at /tmp/bhl_build_1667961097/repo/src/game/client/engine_patches_linux.cpp:82
82 /tmp/bhl_build_1667961097/repo/src/game/client/engine_patches_linux.cpp: No such file or directory.
After bit of debuging I found that crash happens after restoring original mprotect flags, which traces further to LoadProtectFromProc.
On my "Arch Linux" machine I'm experiencing start up crash:
After bit of debuging I found that crash happens after restoring original mprotect flags, which traces further to LoadProtectFromProc.
Debug logs:
I was able to solve my issue by chaning this line: https://github.com/tmp64/BugfixedHL-Rebased/blob/4b11feda78272ca9ccc58d4bdc4201973d41b10d/src/game/client/engine_patches_linux.cpp#L309 to:
I think correct solution would be to find position of first space in line instead of hardcoding it.