rpm-software-management / rpm

The RPM package manager
http://rpm.org
Other
497 stars 359 forks source link

RFE: teach rpm to supply a backtrace when exiting abnormally #493

Closed n3npq closed 6 years ago

n3npq commented 6 years ago

Glibc provides a routine to unwind the stack (including symbols when available iirc). This RFE is a suggestion to display the stack when exiting abnormally on certain signals.

RPM -- and an rpmdb in particular -- is expected to Just Work in spite of

In many cases, an rpmdb can become "corrupted" and rpm becomes unusable, increasing the difficulty of using standard tools like gdb or strace to diagnose a problem. One way to avoid some of those difficulties would be to have rpm provide a stack backtrace when exiting abnormally (whatever that might mean, but I envision tying the backtrace to certain signal handlers)

ignatenkobrain commented 6 years ago

If you have patch - please submit PR.