delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/23/10:42:03

Date: Sun, 23 Jun 1996 17:35:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: norup AT obs DOT aau DOT dk
Cc: djgpp AT delorie DOT com
Subject: Re: djgpp crashes when compiling this
In-Reply-To: <4qh7ia$qca@gjallar.daimi.aau.dk>
Message-Id: <Pine.SUN.3.91.960623172622.1782A-100000@is>
Mime-Version: 1.0

On 22 Jun 1996, Anton Norup Soerensen wrote:

> I am having trouble compiling a piece of source code using djgpp 2.0,
> as it results in a "general protection fault".
> 
> The code is rather simple: Room for an array of a structure is allocated,
> and values are assigned to the array. 
> 
> The smallest version of the code that crashes is about 32kb, so I have not
> posted it here. To take a look at it, use anonymous ftp to
> "aauobs.obs.aau.dk" cd to "/pub/norup/djgpp" and get "crash.zip"

Sorry, but I cannot reproduce your problem.  I got your `crash.zip', but 
on my system it compiles without any problems.  I tried with and without 
-O, with and without -O2, with and without -m486, under QDPMI and 
CWSDPMI--nothing seems to crash the compiler.  On my system, cc1.exe is 
stubedited to 512KB stack, but I stubedited it back to the default 
256KB--still no dice.

So please provide more information (as this might be a problem that only 
raises its ugly head under certain circumstances):

	1) Add "-v -Q" to the compilation command line and post 
everything that gets printed (you might consider using `redir' to 
redirect that output to a file).

	2) Run go32-v2 without arguments and post everything it prints.

	3) What DPMI server do you use?  Can you try running under an 
alternative server and see if the problem persists?

	4) Did you try stubediting cc1.exe to 512KB stack as Charles 
Sandmann advised, and if so, did it help?

- Raw text -


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