-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
when subprocess throws error, try to get system message; make sure error code prints correctly #357
Comments
still how to interpret return codes above 127. e.g., running CmdStan via bash shell with segfault terminated by signal -6 is reported as return code 134 - 128 + 6 or ??? |
maybe this is the answer to some problems: https://stackoverflow.com/a/13789263 |
|
hi @ahartikainen - context? https://docs.python.org/3/library/subprocess.html#subprocess.CompletedProcess.returncode |
Hah, nevermind. So |
so it would seem. |
Summary:
When a subprocess fails, the error code is an unsigned int (?) but is printed as a signed int - error codes > 127 become negative, e.g. '-11'. add mode logic to get system error message for the error code and cast return code to prevent manglinag.
Description:
Describe the issue as clearly as possible.
Additional Information:
Provide any additional information here.
Current Version:
The text was updated successfully, but these errors were encountered: