Paul B. Henson wrote:
Any thoughts on what might be going on or how I can debug it to track down exactly what is causing it? There was obviously a lot more debug info in the logs that I didn't include, but none of it jumped out to me as "smoking gun".
Try the search again with -d5. Also include the lines showing which attribute it's checking in the index. e.g.:
6171fcb7.1be5a183 0x7f28b65fd640 search_candidates: base="dc=example,dc=com" (0x00000001) scope=2 6171fcb7.1be5b227 0x7f28b65fd640 => mdb_equality_candidates (objectClass) 6171fcb7.1be5cfe4 0x7f28b65fd640 => key_read 6171fcb7.1be5e088 0x7f28b65fd640 mdb_idl_fetch_key: [b49d1940] 6171fcb7.1be5faff 0x7f28b65fd640 <= mdb_index_read: failed (-30798) 6171fcb7.1be60a00 0x7f28b65fd640 <= mdb_equality_candidates: id=0, first=0, last=0 6171fcb7.1be61901 0x7f28b65fd640 => mdb_equality_candidates (sn) 6171fcb7.1be62f1a 0x7f28b65fd640 => key_read 6171fcb7.1be63fbf 0x7f28b65fd640 mdb_idl_fetch_key: [03915b69] 6171fcb7.1be659a9 0x7f28b65fd640 <= mdb_index_read 2 candidates 6171fcb7.1be66a94 0x7f28b65fd640 <= mdb_equality_candidates: id=2, first=8, last=9 6171fcb7.1be68cae 0x7f28b65fd640 mdb_search_candidates: id=2 first=8 last=9