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
ctypes.utils uninitialized variable 'paths' #68302
Comments
In certain corner cases, the ctypes.util can raise an error for a uninitialized variable 'path' when with sunos5 the clre program exists, but fails to return valid output lines. (Also in 2.7.10rc0) |
I fail to see how this patch does anything. What is the actual error or traceback? Perhaps it is for “paths” (plural)? |
Sorry, yes. It's plural: 'paths' |
Simply add one line to make the function theoretically more robust. |
It's not entirely theoretical to me. I inherited some solaris boxes that cannot be properly maintained anymore and that have a clre program that dumps core. Hence no valid output and running into uninitialized 'paths'. The patch from Xiang Zhang will fix that. |
Xiang's patch LGTM. Given that Kees has verified it, I will apply today. |
New changeset 57bf7a40925f by Meador Inge in branch '2.7': New changeset db5baad7ad69 by Meador Inge in branch '3.5': New changeset 5b5fbce1db9c by Meador Inge in branch 'default': |
Fixed. Thank y'all for the patch and help with testing. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: