-
Notifications
You must be signed in to change notification settings - Fork 19
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
ValueError: PyCapsule_SetPointer called with null pointer #6
Comments
Thanks for raising this point. I have not found a nice and backwards compatible way to address this issue and welcome any ideas. Conceptually I would convert the clean functions to destructors of the pyCapsule state, but I am not sure this behaves the same. Alternatively, one could remove the line and depend on the Python application not calling the clean function twice, which would be even worse. |
http://svn.python.org/projects/python/trunk/Objects/capsule.c |
Hi, facing the same issue here with Python3. Currently the only workaround is commenting out authGSSServerClean lines? |
Hi. I made the fork https://github.com/Stolb27/pykerberos, which, I think, has solved this problem. But I'm not sure I do the right thing, to offer pull-request. It might be not to remove clean-methods, leaving them empty and marking depricated. 02strich, this solution is suitable for pull-request? |
I will have a look at it tonight. Just for my education, can you explain what exact kind of issue where you facing on Py3? Compiler issues? Hi. I made the fork https://github.com/Stolb27/pykerberos, which, I think, has solved this problem. But I'm not sure I do the right thing, to offer pull-request. It might be not to remove clean-methods, leaving them empty and marking depricated. 02strich, this solution is suitable for pull-request? — |
@Stolb27 glancing over the code that looks very interesting. If you are ok with it, let's get a pull request going and see where we get to? |
Hi again, I get "PyCapsule_SetPointer called with null pointer" errors whenever I have authGSSServerClean in my code. Interestingly the exceptions are not raised by authGSSServerClean but by arbitrary statements in the code. I'm sure that authGSSServerClean is not being called twice and I am not referencing to the objects after calling authGSSServerClean. |
Hi, I am sorry for taking so long to get back to this. @Stolb27 your changes are very interesting and I incorporated some of them into master here - can you have a look? @laurivosandi can you try head of master, it should fix your issue? |
Omg... |
Thanks for the hint with the N vs O, that is actually also broken upstream. Also fixed the warnings and the test.py. What other changes did you have in mind? |
Thank you. Everything is fine:) Perhaps this is a separate issue, but ... In Debian 8 krb5-config has been renamed to krb5-config.mit (don't know, why).
Can you somehow solve? |
Can you check whether the new master HEAD solves the debian problem? |
Yes, there is no more error. Thank you. вт, 15 дек. 2015 г., 15:27, Stefan Richter notifications@github.com:
С уважением, Василий Иванов |
Thanks for your help. I have pushed the changes into v1.1.9 and uploaded the new version to PyPi |
on call kerberos.authGSSServerClean(context)
Cause:
if PY_MAJOR_VERSION >= 3
else
in authGSSServerClean in kerberos.c
Documentation:
int PyCapsule_SetPointer(PyObject *capsule, void *pointer)
Set the void pointer inside capsule to pointer. The pointer may not be NULL.
https://docs.python.org/3.4/c-api/capsule.html#capsules
The text was updated successfully, but these errors were encountered: