delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/03/16:53:19

Date: Sun, 03 Jun 2001 23:49:57 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Henrik Bergvin" <lothorius AT hotbrev DOT com>
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: <AGwS6.9952$vR1.29645@nntpserver.swip.net>
(lothorius AT hotbrev DOT com)
Subject: Re: GCC and Windows 2000
References: <AGwS6.9952$vR1 DOT 29645 AT nntpserver DOT swip DOT net>
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

> 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 -


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