www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/28/04:26:57

Date: Wed, 28 Feb 1996 17:11:10 -0800 (GMT)
From: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
To: j DOT aldrich6 AT genie DOT com
cc: djgpp AT delorie DOT com
Subject: Re: GDB discovers another one!
In-Reply-To: <199602280721.AA076212087@relay1.geis.com>
Message-ID: <Pine.SOL.3.91.960228170854.9118B-100000@gollum>
MIME-Version: 1.0

On Wed, 28 Feb 1996 j DOT aldrich6 AT genie DOT com wrote:

> Reply to message 9341724    from J DOT ALDRICH6 AT GE on 02/27/96  9:52PM
> 
[snip]
> not overflowing my buffer variables, it was overflowing my stack.  It
> seems that in allocating the stack space necessary to store the local
> variables in my function, the stack grew so large that it actually overwrote
> segments of static storage!

This evil stack overflow thing has happened a lot of times, it seems. I 
didn't get stack overflow errors either when my program crashed... seems 
like a "feature" which cropped up along with DJGPP V2 -- the standard 
stack (256K) is too small.

An easier (ugly) way to fix your problem would have been to STUBEDIT the 
resulting EXE you got and increase the stack size to something nice (4 
Meg works well for me, thank you).

Regards,

                                             ------------------------
                                              Orlando A. Andico
                                              oandico AT eee DOT upd DOT edu DOT ph
                                             ------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019