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: <3AB8FEE9.D472DCEB@tensilica.com> Date: Wed, 21 Mar 2001 11:20:09 -0800 From: Sterling Augustine X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Memory allocation limits Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a fairly large application that is having trouble allocating memory under cygwin. On linux and solaris it works just fine. For some reason, malloc is returning NULL. I have seen the archives, but I can't find anything that relates to this particular variant of the malloc failing issue. The window's task manager shows that my process is only using about 21M, and the allocation that fails is an 8K allocation. So I doubt that I am at the limit of available memory (just linking the program itself takes about 50M, so it seems like the memory is out there.) Why would malloc fail under these circumstances? I am not near the 128M limit mentioned in some posts (and have tried bumping it up anyway). It seems unlikely that fragmentation is the issue, as 21M consuming a 2G address space would require some extremely severe fragmentation. Has anyone seen or solved this problem before? I'm using the latest DLL. Thanks, Sterling Augustine -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple