MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

lldb can't run commands depending on output device type

Open lb90 opened this issue 4 months ago • 2 comments

Description / Steps to reproduce the issue

  1. Open the CLANG64 MSYS2 shell
  2. lldb /clang64/bin/glib-compile-resources.exe
  3. run

Expected behavior

The child process is launched

Actual behavior

(lldb) run
error: The parameter is incorrect.
(lldb) 

Additional details

If I run lldb from CMD the error doesn't happen:

cd C:\msys64\clang64\bin
lldb glib-compile-resources.exe
(lldb) run
Process 16096 launched: 'C:\msys64\clang64\bin\glib-compile-resources.exe' (x86_64)

If I run lldb from the CLANG64 MSYS2 shell but pipe to tee or cat, the error doesn't happen:

lldb glib-compile-resources.exe | cat
(lldb) r
Process 1664 launched: 'C:\msys64\clang64\bin\glib-compile-resources.exe' (x86_64)

Verification

  • [x] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Windows Version

MINGW64_NT-10.0-26200

MINGW environments affected

  • [ ] MINGW64
  • [ ] MINGW32
  • [ ] UCRT64
  • [x] CLANG64
  • [ ] CLANGARM64

Are you willing to submit a PR?

Yes

lb90 avatar Oct 20 '25 13:10 lb90

IMO the error is triggered only when the output is ConPTY

lb90 avatar Oct 20 '25 16:10 lb90

with winpty it seems to work

ognevny avatar Oct 26 '25 07:10 ognevny