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 Message-ID: <3B4F1341.B8AEE186@iee.org> Date: Fri, 13 Jul 2001 16:26:57 +0100 From: Don Sharp X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: gnuwin32 Subject: Re: problem with heap, win32 error 487 References: <3B4EE723 DOT 16CBA862 AT agere DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thorsten Clevorn wrote: > > Hi, > > I am trying to run a simulation in C on my Win2K-machine (the simulation > > runs perfectly on a Linux-PC) > The problem seems to be with the memory rquirements. > With certain parameters, I get some huge > 3-dimensional arrays that require like 20-40MB RAM. > When I have a size of about 22MB the simulation works fine, when I > increase the array size by a factor of ~1.33 (should then still be below > > but close to 32MB) it doesn't start with the error message > C:\cygwin\home\clevorn\wlan15\Main.exe: *** Couldn't reserve space for > cygwin's heap (0x20030000) in child, cygheap, Win32 error 487 > > I tried two solutions posted in the mailing list for similiar problems: > > first: > the "gcc -Wl,--heap,50000000,--stack,--50000000 ..." solution > here the simulation fails at small array sizes too. > > second: > the "gcc -mno-cygwin ..." solution > here the program does start, but the only thing that happens is, if you > look in the task manager, the process slowly "collects" memory for about > > 90 seconds until it recaches 32MB (33xxxkB) and than the process crashes > > with the windows message " the exception unknown software exception > (0xc00000fd) occured in the application at location 0x6104b9ef". As -mno-cygwin uses native M$ libraries it seems likely that the problem is not of cygwin's making. Does it work when compiled with MSVC ? Cheers Don Sharp > During that time the VM Size increases with the same rate, only it start at > values like 4xxMB or 6xxMB, depending on the array size (I have 1 GB RAM > > so the pure size of these value isn't the real problem). > > I think that the size of slightly below or even above 32MB is the cause > of the problem. Is there a general problem with cygwin and running > programs that require this amount of memory. Is there a way around this > problem. > > Thanks for your help! > > Regards, > > Thorsten > > $ cygcheck -s -v -r > ...snip... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/