[ https://issues.apache.org/jira/browse/TS-5065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704162#comment-15704162 ]
James Peach commented on TS-5065: --------------------------------- {noformat} commit 23672db4f1e6b3d7b633a82666955abe6ca86950 Author: James Peach <jpe...@apache.org> AuthorDate: Fri Nov 25 23:09:47 2016 -0800 TS-5065: Fix RefCountCache iterator invalidation. Removing items from the TSHashMap invalidates the iterator because the linked list pointers are embedded in the hash node, so we can't do that while clearing. Instead, deallocate and remove each entry explicitly. {noformat} > Use after free clearing HostDB. > ------------------------------- > > Key: TS-5065 > URL: https://issues.apache.org/jira/browse/TS-5065 > Project: Traffic Server > Issue Type: Bug > Components: HostDB > Reporter: James Peach > Assignee: James Peach > Fix For: 7.1.0 > > Time Spent: 20m > Remaining Estimate: 0h > > ASAN points out that clearing the HostDB on startup results in a use after > free since we are iterating at the same time as we are freeing hash entries > (which contain the iterator links). -- This message was sent by Atlassian JIRA (v6.3.4#6332)