www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/07/06/07:23:20

Message-Id: <199907061128.NAA05426@cerbere.u-strasbg.fr>
X-Sender: muller AT ics DOT u-strasbg DOT fr
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0.1
Date: Tue, 06 Jul 1999 13:22:41 +0200
To: djgpp-workers AT delorie DOT com
From: Pierre Muller <muller AT cerbere DOT u-strasbg DOT fr>
Subject: Re: Re: gcc-crash - and a possible solution
References: <MAPI DOT Id DOT 0016 DOT 00333138303633303030303930303057 AT MAPI DOT to DOT RFC822>
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

At 12:12 06/07/99 , you wrote:
>
>On Tue, 6 Jul 1999, Erik Berglund wrote:
>
>> Charles Sandmann wrote:
>> 
>> > I did lots of testing on Win 3.1 (not 3.11) but avoided multitasking
there
>> > since it crashed frequently.  Win 95 definitely shows the >2gb address 
>> > behavior if you multitask the right programs.
>> 
>> Then >2gb may happen on Win 95, for instance by using two DOS boxes
>> (as pointed out in your message of 24 Jun 1999).
>
>If you mean two DOS boxes with *any* DJGPP programs, not necessarily GCC, 
>then I always do that.  On my office machine, running Windows 95, there's 
>always one DOS box with Emacs, another with Info, and I use two other for 
>command-line tasks, including compiling programs.  I never had any 
>crashes in CC1 like what you see.

  I had this problem, but only if you use DJGPP program that you leave in
one box !
As Window95 uses the same linear space for all bos boxes,
if the program in the first boxes is started first,
then you start a second DJGPP program in the second box,
you will see that the linear base is higher, but
if you now close the first program and call malloc with a big value you
will get the linear space of the first program !! (thus a very high
addresses in 
selector space !)
(And probably not zeroed as the story about PROMPT=$P$G seems to show !)
This lead to crashes in the Free Pascal Compiler.
But the crashes here also might be due to signed comparison problems !

  Do to that I only used Unixy sbreak in the Free Pascal RTL startup code
(that is otherwise just an adaptation of  crt0.S)



Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller AT ics DOT u-strasbg DOT fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99

- Raw text -


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