delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/09/11:16:51

Date: Sun, 9 Nov 1997 18:15:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Roman Suzi <nuser AT rsuzi DOT pgu DOT karelia DOT ru>
cc: djgpp AT delorie DOT com
Subject: Re: General Protection Fault interception vs. Checking stack
In-Reply-To: <AB5t5Pqyu6@rsuzi.pgu.karelia.ru>
Message-ID: <Pine.SUN.3.91.971109181201.12421A-100000@is>
MIME-Version: 1.0

On Sat, 8 Nov 1997, Roman Suzi wrote:

> In reply to 1000000 for ii, the
> program gives:
> 
> "General Protection Fault at eip=e51e; flags=3046"
> and hangs.  (It cant even output dump properly!)
> 
> Sometimes it gives one more string of the dump:
> "eax=  ......."
> 
> Sometimes it stops IN THE PROCESS of screen scrolling!!!
> (partially duplicated last line says about it.
> It is as if someone presses 'Pause' in the middle of
> text output.)
> 
> -- very strange, indeed!

It is possible that you overrun the stack so deeply (1MB vs 256KB) that 
your stack begins to overwrite the data and code of the rest of the 
program.  Such extreme cases are hardly interesting, I think.  If you 
know your program needs that much stack, you can always define an 
appropriate value for `_stklen'.  The interesting cases are those where 
the stack is overrun by relatively small number of bytes (say, up to 
100K).

- Raw text -


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