You can make almost any process crash by sending it a "segmentation violation" signal.
Example: find the process identifier "opendirectoryd":
$ ps -ef | grep opendirectoryd
0 15 1 0 9:14 am ?? 0: 01.11 / usr / libexec / opendirectoryd
^ - process id
Send a signal to the process:
$ sudo kill -SEGV 15
This completes the process and creates a diagnostic report, as it can be checked in "system.log":
Oct 31 09:17:17 hostname com.apple.launchd [1] (com.apple.opendirectoryd [15]): Job appears to have crashed: Segmentation fault: 11
Oct 31 09:17:20 hostname ReportCrash [420]: Saved crash report for opendirectoryd [15] version ??? (???) to /Library/Logs/DiagnosticReports/opendirectoryd_2013-10-31-091720_localhost.crash
But note that deliberately failing system services can cause serious problems (system instability, data loss, ...), so you must know exactly what you are doing.
source share