Re: AMBER: xleap memory issue

From: Bill Ross <>
Date: Tue, 26 Aug 2003 17:52:40 -0700 (PDT)

        !FATAL ERROR----------------------------------------
        !FATAL: In file [varArray.c], line 371
        !FATAL: Message: Realloc: Not enough space!
        I cannot determine how to increase the maximum array size in the
        varArray.c file. What can I do to fix this problem?
Looking at line 371 per the error msg:

    REALLOC(header->data , char*, header->data, header->size * nslot );

Looking for the definition of REALLOC() (grep REALLOC *.h)

# define REALLOC( dest, type, src, size ) { \
        (dest) = (type) realloc( src, size ); \
        if ( (dest)==(type)NULL ) { \
                DFATAL(( "Realloc: %s", strerror(errno) )); \

>From this you can see that it calls realloc(). Looking at that
(man realloc):

  The malloc(), calloc(), realloc(), and valloc() functions set errno to the
  specified values for the following conditions:
  [ENOMEM] Insufficient storage space is available.

So the system is not giving the dynamically-allocated memory
you need. Possibly if you bump your memory limit by

% unlimit datasize

it will do the trick. 'limit' should show what your limits are.

Bill Ross

The AMBER Mail Reflector
To post, send mail to
To unsubscribe, send "unsubscribe amber" to
Received on Wed Aug 27 2003 - 02:53:00 PDT
Custom Search