From: "Charles Sandmann" Newsgroups: comp.os.msdos.djgpp Subject: Re: Gcc crashes Date: Thu, 2 Aug 2001 0:03:16 Organization: Aspen Technology, Inc. Lines: 26 Message-ID: <3b6898c4.sandmann@clio.rice.edu> References: NNTP-Posting-Host: dcloan.hou.aspentech.com X-Trace: selma.aspentech.com 996728805 27810 10.32.115.107 (2 Aug 2001 05:06:45 GMT) X-Complaints-To: postmaster AT aspentech DOT com NNTP-Posting-Date: 2 Aug 2001 05:06:45 GMT X-NewsEditor: ED-1.5.8 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > I have just re-installed my djgpp gcc and now I'm not capable of compiling > anything, even a simple program who prints "Hello". I have already read the > FAQs but I haven't solved the problem yet. > > The operating system I use is Windows 2000 professional and I have already > had the gcc installed but now it doesn't work. If NTVDM is crashing, the easiest thing to do is to patch NTVDM.EXE if you are allowed to fix the box. My Win2000 box is pretty stable with the patch below. The NTVDM for Windows 2000 has a bug (as does XP RC1) which aborts when you nest DPMI images. make/gcc/cc1 is a perfect example of nesting. Included below are binary diffs to NTVDM.EXE to work around the bug in Windows 2000. Eventually I'll provide an executable to do it. You must either disable file protection or also patch the ones in dllcache. Comparing files ntvdm.sp2_pat and NTVDM.SP2 0004C89F: 58 AC 0004C8A0: 5E E6 C:\WINNT\system32>fc /b ntvdm.exe *.exo Comparing files ntvdm.EXE and ntvdm.EXO 0004C864: 58 AC 0004C865: 5E E6