[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
LMDB: Assertion 'mc->mc_flags & C_INITIALIZED' with MDB_NEXT after mdb_cursor_del
- To: openldap-technical@openldap.org
- Subject: LMDB: Assertion 'mc->mc_flags & C_INITIALIZED' with MDB_NEXT after mdb_cursor_del
- From: Argyrios Kyrtzidis <akyrtzi@gmail.com>
- Date: Mon, 18 Apr 2016 00:43:22 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=Pdjt/Kk07kWfd3Rkso/Dlr48C9z6xNF5hmZlVtgvLTc=; b=gAX+oOf0fidMnb76mcJ54fTmh8VElRQeed4dETnTyOmr8i/rC9LdWDeg+Y9axhhagM IFPkapwKVWBWxZ6DvS82eGNj/N9LEdaCW/eSscdBewCeRKr6/xyl23xMEUKsiooX+vuG lnqU12ElI4m35K2K3QfWnsW4Pg7iKxiWu4ey3HSpQprcDcRACs0Oank3Jpp0D8r/ZweV AKhJnNSs9q/3yXJ7chV2VAuCezPYtUK9w21yTQ+dpvGp+DUal+yG8/ZxlFNGVwfK8Eu9 eazJOGU30Y2OW/VCRppxnEbMu8Mfn+5sqdI/QS874vqm5n0btMk+RxSiW5WiU8b+teft 7HoA==
- In-reply-to: <5701E105.5030902@symas.com>
- References: <77C4334E-A6FE-4802-B7AD-C69D0BAEFD5D@gmail.com> <5701E105.5030902@symas.com>
Hi,
With latest lmdb source (github mirror: 8fff90db7ed1e650395f39f9e8b22673aa74aa2b), there is an assertion hit when deleting the cursor and then doing mdb_cursor_get(MDB_NEXT) and 'entering' DUPSORT items.
To demonstrate see attached diff which modifies mtest3.c. When run you see this:
mdb.c:6424: Assertion 'mc->mc_flags & C_INITIALIZED' failed in mdb_cursor_next()
Is this a bug or am I doing something wrong ?
Attachment:
assertion.diff
Description: Binary data