https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #5 from Chuck Hunley <[email protected]> ---
I've seen crash/exception as well.  Although I see it when the httpd.exe
process is being shutdown.  The exception is due to CloseHandle() being called
twice with the same handle to file mapping. 
https://github.com/apache/httpd/blob/trunk/modules/cache/mod_socache_shmcb.c
creates a file memory mapping and
https://github.com/apache/apr/blob/trunk/shmem/win32/shm.c actually creates the
physical mapping with the OS and registers a cleanup handler.  When the mapping
is to be cleaned up both mod_socache_shmcb.c(socache_shmcb_destroy) and
shm.c(shm_cleanup via apr_pool_clear) attempt to close the same handle. I've
attached a simple fix based on the "trunk" branch to shm.c/shm_cleanup to NULL
the handles after they have been closed.  This seems to have eliminated the
crash I've been seeing and is based on similar cleanup handling in
mmap/win32/mmap.c. However, I would think some coordination between
mod_socache_shmcb.c and apr_pools.c would be necessary as well.

A might be more appropriate to redirect this to Product: APR or Product:
Apache-httpd-2 with Component: mod_socache_(dbm|dc|memcache|shmcb)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to