Univention Bugzilla – Bug 35841
Fix python-ldap-2.4.15 + patch
Last modified: 2014-11-26 06:55:46 CET
Created attachment 6101 [details] Fix python-ldap recursive locking +++ This bug was initially created as a clone of Bug #35741 comment 6 +++ python-ldap_2.4.9 broke it: * ldapobject.ReconnectLDAPObject.reconnect() now does kind of an internal locking to pause other threads while reconnecting is pending. UCS-4.0 uses 2.4.10, which is the latest version in Debian. Debian-RFP 2.4.15: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742487> May-be fixed by 2.4.13: <https://mail.python.org/pipermail/python-ldap/2014q1/003327.html> * ldapobject.ReconnectLDAPObject now uses internal class-wide lock for serializing reconnects * Method signature of ReconnectLDAPObject.reconnect() changed to be able to call it with separate retry_max and retry_delay values See <https://mail.python.org/pipermail/python-ldap/2013q3/003265.html> for a patch; this alone does not seem to fix the bug. A quick test with a self-compiled 2.4.15 also failed: The process is then multi-threaded and hangs in some lock. The thread links to <https://bugs.launchpad.net/ldapuserfolder/+bug/650371>. The attach patch fixed the dead-lock. It was sent upstream, but not yet accepted as the upstream other claims the bug should be fixed with 2.4.14 already, but isn't with my test of 2.4.15.
Patch was accepted upstream: <http://python-ldap.cvs.sourceforge.net/viewvc/python-ldap/python-ldap/Lib/ldap/ldapobject.py?r1=1.139&r2=1.141> Patch sent also to Debian: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742487> Package: python-ldap Version: 2.4.15-0.1.34.201409100905 Branch: ucs_4.0-0 No change log entry added, as python-ldap was updated to 2.4.10 with Debian-Wheezy anyway.
Michael Stöder just released 2.4.16 with my patch included and asks to update to that version: Package: python-ldap Version: 2.4.16-0.1.35.201409101437 Branch: ucs_4.0-0
OK - python-ldap 2.4.16 in UCS 4.0 OK - patch is upstream OK - 25reconnect_uldap OK - Changelog
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".