You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Graham Leggett <mi...@sharp.fm> on 2001/08/29 02:53:57 UTC
apr_shm_calloc() segfaults if out of memory
Hi all,
While testing some tolerances in the LDAP cache when it runs out of
memory, I discovered that apr_shm_calloc() segfaults if you attempt to
allocate a block of memory bigger than the memory block you orginally
defined.
Surely in this case apr_shm_calloc() should return NULL instead?
Program received signal SIGSEGV, Segmentation fault.
0xfcc3574 in memset () at soinit.c:59
59 soinit.c: No such file or directory.
(gdb) bt
#0 0xfcc3574 in memset () at soinit.c:59
#1 0xffa7fa8 in apr_shm_calloc () at shmem.c:214
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."