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

ProcessRunner does not detect launch errors #4482

Open
aleks-f opened this issue Mar 5, 2024 · 1 comment
Open

ProcessRunner does not detect launch errors #4482

aleks-f opened this issue Mar 5, 2024 · 1 comment

Comments

@aleks-f
Copy link
Member

aleks-f commented Mar 5, 2024

Describe the bug
Launch thread silently ignores any errors or exceptions.

To Reproduce
Launch a non-existing executable.

EDIt: there seems to be no reliable portable way to detect what exactly happens with the launched process (not even when the executable does not exist). Seems best to add the executable file existence check which includes cwd and environment path, and not even try to launch a non-existent executable.

@aleks-f aleks-f added the bug label Mar 5, 2024
@aleks-f aleks-f added this to the Release 1.13.3 milestone Mar 5, 2024
@aleks-f aleks-f added this to 1.13 Mar 5, 2024
@aleks-f aleks-f removed this from 1.13 Mar 5, 2024
@aleks-f aleks-f added this to 1.14 Mar 5, 2024
@aleks-f aleks-f modified the milestones: Release 1.13.3, Release 1.14.0 Mar 5, 2024
aleks-f added a commit that referenced this issue Jul 29, 2024
* enh(ProcessRunner): does not detect launch errors #4482

* enh(File): add absolutePath and existsAnywhere() #4482

* fix windows build and tsan fail

* fix tsan

* fix windows file tests

* comment out some CI env path -related issues

* fix tsan and windows build

* try to fix ci

* ignore ProcessRunner test fail on windows cmake

* enh(File): canExecute throws FileNotFoundException if the file to be executed can't be found in the path.

* Few C++ modernisation changes.

* enh(File): Windows specifics of File::canExecute. Returns false if the file to be executed can't be found using absolutePath.

---------

Co-authored-by: Matej Kenda <[email protected]>
@matejk
Copy link
Contributor

matejk commented Sep 12, 2024

Fixed in #4483

@matejk matejk added the fixed label Sep 12, 2024
@matejk matejk moved this to Done in 1.14 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants