httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <>
Subject apr_shm_calloc() segfaults if out of memory
Date Wed, 29 Aug 2001 00:53:57 GMT
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

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

-----------------------------------------		"There's a moon
					over Bourbon Street
View raw message