[all-commits] [llvm/llvm-project] 897d3e: [lldb][windows] fix cross DLL file descriptor look...

Charles Zablit via All-commits all-commits at lists.llvm.org
Thu May 7 13:10:33 PDT 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 897d3e2b2a6357ace424966c540576298bd8dad4
      https://github.com/llvm/llvm-project/commit/897d3e2b2a6357ace424966c540576298bd8dad4
  Author: Charles Zablit <c_zablit at apple.com>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M lldb/source/Host/common/File.cpp

  Log Message:
  -----------
  [lldb][windows] fix cross DLL file descriptor lookup crash (#195855)

On Windows, file descriptors are only valid in the same DLL: they are
really just handles mapped to an index in a table in the CRT. Calling a
liblldb method with a file descriptor from lldb-dap will cause the
program to crash. See
https://github.com/llvm/llvm-project/issues/193971.

This patch fixes the issue by refactoring the `NativeFile` constructors
so that they no longer try to convert `FILE` types to handles through
the CRT lookup table.

(cherry picked from commit 176dff4a5afdaa7f8ca040b4e06c96ef918e8a22)



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