SRB2 errors out if try to join a server on a system without any IPv6 interfaces
from https://github.com/NixOS/nixpkgs/pull/378330#issuecomment-2629504672 donovanglover commented Jan 31, 2025, 1:14 PM EST
FWIW I was able to narrow down the issue. You can reproduce by disabling IPv6 (e.g. networking.enableIPv6 = false; on NixOS).
Joining an IPv6 server with it enabled also crashes the game for me (I can ping the same address just fine).
Backtrace
./bin/lsdl2srb2() [0x445307]
./bin/lsdl2srb2() [0x4454d8]
/nix/store/h7zcxabfxa7v5xdna45y2hplj31ncf8a-glibc-2.40-36/lib/libc.so.6(+0x40a70) [0x7fb9e1640a70]
./bin/lsdl2srb2(HSendPacket+0xb4) [0x69a434]
./bin/lsdl2srb2(CL_ConnectToServer+0x10c2) [0x694a02]
./bin/lsdl2srb2(COM_BufExecute+0xd1) [0x4bf821]
./bin/lsdl2srb2(TryRunTics+0x3e) [0x691ade]
./bin/lsdl2srb2(D_SRB2Loop+0x1a4) [0x47da14]
./bin/lsdl2srb2(main+0x82) [0x444b82]
/nix/store/h7zcxabfxa7v5xdna45y2hplj31ncf8a-glibc-2.40-36/lib/libc.so.6(+0x2a1fc) [0x7fb9e162a1fc]
/nix/store/h7zcxabfxa7v5xdna45y2hplj31ncf8a-glibc-2.40-36/lib/libc.so.6(__libc_start_main+0x89) [0x7fb9e162a2b9]
./bin/lsdl2srb2(_start+0x25) [0x444da5]
Process killed by signal: SIGSEGV (core dumped)
Shutdown tty console
donovanglover commented Feb 2, 2025, 1:59 PM EST
Workaround is to use -noipv6 which fixes the issue. If there are no objections 2.2.15 can be merged now and 2.2.16 later.