Summary
Starting Doom Legacy with -dedicated and loading any map crashes with SIGSEGV in
R_Setup_SkyDraw. All textures (switches, SKY1, ...) are reported as missing just
before the crash. It happens with both doom2.wad and doom.wad. The same IWAD and
the same autoexec.cfg work fine with -server.
Versions tested (same result in both)
Platform
Steps to reproduce
Output (abridged, doom2.wad)
R_Init: Init DOOM refresh daemon - S_Init: Setting up sound.
ST_Init: Init status bar.
D_Startup_NetGame: Checking network game status.
Starting Server ...
Network port: 5029
Exec System autoexec
executing autoexec.cfg
Warping to map...
Setup Level
Warn: Switch 0 missing texture SW1BRCOM, using 1
... (same warning for all 40 switches)
Warn: R_TextureNumForName: SKY1 not found
Segmentation fault (core dumped)
Backtrace (gdb, doom2.wad)
Program received signal SIGSEGV, Segmentation fault.
#0 R_Setup_SkyDraw ()
#1 P_Setup_LevelSky ()
#2 P_SetupLevel ()
#3 G_DoLoadLevel ()
#4 Got_NetXCmd_Mapcmd ()
#5 ExtraDataTicker ()
#6 TryRunTics ()
#7 D_DoomLoop ()
#8 main ()
Additional observations
Expected behaviour
A dedicated server (no local player) should load the map and accept clients.
Workaround
Use -server (with xvfb-run on a headless host), which however adds an unwanted
local player to the game.