Issue 7923 - constraint_close / free problems on olcDbDirectory change
Summary: constraint_close / free problems on olcDbDirectory change
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: 2014-08-20 19:22 UTC by ebackes@symas.com
Modified: 2014-10-23 07:33 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 ebackes@symas.com 2014-08-20 19:22:58 UTC
Full_Name: Emily Backes
Version: RE24
OS: 
URL: 
Submission from: (NULL) (50.113.67.84)


Changing olcDbDirectory on a live server with overlays makes a mess; much like
the recent ITS#7906, constraint has a problem with open/close management.

constraint_close calls constraint_free( ap, 1 ) which wipes everything out, but
the state is not restored when things are restarted.  In particular, a second
olcDbDirectory mod results in constraint_free being called again with garbage.
Comment 1 Howard Chu 2014-08-20 20:11:04 UTC
ebackes@symas.com wrote:
> Full_Name: Emily Backes
> Version: RE24
> OS:
> URL:
> Submission from: (NULL) (50.113.67.84)
>
>
> Changing olcDbDirectory on a live server with overlays makes a mess; much like
> the recent ITS#7906, constraint has a problem with open/close management.
>
> constraint_close calls constraint_free( ap, 1 ) which wipes everything out, but
> the state is not restored when things are restarted.  In particular, a second
> olcDbDirectory mod results in constraint_free being called again with garbage.

Should note this is related to ITS#7906. I guess we have no choice now but to 
revisit all of the remaining overlays in RE24.

-- 
   -- 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 2 Howard Chu 2014-08-20 21:39:27 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 3 Quanah Gibson-Mount 2014-08-21 18:50:21 UTC
changed notes
changed state Test to Release
Comment 4 OpenLDAP project 2014-10-23 07:33:03 UTC
fixed in master
fixed in RE25
fixed in RE24
Comment 5 Quanah Gibson-Mount 2014-10-23 07:33:03 UTC
changed notes
changed state Release to Closed