Univention Bugzilla – Bug 31078
assertion failure in dhcpd
Last modified: 2017-04-04 18:28:36 CEST
DC Master with UCS 3.1-0 errata 85 + UCS@school multi server + DHCP server + UCC: ps shows an assertion error in dhcpd: 1061 ? S 0:09 runsvdir -P /etc/service log: .........................................................................................................................................................................................................................................dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed.?dhcpd: getentry.c:36: ldap_first_entry: Assertion `chain != ((void *)0)' failed.? Package versions: isc-dhcp-client 4.1.1-P1-15.19.201211131616 isc-dhcp-common 4.1.1-P1-15.19.201211131616 isc-dhcp-server 4.1.1-P1-15.19.201211131616 isc-dhcp-server-ldap 4.1.1-P1-15.19.201211131616 univention-dhcp 7.0.1-1.515.201210101440
This happens when the LDAP server can't be reached during startup of isc-dhcpd, for example during an upgrade. The underlying problem is, that set_ldap_real_base_dn() does no error checking: 143 + status = ldap_search_ext_s(ld, "", scope, filter, attrs, 0, NULL, NULL, NULL, 0, &res); The not running local slapd is not detected, as the no synchronous command is run first: - the connection is un-encrypted - authentication is only done later There also is a memory leak: ldap_msgfree(res); r17021 | Bug #31078 dhcp: add error handling / fix memory leak Package: isc-dhcp Version: 4.3.1-6+deb8u2A~4.2.0.201612190954 Branch: ucs_4.2-0 r75362 | Bug #31078 dhcp: add error handling / fix memory leak
r17022 | Bug #31078 dhcp: add error handling / fix memory leak free_ber_buf() -> free_ber() NOT buf Package: isc-dhcp Version: 4.3.1-6+deb8u2A~4.2.0.201612191043 Branch: ucs_4.2-0
Code review: OK Tests: OK Changelog: OK
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".