[Date Prev][Date Next] [Chronological] [Thread] [Top]

Eternal while loop in back-bdb/id2entry.c (ITS#2672)



Full_Name: Herman Meerlo
Version: 2.1.22
OS: RedHat 9.0
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (212.136.56.8)


During a load test I discovered a bug in the file back-bdb/id2entry.c. This bug
causes the slapd to enter a highload state where it is hogging all cpu states.
Found in OpenLDAP 2.1.22 with BerkeleyDB 4.1.25 backend. 
The variable on line 135 should be declared static. Now it is re-initialized to
0 for every iteration of the while loop so it will never exit this loop. I don't
know a reproduction scenario because I found it in the morning in this state
after an allnight test.

Please contact me for any further info needed.