[karmic] [PATCH] slapd hangs at 100% cpu and is unkillable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| openldap |
Fix Committed
|
Undecided
|
Unassigned | |
| openldap (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
slapd-2.
Steps to reproduce:
1. apt-get install slapd
2. "ldapmodify -H ldapi:/// -Y EXTERNAL < base.ldif" (file attached to this ticket)
3. the ldapmodify hangs and slapd consumes all available cpu
4. slapd can now only be killed with the -9 signal
I tried to cut down the base.ldif as much as possible. I had a much bigger ldif file before.
I suspect a race or an ordering issue, because removing any one of the overlays makes the ldapmodify work.
Andreas Hasenack (ahasenack) wrote : | #1 |
Andreas Hasenack (ahasenack) wrote : | #2 |
Andreas Hasenack (ahasenack) wrote : | #3 |
I just built a 2.4.19 package for karmic and it exhibits the same problem.
Chuck Short (zulcss) wrote : | #4 |
I was able to reproduce this.
Regards
chuck
Changed in openldap (Ubuntu): | |
status: | New → Confirmed |
Andreas Hasenack (ahasenack) wrote : | #5 |
It also happens with openldap-2.4.20 which was just released.
Andreas Hasenack (ahasenack) wrote : | #6 |
Attached is a gdb backtrace with debugging symbols from the hung process. I'll also attach the output of slapd -d -1, and probably open a bug upstream.
Andreas Hasenack (ahasenack) wrote : | #7 |
And now the slapd -d -1 output
Andreas Hasenack (ahasenack) wrote : | #8 |
To help upstream to reproduce this bug, I'm also attaching a tarball containing the whole slapd.d contents as they are before running the ldapmodify command that triggers the issue. There is no database yet defined except the cn=config one.
Andreas Hasenack (ahasenack) wrote : | #9 |
ITS 6408 filed upstream
Howard Chu (hyc) wrote : | #10 |
Fixed in CVS slapd/bconfig.c 1.402
Andreas Hasenack (ahasenack) wrote : | #11 |
I applied the diff the Howard mentioned (http://
Thanks!
Changed in openldap: | |
status: | New → Fix Committed |
Andreas Hasenack (ahasenack) wrote : | #12 |
The same patch also worked in 2.4.18, but it applied with some offsets.
summary: |
- [karmic] slapd hangs at 100% cpu and is unkillable + [karmic] [PATCH] slapd hangs at 100% cpu and is unkillable |
Chuck Short (zulcss) wrote : | #13 |
This has been fixed in lucid.
Regards
chuck
Changed in openldap (Ubuntu): | |
status: | Confirmed → Fix Released |
Interesting, looks like ordering is an issue.
In this order, slapd hangs: refint, olcDatabase= {1}hdb, cn=config" syncprov, olcDatabase= {1}hdb, cn=config"
adding new entry "olcOverlay=
adding new entry "olcOverlay=
adding new entry "o=example,c=us" <---- HANGS
In this other order, it works: syncprov, olcDatabase= {1}hdb, cn=config" refint, olcDatabase= {1}hdb, cn=config"
adding new entry "olcOverlay=
adding new entry "olcOverlay=
adding new entry "o=example,c=us"
Note: when testing again, you need to clear the database and the config, or just purge slapd and reinstall. Running that ldapmodify command twice in a row won't work.