Here is a simple test function
test[n_] :=
Module[{i = 0}, Total[Nest[{++i, #}&, {0}, n], -1]]
On my system V9.0.1 running OS X 10.6.8 and with a clean kernel, the following works
Timing[test[26198]]
{0.106564, 343180701}
but then immediately evaluating
Timing[test[26199]]
fails. I get a beep and Help > Why the Beep?... shows

Can anybody verify this on another system different from mine? Can you cast any light on why it happens? I will submit a bug report to WRI if this is not just peculiar to my system.
Timing[test[261990]]crashes the kernel. – Alexey Popkov Nov 16 '13 at 05:05Timingtoo, but the number at which it crashes varies a bit.test[21820]crashes sometimes, but if it doesn't crash on first-run it can be evaluated seemingly endless amount of times without crashing. – ssch Nov 16 '13 at 12:41test[n_] := Module[{i = 0}, Total[y = Nest[{++i, #} &, {0}, n], -1]];test[174657];yand it results in "$RecursionLimit::reclim". – Hector Nov 16 '13 at 14:58Nest, I do not know. – Daniel Lichtblau Nov 16 '13 at 23:27Timingat all, so you might want to change that in your question and title... – Albert Retey Nov 17 '13 at 13:32Timingwe have rhyming. – Daniel Lichtblau Nov 20 '13 at 17:46Totalis implemented by recursion. This could be done differently (many things could be done differently...) and I imagine a suggestion will be, or has been, filed to this effect. Not sure if/when it might be acted upon. I'd suggest usingFlattenfirst since that one is not done by recursion (not since version 3.0, at any rate). – Daniel Lichtblau Nov 20 '13 at 17:48