Red Hat Bugzilla – Bug 470662
Call to ldap.get_option crashes interpreter
Last modified: 2008-11-08 12:20:41 EST
Description of problem:
A call to
crashes the python interpreter
Version-Release number of selected component (if applicable):
Steps to Reproduce:
$ python -c 'import ldap;ldap.get_option(ldap.OPT_X_TLS_CERTFILE)'
python: Objects/stringobject.c:107: PyString_FromString: Assertion `str != ((void *)0)' failed.
A string, something that doesn't break the python interpreter
ldap.OPT_X_TLS_KEYFILE breaks also the interpreter with the same message.
Looks like this was fixed in a later release:
Released 2.3.4 2008-03-29
Changes since 2.3.3:
* Fixed seg fault when calling LDAPObject.get_option()
(see SF#1926507, thanks to Matej)
Current version in Fedora 10 is 2.3.5.
Would you prefer I backport it to Fedora 9?
I found this when experimenting with ldap auth in Moin. I don't use python-ldap frequently and probably I will upgrade to F10, so I think it's ok if you leave it as it is.
Okay, I'll close this then and wait to backport until there's demand.