delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/13/08:36:27

Date: Mon, 13 Sep 1999 12:30:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Josh Reed <obitus AT uswest DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Program Crash
In-Reply-To: <37D880B5.592C92C1@uswest.net>
Message-ID: <Pine.SUN.3.91.990913123010.8713I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 9 Sep 1999, Josh Reed wrote:

> I am almost positive that I overrun the stack.  I looked
> in the faq and used stubedit to set my stack size to 4mb.

No, a small stack is almost certainly NOT your problem, so enlarging
it won't help.  In the case of stack overflow, both ESP and EBP would
be invalid.  But in your case, ESP is valid, while EBP is garbage.

This usually means that you are overruning some local array.

> I think it pukes on
> the really long pathnames (path is the variable that holds the current path.)

Examine carefully the declarations and the code that deal with char
arrays which hold path names.

- Raw text -


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