Is there any way that we can show the user that a stack overflow has happened?
Just a SEGFAULT is quite difficult to debug.
Consider this simple program:
```
void endless()
{
endless();
}
void main()
{
endless();
}
```
All it will print is:
segmentation fault (core dumped) ./main
while it is quite easy to see what's going wrong here, in a more complex application it isn't. At least it took me a couple of hours to realize that my program doesn't do semi-random segfaults (given special input data), but deterministic stack overflows.
Even C++ throws a StackOverflow Error.
Comment #1 by robert.schadek — 2024-12-07T13:36:47Z