This is an automated email from the ASF dual-hosted git repository. amc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 8871845 Fix IntrusiveHashMap active bucket list corruption issue during expansion. 8871845 is described below commit 8871845c3f0606fb991a954aa7d35a72aa128e82 Author: Alan M. Carroll <a...@apache.org> AuthorDate: Thu Apr 11 19:04:38 2019 -0500 Fix IntrusiveHashMap active bucket list corruption issue during expansion. --- include/tscore/IntrusiveHashMap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/tscore/IntrusiveHashMap.h b/include/tscore/IntrusiveHashMap.h index c787e4b..3e2b5c9 100644 --- a/include/tscore/IntrusiveHashMap.h +++ b/include/tscore/IntrusiveHashMap.h @@ -343,6 +343,9 @@ IntrusiveHashMap<H>::Bucket::clear() _v = nullptr; _count = 0; _mixed_p = false; + // These can be left set during an expansion, when the bucket did have elements before but not + // after. Therefore make sure they are cleared. + _link._next = _link._prev = nullptr; } template <typename H>