ldap_do_free_request: Assertion `lr->lr_refcnt == 1' failed

Bug #1973137 reported by Sebastian Mendyka
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I dont know it is openldap related:

Operation System: Ubuntu 22.04
Packages:
sssd-ldap 2.6.3-1ubuntu3
libldap-2.5-0:amd64 2.5.11+dfsg-1~exp1ubuntu3
libldap-common 2.5.11+dfsg-1~exp1ubuntu3

I have configured sssd to use LDAPS over HAPROXY. With the latest Debian Version and Ubuntu 20.04 i have no error.

But with Ubuntu 22.04 i randomly cant login. Syslog show this error:

May 12 06:57:55 ingress2 sssd[870590]: sssd_be: ../../../../libraries/libldap/request.c:970: ldap_do_free_request: Assertion `lr->lr_refcnt == 1' failed.

If i configured SSSD to use directly our LDAP Server, its working.

Regards Sebastian

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1973137/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → openldap (Ubuntu)
Revision history for this message
Lena Voytek (lvoytek) wrote :

Hello Sebastian,

Thank you for taking the time to make this bug report. The error you are encountering shows up through openldap, so marking the bug under openldap is fine. It may be due to multiple sources attempting to free a request. Does this error show up every time you attempt to log in?

Thanks

Revision history for this message
Sebastian Mendyka (sebastianmk) wrote :

Hi Lena,

i found the Problem after some time:

I dont know why but Ubuntu 22.04 needs longer to take the LDAP Request. This is also the answer, why ldap without HAPROXY is working.

Now i have set HAPROXY timeout to 5sec and it is working now. With Ubuntu 20.04 (same configuration) ldap Login with timeout of "1sec" is possible.

Regards
Sebastian

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

You mentioned it is taking longer to process the request but it is working. So I am setting the priority to Low and I am adding this bug to the server team backlog. It will be looked at once we find some time.

Changed in openldap (Ubuntu):
importance: Undecided → Low
Changed in openldap (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.