title: calloc fails and returns NULL
body: <p>in one of our application's module, calloc() is failing and returning NULL. The amount of memory that it is trying to allocate is of structure which is of 9292 bytes. The operating system is AIX 7.1 and running VIOS 2.2.1.3.</p>
  
  <p>The machine has 2+GB ram and does not seems to have an issue with lack of memory. The same application module is running fine on one of the other boxes, which has same configurations as the problematic box.Following is a snippet of memory from both the boxes and they are same !</p>
  
  <p>WORKING BOX:</p>
  
  <pre>
  RLIMIT_AS      (infinite) (infinite)
  RLIMIT_CORE    1073741312 (infinite)
  RLIMIT_CPU     (infinite) (infinite)
  RLIMIT_DATA     134217728 (infinite)
  RLIMIT_FSIZE   (infinite) (infinite)
  RLIMIT_NOFILE        2000 (infinite)
  RLIMIT_RSS       33554432 (infinite)
  RLIMIT_STACK     33554432 2147483646 
  </pre>
  
  <p>PROBLEMATIC BOX:</p>
  
  <pre>
  RLIMIT_AS      (infinite) (infinite)
  RLIMIT_CORE    1073741312 (infinite)
  RLIMIT_CPU     (infinite) (infinite)
  RLIMIT_DATA     134217728 (infinite)
  RLIMIT_FSIZE   (infinite) (infinite)
  RLIMIT_NOFILE        2000 (infinite)
  RLIMIT_RSS       33554432 (infinite)
  RLIMIT_STACK     33554432 2147483646 
  </pre>
  
  <p>I'm clueless as can't really figure out why calloc() is failing even for 9292 bytes on this box.</p>
  
  <p>Thanks</p>