22 Jun
2004
22 Jun
'04
2:08 p.m.
Whilst pondering the debugging situation with our development builds, I was wondering if we can provide backtrace information in our builds in case of abnormal termination. Sk1p on IRC/Jabber pointed this out to me in the GLibC docs:
http://www.gnu.org/software/libc/manual/html_node/Backtraces.html#Backtraces
...it even has a code example.
I noticed that MinGW does support signals to some extent, so I removed the '#ifndef WIN32' switch from that part of inkscape.cpp. Likely inkscape_segv_handler() is now enabled on Win32.
Maybe we could add a backtrace to inkscape_segv_handler(), with a note asking the gentle user to send this to us? Maybe save it to a file?
Just an idea.
Bob