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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <200005112134.QAA20487@hp2.xraylith.wisc.edu> To: DJ Delorie , tprince AT computer DOT org, cygwin AT sourceware DOT cygnus DOT 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 DOT MAA19448 AT hp2 DOT xraylith DOT wisc DOT edu> Date: Thu, 11 May 2000 16:34:51 -0500 From: Mumit Khan Mumit Khan writes: > DJ Delorie 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 AT sourceware DOT cygnus DOT com