Date: Sun, 9 Nov 1997 18:15:29 +0200 (IST) From: Eli Zaretskii To: Roman Suzi cc: djgpp AT delorie DOT com Subject: Re: General Protection Fault interception vs. Checking stack In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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).