OpenLDAP (slapd) is broken in Ubuntu 22.04 after upgrade to version 2.5.17+dfsg-0ubuntu0.22.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu 22.04, OpenLDAP (slapd) is broken after upgrade to version 2.5.17+
To reproduce the crash, it is sufficient to just upgrade OpenLDAP (slapd) to version 2.5.17+
For evidence, here is stack trace:
Starting program: /usr/sbin/slapd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Program received signal SIGSEGV, Segmentation fault.
__strlen_evex () at ../sysdeps/
77 ../sysdeps/
(gdb) backtrace
#0 __strlen_evex () at ../sysdeps/
#1 0x00007f32b3287489 in ber_strdup_x () from /lib/x86_
#2 0x00007f32b32c4b07 in ldap_charray_dup () from /lib/x86_
#3 0x00007f32b3220566 in slapi_int_
#4 0x000055579bcb403f in ?? ()
#5 0x000055579bcbea03 in config_set_vals ()
#6 0x000055579bcc65c5 in config_parse_add ()
#7 0x000055579bcbceba in ?? ()
#8 0x000055579bcbde0b in ?? ()
#9 0x000055579bcdc738 in ?? ()
#10 0x000055579bce6ae8 in slap_send_
#11 0x000055579bd5f941 in ?? ()
#12 0x000055579bd5f9dd in ?? ()
#13 0x000055579bd60866 in ?? ()
#14 0x000055579bd608a0 in ?? ()
#15 0x000055579bcbad31 in ?? ()
#16 0x000055579bcbb05b in read_config ()
#17 0x000055579bcb0063 in main ()
affects: | ubuntu → openldap (Ubuntu) |
Hello and thank you for reporting this bug. Let me confirm that I have understood your steps correctly:
* You had a Jammy system running slapd version 2.5.16+ dfsg-0ubuntu0, and it was working fine.
* You upgraded the system, which included updating several packages, including slapd (to version 2.5.17+ dfsg-0ubuntu0. 22.04.1, indicating that you have jammy-updates enabled).
* After the upgrade, you noticed the crash. You rolled back to the pre-upgrade snapshot, and everything worked fine again.
* You then tried updating *only* slapd (using `apt update` and `apt install slapd`), and it started crashing again. Therefore, you deduce that the problem is with slapd.
Is this correct?
There is a new version of slapd available in jammy-proposed. Can you please try installing it and check if the crash still occurs? For instructions on how to enable -proposed and selectively install packages from it, please see this guide.
I tried to reproduce your issue by installing slapd 2.5.17+ dfsg-0ubuntu0. 22.04.1 and running /usr/sbin/slapd, but it did not crash for me. This version of slapd was released to jammy-updates in March 2024, so it is unlikely to be an issue affecting the most common configurations.
[1] https:/ /wiki.ubuntu. com/Testing/ EnableProposed