Skip to content

Commit

Permalink
engine: platform: posix: don't forget to print backtrace to stderr too
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Feb 2, 2025
1 parent 22f8b6f commit f460aa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/platform/posix/crash_glibc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] );
}

Expand Down

0 comments on commit f460aa6

Please sign in to comment.