]> git.xonotic.org Git - xonotic/darkplaces.git/commit
sys: improve error and crash handling
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 21 Jan 2024 21:52:26 +0000 (07:52 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 28 Jan 2024 03:24:47 +0000 (13:24 +1000)
commit591877ee0c64958303dcbb4f2af3d343a420cf6a
treead8010aac1fc963f812a9049c60bfa13e5ae7cd5
parentb8664b6856e2aecb83c08717ffbc7ae20dde9630
sys: improve error and crash handling

Renames Sys_Error to Sys_Abort (now using the Engine Abort message) for
clarity (as distinct from the non-fatal Host_Error).

Includes the engine version in the Crash and Abort SDL dialogs.

Linux: includes the glibc backtrace in the Engine Crash SDL dialog.
Fixes CTRL+C not working while the SDL dialog is open.

Fixes a double Sys_Error/Sys_Abort when memory corruption was detected.

Windows: omits colours when printing a Crash to stderr (not supported).

Makes signal handling (mostly) POSIX async-signal-safe.

Fixes a slight bug in PRVM_ShortStackTrace().

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
28 files changed:
cap_avi.c
cap_ogg.c
cl_demo.c
cl_main.c
cl_particles.c
common.h
gl_backend.c
gl_rmain.c
gl_textures.c
host.c
host.h
menu.c
model_shared.c
phys.c
prvm_cmds.c
prvm_exec.c
r_modules.c
snd_oss.c
snd_sdl.c
sv_send.c
sys.h
sys_null.c
sys_sdl.c
sys_shared.c
vid_sdl.c
vid_shared.c
world.c
zone.c