Looks like memory issue can you give more details about OS and memory?
on a 32-bit build there may well be enough free memory available, but
not a large enough contiguous block of address space into which to map
from mafft code I can see
char *AllocateCharVec( int l1 )
cvec = (char *)calloc( l1, sizeof( char ) );
if( cvec == NULL )
fprintf( stderr, "Cannot allocate %d character vector.\n", l1 );
exit( 1 );
return( cvec );
Allocate and zero-initialize array Allocates a block of memory for an
array of num elements, each of them size bytes long, and initializes
all its bits to zero.
The effective result is the allocation of a zero-initialized memory
block of (num*size) bytes.
If size is zero, the return value depends on the particular library
implementation (it may or may not be a null pointer), but the returned
pointer shall not be dereferenced.
and in your case it returns null
modified 2.4 years ago
2.4 years ago by
Medhat ♦ 8.2k