Another thing that's software-related is if you've got a (rare) race condition. For example a data structure that gets corrupted if you have a particular series of nested interrupts.
Now, hopefully your system is set up such that race conditions cannot happen, but good luck with that.