delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/21/14:52:02

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <Sterling AT tensilica DOT com>
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019