[Qt-interest] [OT] RE: Catching terminal exceptions
Info
info at misafe.com
Tue Nov 17 21:21:19 CET 2009
Hi Oliver,
That was very useful, thanks. I've got everything working great in
Windows, it catches all exceptions and generates crash dump
information to aid in postmortem debugging. I've also managed to get
the signal handling working in OSX and it hits my handler whenever a
signal is fired. Do you know any ways to produce a memory dump in OSX
or at least a stack trace (I'm supporting 10.4 so I can't use backtrace
(), backtrace_symbols() etc.
Thanks
PS - I realise this is a little off-topic but I can't find any
information elsewhere and a point in the right direction would be very
useful!
On 16 Nov 2009, at 08:04, qt-interest-request at trolltech.com wrote:
> Date: Mon, 16 Nov 2009 07:38:43 +0100
> From: <Oliver.Knoll at comit.ch>
> Subject: [Qt-interest] [OT] RE: Catching terminal exceptions
> To: <qt-interest at trolltech.com>
> Message-ID:
> <C10F29AB06447B4881FC0DE1E302E2F2044F12137F at sg000036.corproot.net>
> Content-Type: text/plain; charset="us-ascii"
>
> Info wrote on Sunday, November 15, 2009 8:35 PM:
>
>> I'm trying to implement a global exception handler to allow me to
>> generate a crash report ...
>
> This is somewhat off-topic, but to my knowledge you want to catch
> *signals*, and not (only) exceptions. Signals are raised when you
> access invalid memory, dereference null-pointers, divide by 0 (on
> some architectures/compiler flags this raises a signal, as well as
> other floating point conditions) etc., so you want to install a
> signal handler:
>
> http://www.gnu.org/s/libc/manual/html_node/Signal-Handling.html
>
> Especially these would be of interest:
>
> http://www.gnu.org/s/libc/manual/html_node/Program-Error-Signals.html#Program-Error-Signals
>
> Refer e.g. to the implementation off http://www.codeproject.com/KB/debug/XCrashReportPt4.aspx
> (Win32)
>
>
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091117/63f23595/attachment.html
More information about the Qt-interest-old
mailing list