From a36338a7a64b52ffad59ddc17536ec464bc8ce82 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Mon, 13 May 2024 18:04:00 -0500 Subject: [PATCH] Temporary fix for SWDEV-459354 Change-Id: I13d7d600ab72d873d1dbc5d5e9b72c2ca5941488 [ROCm/rocprofiler commit: b6576393a2daf53818f22c9b6590708eacc9e985] --- projects/rocprofiler/src/core/intercept_queue.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler/src/core/intercept_queue.h b/projects/rocprofiler/src/core/intercept_queue.h index 767531d3c0..1849309e23 100644 --- a/projects/rocprofiler/src/core/intercept_queue.h +++ b/projects/rocprofiler/src/core/intercept_queue.h @@ -628,7 +628,10 @@ class InterceptQueue { const InterceptQueue* obj = it->second; assert(queue == obj->queue_); delete obj; - obj_map_.erase(it); + // TODO(aelwazir): This doesn't work anymore with the latest update from HIP Runtime + // when they delete their queues, that causes double free. + // We need another way to solve this issue. + // obj_map_.erase(it); status = HSA_STATUS_SUCCESS; } return status;