Issue 7912 - pcache database object segfaults when initialized with olcDbIndex
Summary: pcache database object segfaults when initialized with olcDbIndex
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.39
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-30 18:43 UTC by nvoutsin@gmail.com
Modified: 2014-10-23 07:32 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 nvoutsin@gmail.com 2014-07-30 18:43:19 UTC
Full_Name: Nikos Voutsinas
Version: 2.4.39
OS: Debian
URL: hthttp://users.uoa.gr/~nvoutsin/OpenLdap_ITS/add-ldap-pcache-config.working.ldif  http://users.uoa.gr/~nvoutsin/OpenLdap_ITS/add-ldap-pcache-config.not_working.ldif 
Submission from: (NULL) (141.237.8.119)


When creating an ldap/pcache stack, slapd segfaults if the db for the pcache is
initialized with an entry that includes the olcDbIndex. On the contrary if the
pcache db entry is initialized with out the olcDbIndex but is later modified
with the exact same olcDbIndex values, operation succeeds.

From the attached ldifs the add-ldap-pcache-config.working.ldif succeeds and the
add-ldap-pcache-config.not_working.ldif cause slapd to segfault.
Comment 1 Howard Chu 2014-07-31 11:34:04 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2014-07-31 11:43:29 UTC
changed notes
changed state Test to Release
Comment 3 Howard Chu 2014-07-31 18:33:32 UTC
nvoutsin@noc.uoa.gr wrote:
> Full_Name: Nikos Voutsinas
> Version: 2.4.39
> OS: Debian
> URL: hthttp://users.uoa.gr/~nvoutsin/OpenLdap_ITS/add-ldap-pcache-config.working.ldif  http://users.uoa.gr/~nvoutsin/OpenLdap_ITS/add-ldap-pcache-config.not_working.ldif
> Submission from: (NULL) (141.237.8.119)
>
>
> When creating an ldap/pcache stack, slapd segfaults if the db for the pcache is
> initialized with an entry that includes the olcDbIndex. On the contrary if the
> pcache db entry is initialized with out the olcDbIndex but is later modified
> with the exact same olcDbIndex values, operation succeeds.
>
>>From the attached ldifs the add-ldap-pcache-config.working.ldif succeeds and the
> add-ldap-pcache-config.not_working.ldif cause slapd to segfault.

Thanks for the report, fixed in git master.


-- 
   -- 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 4 OpenLDAP project 2014-10-23 07:32:27 UTC
fixed in master
fixed in RE24
fixed in RE25
Comment 5 Quanah Gibson-Mount 2014-10-23 07:32:27 UTC
changed notes
changed state Release to Closed