mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-02 09:01:13 +00:00

It is not in fact a fix for #12640, only an improvement to our build script, wrapping our calls to GIMP executables and outputting a backtrace on a crash. This way, when people report issues during one of the relevant calls, we may be able to diagnose. It won't be useful for other types of failures (when the process doesn't crash, but e.g. the script is wrong or other non-fatal bugs in GIMP).
8 lines
277 B
Python
8 lines
277 B
Python
def my_signal_handler (event):
|
|
if (isinstance(event, gdb.SignalEvent)):
|
|
gdb.write("Eeeeeeeeeeeek: in-build GIMP crashed!\n")
|
|
gdb.execute('info threads')
|
|
gdb.execute("thread apply all backtrace full")
|
|
|
|
gdb.events.stop.connect(my_signal_handler)
|
|
gdb.execute("run")
|