[Date Prev][Date Next]
(ITS#7167) regression, ldap_result() returns -1
Full_Name: Jan Vcelak
Submission from: (NULL) (22.214.171.124)
There is a possible regression caused by
SSSD's event loop listens for events on a file descriptor retrieved using
ber_sockbuf_ctrl(sb, LBER_SB_OPT_GET_FD, &ber_fd). If there are some data to be
read, processing using ldap_result is triggered. (Internally, tevent from Samba
project is used, which uses epoll.) But sometimes, ldap_result() returns -1
error code. It seems that the descriptor is marked as readable untimely.
This problem is not present with OpenLDAP 2.4.26, it appears with all future
versions. When the mentioned commit is reverted, everything works well.
Original report in our Bugzilla:
It was also reported in Ubuntu:
And i similar report, hopefully with the same cause: