[all-commits] [llvm/llvm-project] 6a8e25: Add a fatal error for debug builds when disagreeme...

Jason Molenda via All-commits all-commits at lists.llvm.org
Thu Jun 15 15:42:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a8e2538afc10e6b7a321fd38bf5faf550518f2a
      https://github.com/llvm/llvm-project/commit/6a8e2538afc10e6b7a321fd38bf5faf550518f2a
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-06-15 (Thu, 15 Jun 2023)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp

  Log Message:
  -----------
  Add a fatal error for debug builds when disagreement about stepping

On one CI bot we're seeing a failure where the kernel reports that
we have completed an instruction step (via a mach exception) and
lldb doesn't think the thread was doing an instruction step.  It
takes the conservative approach of stopping at this point, breaking
tests.

This patch adds an llvm fatal error for debug builds where it will
log the state of the thread and the AArch64 ESR, to confirm what
the hardware reported as the exception so we can double check the
kernel's interpretation.

I'll change this to an lldbassert without the runtime details in
the string once we have an idea what is happening.  the hope is
that this will get hit on the CI bot soon.

Differential Revision: https://reviews.llvm.org/D153079




More information about the All-commits mailing list