[all-commits] [llvm/llvm-project] 6ba21c: [lldb] Fix source line annotations for libsanitizers

Julian Lettner via All-commits all-commits at lists.llvm.org
Tue Aug 19 14:40:53 PDT 2025


  Branch: refs/heads/users/yln/lldb-libsanitizers-trace-accuracy
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ba21cb66f853e30177c1c732ff11e28f503fe3a
      https://github.com/llvm/llvm-project/commit/6ba21cb66f853e30177c1c732ff11e28f503fe3a
  Author: Julian Lettner <jlettner at apple.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M lldb/include/lldb/lldb-private-enumerations.h
    M lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
    M lldb/source/Plugins/Process/Utility/HistoryUnwind.cpp
    M lldb/test/API/functionalities/asan/TestMemoryHistory.py

  Log Message:
  -----------
  [lldb] Fix source line annotations for libsanitizers

When providing allocation and deallocation traces,
the ASan compiler-rt runtime already provides call
addresses (`TracePCType::Calls`).

On Darwin, system sanitizers (libsanitizers)
provides return address.  It also discards a few
non-user frames at the top of the stack, because
these internal libmalloc/libsanitizers stack
frames do not provide any value when diagnosing
memory errors.

Introduce and add handling for
`TracePCType::ReturnsNoZerothFrame` to cover this
case and enable libsanitizers traces line-level
testing.

rdar://157596927



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list