[gs-devel] Crash reporting links
Ralph Giles
ralph.giles at artifex.com
Mon Aug 27 12:50:37 PDT 2007
At the staff meeting last week, we briefly discussed crash report
generation. The basic idea was to print a C stack trace on crash
to make it easier to fill out meaningful bug reports and save us
an analysis step.
I looked at how the GNOME project's bug-buddy works. Basically, a
signal handler in one of the platform libraries runs gdb on the
application to generate a backtrace.
Because signal handling is platform specific, I think the way to
implement this is just to hook in some code from the respective
gp_init() calls, rather than try to write a gp_print_backtrace().
Another interesting projet is google breakpad, which attempts to
do stack trace generation on Windows, MacOS and linux without
recourse to a coincidentally-installed debugger.
http://code.google.com/p/google-breakpad/
FWIW,
-r
More information about the gs-devel
mailing list