[all-commits] [llvm/llvm-project] 7e6c91: [lldb] Fix EditlineTest closing files multiple tim...

John Harrison via All-commits all-commits at lists.llvm.org
Fri Nov 21 15:30:05 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e6c913f35de79d89eefb35f0ce5086f11a6f454
      https://github.com/llvm/llvm-project/commit/7e6c913f35de79d89eefb35f0ce5086f11a6f454
  Author: John Harrison <harjohn at google.com>
  Date:   2025-11-21 (Fri, 21 Nov 2025)

  Changed paths:
    M lldb/unittests/Editline/EditlineTest.cpp

  Log Message:
  -----------
  [lldb] Fix EditlineTest closing files multiple times. (#169100)

This updates the EditlineTest to use `lldb::FileSP` to ensure the
associated FDs are only closed a single time.

Currently, there is some confusion between the `FilePointer`,
`PseudoTerminal` and `LockableStreamFile` about when the files are
closed resulting in a crash in some due to a `fflush` on a closed file.



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