Hi Stefan!
Actually, lots of program need to handle stack overflow. For example i'm writing interpreter for a programming language. And of course, a user can write a program in this language that will cause infinite number of function calls, which leads to stack overflow.
Hm, I'm sure Java virtual machine, for instance, handle this problem correctly on any platform, including Linux.
Best regards,
Foma
Main Topics
Browse All Topics





by: stefan73Posted on 2004-10-15 at 04:49:00ID: 12318014
Hi Foma,
I'm not aware of any tools which prevent stack overflows. You can set the stack limit with "limit" or "ulimit", but you cannot really detect them as such.
What are you putting on the stack which causes an overflow? Normally it's better to revise the initial design than to chase after error symptoms later.
Cheers!
Stefan