We’re experiencing an issue where LLDB freezes when debugging certain AST contexts. The sampled stack trace suggests that LLDB is stuck in an infinite loop with the following calls involved:
llvm::vfs::RedirectingFileSystem::status()
llvm::vfs::RedirectingFileSystem::getExternalStatus()
clang::FileSystemStatCache::get()
- Unfortunately, I don’t have a simple reproducer. The
types
log doesn’t have information populated, possibly because of the loop. swift-healthcheck
is not an option, as we didn't type any expression.
Questions:
- Any recommendations for additional logging or debugging techniques to help diagnose the root cause?
- How can we configure a timeout in
~/.lldbInit-Xcode
(e.g., some internally decided reasonable threshold X seconds) so that the loop/expr-eval terminates if the timeout is reached?