Re: switch off crash report log?
Re: switch off crash report log?
- Subject: Re: switch off crash report log?
- From: IainS <email@hidden>
- Date: Thu, 4 Mar 2010 20:56:36 +0000
Hello Terry,
On 4 Mar 2010, at 20:25, Terry Lambert wrote:
On Mar 4, 2010, at 7:55 AM, IainS wrote:
Hello,
Is there any way to stop abort() from generating a crashlog? [leo
onwards]?
when hammering unit-testing code the system is being bogged down by
essentially useless crash reports.
in general - is there a way of stopping crashing code from
generating a disk file?
The abort() function sends the SIGABRT signal to the calling process.
The SIGABRT signal has the propert SA_CORE, meaning that it will
normally generate a core dump. So do SIGQUIT, SIGILL, SIGTRAP,
SIGEMT, SIGFPE, SIGBUS, SIGSEGV, and SIGSYS.
Any signal with the property SA_CORE AND which causes the process to
exit (by entering proc_prepare_exit()) will cause Crash Reporter to
report a crash.
thanks, that's very useful - to know the specific criteria.
So your options are, in preference order:
(1) Fix whatever underlying problem is resulting in abort() being
called.
well, in the case of this testsuite code, the abort() is an
intentional "output" - it signifies that a particular test/aspect has
failed.
(2) Don't call abort(); call _exit() instead
That might be worth investigating whether this can be done with some
#define jiggery-pokery to substitute _exit() for the OSX target ..
.. a non-zero exit code should do the trick equally well.
but.. that's a lot of changes to the testsuite .... so...
(5) Disable Crash Reporter entirely
... in this case, if it's possible to suspend crash reporter
(selectively) ... that would be the optimum. ...
for the record,
(a) how is this achieved? (I'd head for launchd plists .. but that
might not be the right place.. )
(b) is it possible to disable for one user ... or even for one process ?
thanks,
Iain
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden