4 ms·
It seems to me that in the case of the x86, the virtual memory system could detect overrunning the end of the stack and announce it to you. The meta-problem is
by PerkinWarwick 5y ago
It seems to me that in the case of the x86, the virtual memory system could detect overrunning the end of the stack and announce it to you.
The meta-problem is what to do with the information.
- masklinn 5y agoA clean / clear error would already be better than just segfaulting with no indication (that's why e.g. Ruby or Python have explicit stack depth check and will raise an exception hopefully before they run out of C stack).