Skip to content
Snippets Groups Projects

Print a backtrace when SRB2 crashes in a Unix-like environment.

Merged Golden requested to merge Golden/SRB2:print-backtrace into next
All threads resolved!
  • Appends to srb2home/crash-log.txt.
  • Prints a stack trace into the console.
  • Creates a signal handler on the child process created by I_Fork() so it can print the backtrace when it crashes.
Edited by Golden

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • James R. resolved all discussions

    resolved all discussions

  • Golden resolved all discussions

    resolved all discussions

  • Golden added 12 commits

    added 12 commits

    • 279a381f...0df5d8ff - 8 commits from branch STJr:next
    • 05bf7b5e - Crash backtrace logging for NEWSIGNALHANDLER.
    • 77817782 - Use file descriptors and ditch file streams, for now.
    • 70c08d00 - Print the backtrace before showing the signal handler popup.
    • f7b8ab32 - Make it more async-signal-safe

    Compare with previous version

  • Golden added 130 commits

    added 130 commits

    • f7b8ab32...760e083c - 126 commits from branch STJr:next
    • 792b44a8 - Crash backtrace logging for NEWSIGNALHANDLER.
    • 746f6367 - Use file descriptors and ditch file streams, for now.
    • 0726bade - Print the backtrace before showing the signal handler popup.
    • a4d6302e - Make it more async-signal-safe

    Compare with previous version

  • Author Contributor

    can we have a consensus on this please
    i'm getting kinda sick of being forced to link with libSegFault

  • Golden added 148 commits

    added 148 commits

    • a4d6302e...be496e1b - 144 commits from branch STJr:next
    • 4016a2e0 - Crash backtrace logging for NEWSIGNALHANDLER.
    • 5108f1f5 - Use file descriptors and ditch file streams, for now.
    • bdb28a06 - Print the backtrace before showing the signal handler popup.
    • a0396d5e - Make it more async-signal-safe

    Compare with previous version

  • merged

  • LJ Sonic mentioned in commit 07650041

    mentioned in commit 07650041

  • Maybe it's late to mention this, but the Makefile should be made to add -rdynamic to LDFLAGS when compiling for UNIXCOMMON platforms (where this backtrace printer would be used). Otherwise the backtrace doesn't have function names aside from main and external library functions, which makes it nearly useless.

  • Please register or sign in to reply
    Loading