[Lldb-commits] [PATCH] D68737: SBFile::GetFile: convert SBFile back into python native files.

Lawrence D'Anna via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Oct 26 00:11:04 PDT 2019


lawrence_danna added a comment.

In D68737#1722181 <https://reviews.llvm.org/D68737#1722181>, @mgorny wrote:

> Well, I found another problem with these series, specifically starting at this commit. Any use of `script` in LLDB ends up with:
>
>   (lldb) script True
>   True
>   close failed in file object destructor:
>   IOError: [Errno 9] Bad file descriptor
>
>
> I'd suspect the same fd is using in more than one file but that's only a guess.
>
> The curious part is that I've tried `ktruss`-ing the process and I don't see any failed `close()` syscalls.


I just tested it on commit ef7a154d17f2e38ba3c8bfa33f240b60464e4cc7 <https://reviews.llvm.org/rGef7a154d17f2e38ba3c8bfa33f240b60464e4cc7> (from Thurday), on 8.1_STABLE, And I don't see that happening.

  netbsd# ./bin/lldb
  (lldb) script True
  True
  (lldb) exit


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68737/new/

https://reviews.llvm.org/D68737





More information about the lldb-commits mailing list