Bug 1582786
| Summary: | Reference counting bug in python-ldap causes segfault | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Christian Heimes <cheimes> |
| Component: | python-pyldap | Assignee: | Miro Hrončok <mhroncok> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | caillon+fedoraproject, extras-qa, john.j5live, mhroncok, pviktori, rhughes, rkuska, rstrode, sandmann, vanmeeuwen+fedora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-pyldap-2.4.37-4.fc27 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1582598 | Environment: | |
| Last Closed: | 2018-06-07 11:49:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1582598 | ||
| Bug Blocks: | 1582600 | ||
|
Description
Christian Heimes
2018-05-26 20:36:06 UTC
python-ldap is fine *but* python-pyldap contains the buggy code. The ref counting bug and segfaults affects FreeIPA on F27, because it uses python3-pyldap package as LDAP client library. So we just backport this? https://github.com/python-ldap/python-ldap/commit/77e934e88766002e77462d541b6e9c9599c7d410 Yes, "if (valuelist != NULL) Py_INCREF(valuelist);" fixed the ref counting bug and segfault. Does the build from https://src.fedoraproject.org/rpms/python-pyldap/pull-request/3 aka https://koji.fedoraproject.org/koji/taskinfo?taskID=27231248 fix the problem? Yes, the patched version fixes the problem. I can confirm that my reproducer script crashes with python3-pyldap-2.4.37-3.fc27.x86_64 and succeeds with python3-pyldap-2.4.37-4.fc27.x86_64.rpm. python-pyldap-2.4.37-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-abe52b6663 python-pyldap-2.4.37-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-abe52b6663 python-pyldap-2.4.37-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |