Index: source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp =================================================================== --- source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp +++ source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp @@ -155,6 +155,7 @@ ValueObjectSP trace_sp = return_value_sp->GetValueForExpressionPath(".alloc_trace"); for (int i = 0; i < alloc_count; i++) { addr_t pc = trace_sp->GetChildAtIndex(i, true)->GetValueAsUnsigned(0); + if (pc == 0 || pc == 1 || pc == LLDB_INVALID_ADDRESS) continue; pcs.push_back(pc); } @@ -171,6 +172,7 @@ ValueObjectSP trace_sp = return_value_sp->GetValueForExpressionPath(".free_trace"); for (int i = 0; i < free_count; i++) { addr_t pc = trace_sp->GetChildAtIndex(i, true)->GetValueAsUnsigned(0); + if (pc == 0 || pc == 1 || pc == LLDB_INVALID_ADDRESS) continue; pcs.push_back(pc); }