delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/16/08:30:15

From: jtgalkowski AT alum DOT mit DOT edu
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Recently installed version of DJGPP's gcc hangs
Date: Wed, 16 Sep 1998 12:05:29 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 101
Message-ID: <6to9i8$of7$1@nnrp1.dejanews.com>
References: <6tm69l$aug$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: 128.253.114.234
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

It turns out that the error described below is an RMCB
page fault of the kind which has been discussed in this
group before, notably when handling interrupts.  There was
a contribution from Mr Church about how memory needs to be
locked because of the dynamic disposition of virtual memory
pages.

My problem is that this is occurring during compilation, that
is, in the gcc provided by DJGPP.  I have isolated it down
to the compilation of a particular source unit (which is
available to anyone interested), it is entirely reproduceable
on my box, and -- as I promised in my original post -- I did
a "go32-v2" before trying this.

The problem occurs when running pure DOS -- that is, at the
DOS command line.  Windows isn't loaded at all.  (The Windows
I'm using is 3.1, BTW, when I do use it on this box.)  Otherwise
it is in RMCB, and the particulars are below:

Page Fault cr2=10020b5c in RMCB at eip=10bc; flags=3002

eax=00000000 ebx=000010b6 ecx=00000019 edx=00000005
esi=000010b6 edi=00020b5c ebp=000623b8 esp=000020a4
cs=2b ds=3b fs=33 gs=bf _s=33 error=0006

(Sorry about the "_" in the above:  I figured afficianados
 would know what it is anyway, and I didn't jot it carefully.
 System was so hosed at the time that I couldn't even get
 PrtSc to work.)

I do a Norton each time this happens and there's no apparent
damage to either of my hard disks.

Next time I try this, I'll try to run gcc under gdb.  Open
to other suggestions.

TIA,

 -jt



***********************************************
In article <6tm69l$aug$1 AT nnrp1 DOT dejanews DOT com>,
  jtgalkowski AT alum DOT mit DOT edu wrote:
> I just installed a DJGPP using the automatic package selector on a
> 486 PS/1 with 8 MB RAM, running DOS 5.  Installation went well.
> go32-v2 gives 6 MB free for the first value.  (Sorry, forget exactly
> what they're called.  If you need that info, easy to get.)  I just
> started up a series of compilations to build a gcc-mediated
> application which is known to run and compile well.
>
> gcc is happy with about 5 of 27 of its pieces -- no error messages
> in any of them.  When it gets to the 6th, the compilation seems
> to take forever.  There is disk activity.  I issued the SIGINT
> using Ctrl-Break and the snapshot came back saying it was in a page
> fault.  The Error=6.  I'm not sure if that happened because of the
> Ctrl-Break going awry or it is the underlying problem.
>
> I will run this again tonight, letting it go longer.
>
> Any hints on what to collect from gcc's environment or running
> using gdb are welcome.
>
> Also, while I've run gcc and gdb and bash many times before, it
> was always on a Solaris or Ultra or Alpha.  Not quite sure what
> to expect in this DOS environment.  (Not my choice.)
>
> I don't understand the deal that go32-v2 interrogates.  Is that
> something which,
>
>  (1) Needs to be installed in something like an autoexec.bat or
>      the makefile.bat?
>
>  (2) Needs to be run once per session however?
>
>  (3) Just interrogates the status of something which gcc and the
>      other DJGPP tools set up for themselves?
>
>  (4) I so misunderstand that these questions are off the mark.
>
> Thought is I didn't do any go32-v2 this time around.  Could that
> be related?  Configuration hasn't changed in-between, however: Didn't
> tamper with config.sys or autoexec.bat.  I'll also try the variation
> of the compiles running go32-v2 first.
>
> TIA,

[snip]



--
 Jan Theodore Galkowski

   500-446-2770

   http://www.hotwired.com/members/profile/algebraist/

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

- Raw text -


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