You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…mem tracker in destructor of vector
Summary:
Tree of `MemTrackers` is organized so that a node maintains pointers to all nodes along the path to root. Hence (almost) all traversal is in the upward direction. But common `MemTracker`s are accessed from the root - i.e., in the downward direction. In the destructor of a common `MemTracker`, an upward traversal to root is followed by a downward traversal back into vector of common `MemTracker`s. This vector should not be accessed by root mem tracker once any common mem tracker in it is destroyed.
Prevent vector access from root mem tracker by setting the lambda for downward traversal to null in the destructor of vector.
Test Plan: Jenkins
Reviewers: amitanand, bogdan, sergei
Reviewed By: sergei
Subscribers: ybase
Differential Revision: https://phabricator.dev.yugabyte.com/D8087
Example (thanks @jj-kim ) https://detective-gcp.dev.yugabyte.com/job/github-yugabyte-db-centos-master-gcc-debug%2F658%2Fartifact%2Fbuild%2Fdebug-gcc-dynamic-ninja%2Fyb-test-logs%2Ftests-pgwrapper__pg_mini-test%2FPgMiniTest_DropDBMarkDeleted.log?max_lines=3000&start_line=12001
I haven't done a bisect, but I did grep through the jenkins logs, just for gcc release and could see this going back 100 builds:
I suspect this traces back to 317ef8e
Since this is failing across tests and build types, it would be great to fix soon.
cc @spolitov
The text was updated successfully, but these errors were encountered: