Open
Description
Found this on Linaro's Windows on Arm bot machine, but it's not causing failures during bot runs. Build lldb as normal in a Windows Terminal (not conhost) and then:
ninja check-lldb-unit
When this gets to host tests, the current terminal and any other terminal windows you have open will close. Same thing happens if you run HostTests.exe directly.
I narrowed it down to some interaction between these two tests:
FindProcesses
LaunchProcessDuplicatesHandle
Some times I can get what seems like just one to fail, most of the time both have to be enabled.
Either this is specific to being in an interactive session, or being run via buildbot adds some extra layer of process that prevents this happening. Or buildbot is using conhost not windows terminal, this does not happen in conhost.