Issue 8109 - SEGFAULT mdb_cursor_del mdb_cursor_get(MDB_PREV)
Summary: SEGFAULT mdb_cursor_del mdb_cursor_get(MDB_PREV)
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-19 16:28 UTC by rouzier@gmail.com
Modified: 2015-07-02 17:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rouzier@gmail.com 2015-04-19 16:28:09 UTC
Full_Name: James Rouzier
Version: LMDB mdb.master
OS: linux
URL: https://gist.github.com/rouzier/2d268a2f24e82e00f498
Submission from: (NULL) (70.81.32.80)


When iterating with a cursor using MDB_PREV and deleting entries using
mdb_cursor_del.
It will crash when calling mdb_cursor_get after the last entry was deleted.
I am using the latest version of LMDB in git.
Comment 1 Howard Chu 2015-04-23 04:53:17 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Howard Chu 2015-04-23 04:53:43 UTC
rouzier@gmail.com wrote:
> Full_Name: James Rouzier
> Version: LMDB mdb.master
> OS: linux
> URL: https://gist.github.com/rouzier/2d268a2f24e82e00f498
> Submission from: (NULL) (70.81.32.80)
>
>
> When iterating with a cursor using MDB_PREV and deleting entries using
> mdb_cursor_del.
> It will crash when calling mdb_cursor_get after the last entry was deleted.
> I am using the latest version of LMDB in git.

Thanks for the report, fixed now in git.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 Quanah Gibson-Mount 2015-04-23 17:50:57 UTC
changed notes
changed state Test to Release
Comment 4 OpenLDAP project 2015-07-02 17:50:40 UTC
fixed in mdb.master
fixed in mdb.0.9
Comment 5 Quanah Gibson-Mount 2015-07-02 17:50:40 UTC
changed notes
changed state Release to Closed