Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
PerkinWarwick
· 5y ago · 0 comments
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.
Comments
[–]
masklinn
5y ago
A 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).