Segmentation fault
am 01.05.2003 19:42:34 von Igor Sysoev
I think that ap_cleanup_for_exec() should not call ap_kill_alloc_shared()
but instead should call some munmap()/shmclt(IPC_RMID)/etc wrapper without
a freeing the allocated blocks in pool - these blocks still in use by other
processes.
Igor Sysoev
http://sysoev.ru/en/
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: Segmentation fault
am 01.05.2003 20:31:16 von Igor Sysoev
On Thu, 1 May 2003, Igor Sysoev wrote:
> I think that ap_cleanup_for_exec() should not call ap_kill_alloc_shared()
> but instead should call some munmap()/shmclt(IPC_RMID)/etc wrapper without
> a freeing the allocated blocks in pool - these blocks still in use by other
> processes.
Well, ap_kill_alloc_shared() does not free allocated blocks but it calls
mm_destroy() that wipes out shared memory with zeros before munmap()/etc
while other processes still think that this memory is valid.
But I still can not understand why this fix was made at all.
SysV shared segments and mmap()ed memory are not inherited across exec.
Igor Sysoev
http://sysoev.ru/en/
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org