[Date Prev][Date Next]
(ITS#4254) back-hdb deadlock under load
Full_Name: Gaël Roualland
Submission from: (NULL) (220.127.116.11)
While benchmarking back-hdb on a large test directory running OpenLDAP 2.3.13,
after a while all threads stop responding and the slapd process comes to a
For the purpose of this bug report, I ran the test with slapd configured to run
with only 4 threads, and I have attached to the locked threads with gdb.
Relevant parts of the gdb session are in the uploaded file.
As you can see, the 4 worker threads are competing for the lru mutex and cache
rwlock. It looks like :
- thread 6 wants to lock the lru mutex at cache.c:442, while it has the rwlock
locked from cache.c:419
- thread 7 wants to lock the rwlock at cache.c:602, while it has the lru mutex
locked from cache.c:823