delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/02/02:02:10

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10108020430.AA14531@clio.rice.edu>
Subject: Re: Make 3.791 on Windows 2000 test - sbrk/crt0 patch testing
To: acottrel AT ihug DOT com DOT au (Andrew Cottrell)
Date: Wed, 1 Aug 2001 23:30:18 -0500 (CDT)
Cc: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii), djgpp-workers AT delorie DOT com
In-Reply-To: <000901c11a76$14551d30$0a02a8c0@acceleron> from "Andrew Cottrell" at Aug 01, 2001 08:38:17 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I saw a quick hack (not exactly correct) which I could do to fix sbrk() for
the NT wrap problem.  I then tossed some seldom used code (lock all memory)
to make room for a binary patch.  I then patched all the executables on
my XP test box (sbrkpat *.exe).  All of the DJGPP crashes due to limit
wraps are gone.

So, if you want to quickly test on Windows 2000 without rebuilding 
everything (I know none of these images use lock all memory feature)
grab ftp://clio.rice.edu/djgpp/ntsbrkpat.zip
The included binary is TCC and doesn't glob input, but you can rebuild
with gcc if you want globbing.  This should allow anyone testing on
NT, Windows 2000 or XP to continue to find new issues instead of fighting
one already identified that I know how to fix.

After more tests on a modified crt0.S I'll submit the new version.

Note, this patch still uses the non-move sbrk() but just tosses memory
returned to us below our base address.

> I think you are correct in spotting Make does not crash with the Unixy sbrk
> flag set. Let me run a series of tests again with the following combination,
> this may take a few days:
> 1) Make & GCC - no Unixy SBRK, no malloc_debug
> 2) Make & GCC - no Unixy SBRK, malloc_debug set to 4 for both
> 3) Make & GCC - Unixy SBRK set, no malloc_debug
> 4) Make & GCC - Unixy SBRK set, malloc_debug set to 4 for make only
> 5) Make & GCC - Unixy SBRK set, malloc_debug set to 4 for both make and GCC
> Are there any other combinatios that would help give more info?

- Raw text -


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