Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lldb-dap 19+ hangs on Windows #121722

Open
SuibianP opened this issue Jan 6, 2025 · 0 comments
Open

lldb-dap 19+ hangs on Windows #121722

SuibianP opened this issue Jan 6, 2025 · 0 comments
Labels
hang Compiler hang (infinite loop) lldb-dap platform:windows

Comments

@SuibianP
Copy link

SuibianP commented Jan 6, 2025

Summary

Since 19.1.0 release, official lldb-dap binary releases has been hanging on Windows.

Symptom

  • Neither locally built Debug nor RelWithDbgInfo builds exhibits the same issue; only the official binaries does
  • Launching lldb-dap on the terminal, interactively inputting lines then Ctrl-C: No input is consumed
  • Launching lldb-dap with -p: TCP port is not opened
  • VSCode LLDB-DAP extension or emacs dape: Hangs and times out respectively
  • LLDBDAP_LOG file gets created but is empty
  • Running under WinDbg: Nondeterministic behaviour
    • Same issue as above
    • Fatal Python error: can’t initialize sys standard streams
    • Working correctly

Suspected cause

The issue may be related to Python in some way, as the system Python version (that local builds link against?) differs from the version used by official binaries (3.10 embeddable package). More specifically, I speculate it might be some race condition between Python init_sys_streams and lldb-dap _setmode call inside DAP constructor.

Furum reports

https://discourse.llvm.org/t/lldb-dap-frozen-on-windows/83652

https://discourse.llvm.org/t/lldb-dap-in-vscode/83771

@EugeneZelenko EugeneZelenko added platform:windows hang Compiler hang (infinite loop) lldb-dap and removed new issue labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hang Compiler hang (infinite loop) lldb-dap platform:windows
Projects
None yet
Development

No branches or pull requests

3 participants