On Wed, Mar 09, 2005 at 02:33:37PM +0100, [EMAIL PROTECTED] wrote:
> I am trying to mirror ftp://patches.sun.com/patchroot/all_unsigned with
> lftp under Solaris. What happens is that lftp runs into the situation
> where its process quickly eats up all available virtual memory and
> then aborts.

Please try lftp-3.1.0, memory allocation was optimized for large directories.

> brk() is used by malloc() for expanding the heap, and thats exactly
> what can be observed.

In fact, it could be a bug in realloc function, as it seems to be leaking
memory. lftp-3.0.x used realloc for each file in directory to expand an
array, now it is used only few times.

> #0  _Z8xreallocPvj () at xmalloc.cc:75

-- 
   Alexander.

Reply via email to