On it's own, with its little test case, it is running fine. It uses the mach_inject code by Jonathan 'Wolf' Rentzsch.
I wrote this actually to inject code into the Dock process. It didn't work out. You can try it yourself.
A prerequisite for running is to find out the pid of the Dock by running and setting the only argument of the tool. (As soon as the Dock crashes you have to do it again.)
echo "Dock's pid is "`ps -ax | egrep 'Dock.app/Contents/MacOS/Dock' | egrep -v 'egrep' | awk '{ print $1 }'`
then you go to the target directory and issue:
sudo DYLD_FALLBACK_LIBRARY_PATH=`pwd` ./mulle-inject-code 12345 # replace with actual pid
Often will fail with
mach_inject failing.. (ipc/send) invalid memory
this happens. I believe, on
err = vm_write( remoteTask, remoteCode, (pointer_t) image, imageSize );
If it works, the Dock will crash.