Commit 30b1ebff authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

mod_mem_cache: Fix concurrent removal of stale entries which could lead

to a crash. 

PR: 43724
Submitted by: ylavic
Reviewed by: covener, wrowe


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1750846 13f79535-47bb-0310-9956-ffa450edef68
parent bace5b86
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12,6 +12,9 @@ Changes with Apache 2.2.32
     to avoid reusing it should the close be effective after some new request
     is ready to be sent.  [Yann Ylavic]

  *) mod_mem_cache: Fix concurrent removal of stale entries which could lead
     to a crash.  PR 43724.  [Yann Ylavic]

  *) mime.types: add common extension "m4a" for MPEG 4 Audio.
     PR 57895 [Dylan Millikin <dylan.millikin gmail.com>]

+0 −5
Original line number Diff line number Diff line
@@ -103,11 +103,6 @@ RELEASE SHOWSTOPPERS:
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
  [ start all new proposals below, under PATCHES PROPOSED. ]

  *) mod_mem_cache: Fix concurrent removal of stale entries which could lead
                    to a crash. PR 43724.
     trunk patch: not applicable (2.2.x only)
     2.2.x patch: http://home.apache.org/~ylavic/patches/httpd-2.2.x-mod_mem_cache-pr43724.patch
     +1: ylavic, covener, wrowe


PATCHES PROPOSED TO BACKPORT FROM TRUNK:
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ static int remove_url(cache_handle_t *h, apr_pool_t *p)
    }

    obj = h->cache_obj;
    if (obj) {
    if (obj && cache_find(sconf->cache_cache, obj->key) == obj) {
        cache_remove(sconf->cache_cache, obj);
        /* For performance, cleanup cache object after releasing the lock */
        cleanup = !apr_atomic_dec32(&obj->refcount);