From 7c9e8492e6c7882c495b29c53e078327c2a23de5 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 28 Jun 2024 13:31:00 +0200 Subject: executor: don't trace PCs as comparisons Currnetly we always write PCs into the buffer even if tracing comparisons. Such bogus data will fail comparison consistentcy checks (type/pc) and executor will crash. Don't trace PCs as comparisons. --- executor/executor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'executor/executor.cc') diff --git a/executor/executor.cc b/executor/executor.cc index cf80d7491..616e86752 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -340,6 +340,8 @@ struct cover_t { uint32 mmap_alloc_size; char* data; char* data_end; + // Currently collecting comparisons. + bool collect_comps; // Note: On everything but darwin the first value in data is the count of // recorded PCs, followed by the PCs. We therefore set data_offset to the // size of one PC. -- cgit mrf-deployment