Re: Why is this happening(stack overflow,exiting without an explan=ation
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Mar 22, 2004
- 371 views
On Mon, 22 Mar 2004 02:34:30 +0000, CoJaBo <cojabo at suscom.net> wrote: >I see, but I am still wondering why I got 2 differant results. You need at the very least 4 bytes of stack space to call anything (for the return address), on top of that space for any parameters and local variables. Imagine the error message you see requires 24 bytes of stack space to be displayed. If you got your stack error when requesting <=24 bytes on the stack, then the message cannot be displayed. However if you got a stack error when asking for >24 bytes then there may be enough on the stack for the message. >From what I've been reading in the past few weeks, it seems that properly handling stack overflows would be pretty difficult. Of course trace(3) is the thing to do when you get stuck. Regards, Pete