GLibC 2.41 & HLDS

Post Reply
GiGaBiTe
Site Admin
Posts: 65
Joined: Wed Jan 29, 2020 2:38 am

GLibC 2.41 & HLDS

Post by GiGaBiTe »

Upgrading one of my machines to Fedora 42 and encountered a critical bug running HLDS/ReHLDS and GoldSRC engine games in general, they don't run.

Apparently there is a bug in GLibC 2.41 that is causing 32 bit ELF libraries to crash with the error

Code: Select all

Cannot enable executable stack as shared object requires: Invalid Argument
This seems to be a problem across multiple Linux distributions, as I've seen reports of it happening on Arch and Debian.

Two solutions I've found:

1) Install execstack and run 'execstack -c library.so' on the offending library, replacing library.so with whatever library is being problematic, usually engine_*.so, with * being what architecture is running. i486, i686 or amd.

2) Export 'GLIBC_TUNABLES=glibc.rtld.execstack=2 %command%' If in the command line, export it normally, if in Steam, put it in the launch options.
Post Reply