Mail Archives: djgpp/2001/06/03/16:53:19
> From: "Henrik Bergvin" <lothorius AT hotbrev DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 3 Jun 2001 22:02:19 +0200
>
> I experience crashes when i try to use GCC 2953 under Windows 2000. Anyone
> got any idea on how i should solve this problem?
Yes: stop using W2K.
The problem is that NTVDM, the DOS emulator that is part of W2K has a
bug in it: when a nested DPMI program exits, NTVDM erroneously
releases the locked stack required to process hardware interrupts
which happen during the program's run. (It shouldn't release the
stack because the parent DPMI program is still running.) Thereafter,
any hardware interrupt -- the timer tick, a keyboard keyclick,
anything -- will crash the DOS box, because NTVDM is trying to use the
stack it just relased.
If you cannot switch to another version of Windows, I can send you an
experimental source-level patch for two library functions, which was
reported to work around this problem. But you will have to rebuild
GCC with the patched library, to make the problem go away.
- Raw text -