Malloc differences/error
ITEM: RTA000064446
A customer has found that there is a difference in the way malloc
behaves on 2 apparently almost identical machines.
The following is his description of the problem.
I think I have located
a bug in the AIX malloc routine in the version running
on AIX machine. I have tried the program on our
machine in Seattle, there it seems to behave correctly,
so I believe the problem is with the lic.a on their
machine (its name is bells). I have included the
patch information for both machines so that IBM has a
chance to figure out if we have the correct versions of
everything.
Here is the program:
#include
main(argc, argv)
int argc;
char *argv..;
{ int i;
int elements, element_size;
char *ptr;
int total;
int clear;
if (argc < 3)
{ printf("Usage: get elements element_size\n");
exit(1);
};
if (argc == 4)
clear = 1;
else
clear = 0;
sscanf(argv.1., "%d", &elements);
sscanf(argv.2., "%d", &element_size);
printf("Allocating %d elements of size %d\n", elements, element_siz
if (clear)
printf("Clearing Storage\n");
total = 0;
for (i=0; i
WWQA: ITEM: RTA000064446 ITEM: RTA000064446
Dated: 01/1995 Category: ITSAI6000GE
This HTML file was generated 99/06/24~12:43:22
Comments or suggestions?
Contact us