Re: AMBER: xleap memory issue

From: Bill Ross <ross.cgl.ucsf.edu>
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!
        !ABORTING.
        
        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):

ERRORS
 
  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 amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Wed Aug 27 2003 - 02:53:00 PDT
Custom Search