apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Novick <inov...@greenplum.com>
Subject apr_hash_set allocation failure behavior
Date Wed, 17 Mar 2010 22:18:50 GMT
Hello,

I am doing some testing with APR version 1.2.12

When adding to a hash table using apr_hash_set ... If memory can not be
allocated what is the expected behavior?

I am seeing apr_hash_set calls expand_array.

expand_array core dumps if memory can not be allocated.

Is this expected?  Is there a way to get an error code for a failed insert
to a table rather than a coredump?

Cheers,
Ivan


Mime
View raw message