Divide by zero would be a domain error. A stack overflow seems to be just an overflow, a number too large. It happens sometimes on the AP chemistry exam, thats how I know at least. Try plugging 2^1000000 power on a calculator and you'll probably know what I mean.