Mail Archives: djgpp/1997/11/09/11:16:51
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 -