Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 21 Nov 2000 16:25:22 -0800 From: "Zack Weinberg" To: Kelley Cook Cc: "GCC-Bugs AT gcc DOT gnu DOT org" , "GCC-patches AT gcc DOT gnu DOT org" , Cygwin mailing list Subject: Re: Reason for cygwin GCC 2.97 non-bootstrap found Message-ID: <20001121162522.G17712@wolery.stanford.edu> References: <200011211839 DOT eALIdOd15553 AT ahmlir2 DOT mail DOT eds DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200011211839.eALIdOd15553@ahmlir2.mail.eds.com>; from Kelley.Cook@home.com on Tue, Nov 21, 2000 at 01:39:01PM -0500 On Tue, Nov 21, 2000 at 01:39:01PM -0500, Kelley Cook wrote: > > Thanks Zack for looking at this. > > Unfortunately, your new patch also fails, a least as applied to the > version I have at work. Hmmm. Either it isn't to do with freeing the middle out of a map region, or the patch was thoroughly broken instead of just broken for malloc users. Could you [since Kelley is out of town till Sunday, this "you" is anyone with a convenient cygwin installation] please compile and run the appended test program under cygwin? It should either exit successfully, or crash; I need to know which. > BTW, is there a direct way of applying a CVS -diff to files using > patch? I ended up breaking your patch into 11 different .diff files > and apply them each individually. For the patches I generate, "patch -p0 < xyz.diff" should work provided you're in the directory the patch was generated relative to. I try to make this the nearest common ancestor of all the files in the patch. zw #include #include #include #include #define PAGEPROT PROT_READ|PROT_WRITE #define MAPFLAGS MAP_PRIVATE|MAP_ANONYMOUS int main(void) { size_t pagesize = getpagesize(); char *base; base = mmap(0, 16*pagesize, PAGEPROT, MAPFLAGS, -1, 0); memset(base, 0xAB, 16*pagesize); munmap(base + 4*pagesize, pagesize); memset(base, 0xCD, 4*pagesize); memset(base + 5*pagesize, 0xCD, 10*pagesize); return 0; } -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com