https://bugs.openldap.org/show_bug.cgi?id=10047

--- Comment #2 from Howard Chu <h...@openldap.org> ---
I've identified two potential problems and we need to check that both get
fixed.

1) slapindex should delete the index checkpoint table after it completes, but
doesn't

You can verify this by doing an `mdb_dump -s ixck` on the offending DB; on a
normal DB that table should be empty or absent.

2) since the index checkpoint says there's still work to do, slapd will restart
the online indexer on next startup. It looks like it's giving it an invalid
backend struct when init.c:mdb_db_open() calls mdb_start_index_task(). Probably
it used a fake be struct from an overlay instead of the real be struct.

For (2) you can change the `mdb_start_index_task( be )` to
`mdb_start_index_task( be->be_self )`

That should fix the crash, but slapd shouldn't even need to start the indexer
at all. Please verify that the crash is fixed, and I'll patch the slapindex
code in a further update.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to