Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <200005112134.QAA20487@hp2.xraylith.wisc.edu>
To: DJ Delorie <dj@delorie.com>, tprince@computer.org,
        cygwin@sourceware.cygnus.com
Subject: Re: GCC snapshots and mmap problem [Re: GDB hangs on Win2K] 
In-reply-to: Your message of "Thu, 11 May 2000 12:20:11 CDT."
             <200005111720.MAA19448@hp2.xraylith.wisc.edu> 
Date: Thu, 11 May 2000 16:34:51 -0500
From: Mumit Khan <khan@NanoTech.Wisc.EDU>

Mumit Khan <khan@nanotech.wisc.EDU> writes:
> DJ Delorie <dj@delorie.com> writes:
> > 
> > > There seems to be a problem in mmap I've trying to find for days
> > > now with no luck. Essentially, ./stage1/xgcc is hanging when
> > > garbage collecting (compiling fold-const.c), and the only solution
> > > for now is to configure with --with-gc=simple which works but
> > > really slows down compilation.
> > 
> > Saw that myself, except mine crashed all the time instead of hanging.
> > It might be the new /dev/zero code, too.

Quick followup -- the bug is in list::erase in mmap.cc, which has an
obvious infinite loop (ditto for does map::erase). I'll provide a patch 
after I do a bit of testing and a bit of hunting for other potential 
problems. As an aside, for user code that does a lot of mmap/munmap, 
it's also very inefficient, but that certainly can be remedied over 
time.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

