From c18584fdbc6d0290a0bef1d57937e244e978f4c5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 Feb 2020 17:08:02 +0100 Subject: [PATCH] Iterator may be invalidated. --- server/TracyWorker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 7667a7ea..c620f59e 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5430,6 +5430,7 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint m_slab.Unalloc( memsize ); } + sym0 = m_data.symbolStats.find( frame0.symAddr ); auto sit = sym0->second.parents.find( idx ); if( sit == sym0->second.parents.end() ) {