Date: Sun, 03 Jun 2001 23:49:57 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Henrik Bergvin" Message-Id: <2110-Sun03Jun2001234954+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (lothorius AT hotbrev DOT com) Subject: Re: GCC and Windows 2000 References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Henrik Bergvin" > 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.