Note that I spent a good 20 minutes with optimisations disabled trying to get a stack overflow out of this, and ultimately failed.
edit: note that with no optimizations on, the compiler won't do this, and you'll get a overflow crash.
really? what compiler are you using? i got it very quickly when i ran your commit. I think the current crash is related to the spawnTicks variable, and the tail recursion, trying to figure it out now.