Re: switch off crash report log?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello Terry, On 4 Mar 2010, at 20:25, Terry Lambert wrote: Hello, The abort() function sends the SIGABRT signal to the calling process. thanks, that's very useful - to know the specific criteria. So your options are, in preference order: but.. that's a lot of changes to the testsuite .... so... thanks, Iain _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Mar 4, 2010, at 7:55 AM, IainS wrote: 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 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. (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. (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 ? This email sent to site_archiver@lists.apple.com
participants (1)
-
IainS