Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Re: calloc fails and returns NULL

Thread Tools

Re: calloc fails and returns NULL

Philip Lantz
Posts: n/a
k2ibegining wrote:
> 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
> 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.
> I'm clueless as can't really figure out why calloc() is failing even
> for 9292 bytes on this box.
> Thanks

Possibly your heap has been corrupted by either: freeing a block that
was not returned by malloc, calloc, or realloc; freeing a block more
than once; or writing beyond the end of an allocated block and
overwriting some of malloc's heap management data.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: calloc fails and returns NULL Ian Collins C Programming 0 11-08-2012 12:30 AM
Re: calloc fails and returns NULL Anand Hariharan C Programming 0 11-07-2012 10:27 PM
Re: calloc fails and returns NULL Keith Thompson C Programming 0 11-07-2012 08:05 PM
Re: calloc fails and returns NULL Greg Martin C Programming 0 11-07-2012 04:49 PM
Re: calloc fails and returns NULL Ben Bacarisse C Programming 0 11-07-2012 12:32 PM