[all-commits] [llvm/llvm-project] 2f23ab: Increase the default maximum stack walk

Jason Molenda via All-commits all-commits at lists.llvm.org
Sat May 28 13:13:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f23abd6c692134c69b6d19f726d51e11200d8e4
      https://github.com/llvm/llvm-project/commit/2f23abd6c692134c69b6d19f726d51e11200d8e4
  Author: Jason Molenda <jason at molenda.com>
  Date:   2022-05-28 (Sat, 28 May 2022)

  Changed paths:
    M lldb/source/Target/TargetProperties.td

  Log Message:
  -----------
  Increase the default maximum stack walk

lldb will only backtrace a fixed number of stack frames, as a
last-ditch attempt to avoid a runaway looping backtrace.  It's
unusual that anyone ends up depending on this final safety net in
years. I picked the original number of 300000 was picked by seeing
how many stack frames I could make in a small recursive function
on Darwin systems before using the default stack space.  Checking
again today on a modern system, I can exceed this limit & lldb will
not show the original invocation of the recursing call.  Double the
old value to cover this larger maximum possible stack frame count,
as a default value.
(`target.process.thread.max-backtrace-depth`)




More information about the All-commits mailing list