From f460aa63b00bbc9654cb87537e4a71a1da942e03 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 2 Feb 2025 19:20:54 +0300 Subject: [PATCH] engine: platform: posix: don't forget to print backtrace to stderr too --- engine/platform/posix/crash_glibc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/platform/posix/crash_glibc.c b/engine/platform/posix/crash_glibc.c index 671c0c70..24a29490 100644 --- a/engine/platform/posix/crash_glibc.c +++ b/engine/platform/posix/crash_glibc.c @@ -60,6 +60,9 @@ void Sys_Crash( int signal, siginfo_t *si, void *context ) write( logfd, syms[i], symlen ); write( logfd, &ch, 1 ); + write( STDERR_FILENO, syms[i], symlen ); + write( STDERR_FILENO, &ch, 1 ); + len += Q_snprintf( message + len, sizeof( message ) - len, "%2d: %s\n", i, syms[i] ); }