Closed GoogleCodeExporter closed 8 years ago
It turns out that this is indeed the "malloc" issue. The program below also
fails to
allocate 160MB of memory if executed on "a1":
{{{
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char * buffer;
printf("Allocating memory... \n");
buffer = (char*) malloc (160000000);
if (buffer==NULL) {
printf("Cannot allocate memory!\n");
exit (1);
}
free (buffer);
return 0;
}
}}}
Original comment by nou...@gmail.com
on 16 Jun 2009 at 12:05
As it turns out, the example above fails to allocate memory even if compiled
with the
"sxcc" compiler on SuperUX...
Original comment by nou...@gmail.com
on 16 Jun 2009 at 12:10
It turns out the problem wasn't in the sx-gcc port, but the memory restrictions
that
were enforced on the user account which was used for executing tests.
The "ulimit" command showed that interactive users have only "195313kB" of
memory
available. After increasing this limit, the "malloc" and C++ tests execute fine.
Original comment by nou...@gmail.com
on 16 Jun 2009 at 1:53
Original issue reported on code.google.com by
nou...@gmail.com
on 16 Jun 2009 at 12:03