Problems with SDL Doom/SDL Quake and Fullscreen mode


I downloaded and compiled your SDL Quake 1.0.9 port. It compiled correctly, but
when I ran it I get this:
PackFile: ./id1/pak0.pak : sound/ambience/swamp2.wav
PackFile: ./id1/pak0.pak : sound/ambience/swamp1.wav
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

If I use a -nosound option, it still Seg Faults. No core is dumped.

Running sdlquake in gdb gives the following information about the crash.
(gdb) file bin/sdlquake
Reading symbols from bin/sdlquake…done.
(gdb) run
Starting program: /home/kcd/local/games/quake/bin/sdlquake
Added packfile ./id1/pak0.pak (339 files)
Added packfile ./id1/pak1.pak (85 files)
PackFile: ./id1/pak1.pak : gfx/pop.lmp
Playing registered version.
PackFile: ./id1/pak0.pak : gfx.wad
Console initialized.
UDP Initialized
Exe: 23:10:03 Feb 19 2000
8.0 megabyte heap
PackFile: ./id1/pak0.pak : gfx/palette.lmp
PackFile: ./id1/pak0.pak : gfx/colormap.lmp
600k surface cache
writable code 80a07c8-80a0c48

Sound Initialization
writable code 80a0e90-80a13b6
writable code 809ec9b-809ef83
PackFile: ./id1/pak0.pak : gfx/conback.lmp

Program received signal ?, Unknown signal.
0x400d49c9 in __sigsuspend (set=0xbffff7a8)
at …/sysdeps/unix/sysv/linux/sigsuspend.c:48
48 …/sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
(gdb) next
warning: Signal ? does not exist on this system.

If i run it with -nosound through gdb, I get:

Program received signal SIGSEGV, Segmentation fault.
0x809fdef in BoxOnPlaneSide ()
(gdb) next
Single stepping until exit from function BoxOnPlaneSide,
which has no line number information.
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Program exited with code 0365.

Finally, using -fullscreen option corrupts the display and causes the monitor
to report “No Input”, the keyboard freezes forcing me to reboot.

Secondly, your SDL Doom port works, except in fullscreen mode when it acts like
sdl quake forcing a reboot. The only information from gdb is the same
sigsuspend.c error, I reported above.

Also, Any other SDL Game (Specifcally descent 1 and descent 2) when I run them
in fullscreen mode and they crash for whatever reason, my X screen resolution
is not set back to its normal resolution. Is there anyway to fix that problem
without having to restart X?

I am using SDL 1.0.4, glibc 2.1.2, kernel 2.2.14. All the test programs that
came with SDL compiled and ran correctly. Also your sdl port of lxdoom works
fine in fullscreen mode, if that helps.