Skip to content

print backtrace on crash? #49

@kevinushey

Description

@kevinushey

I put together a small experiment using gdb to print a backtrace when the process crashes. The core implementation lives here:

https://github.com/kevinushey/mortem/blob/main/src/mortem.c

I wonder if winch could consider doing something similar; that is, register some signal handlers for fatal / deadly signals, and then use winch / libbacktrace to print a stack trace when that crash occurs?

This could be especially useful in debugging CI crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions