Issue 8289 - slapd seg faults with MOD_INCREMENT on derived attribute
Summary: slapd seg faults with MOD_INCREMENT on derived attribute
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-10-26 22:56 UTC by Michael Ströder
Modified: 2015-11-30 18:21 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 Michael Ströder 2015-10-26 22:56:48 UTC
Full_Name: 
Version: re24
OS: openSUSE Linux
URL: 
Submission from: (NULL) (213.240.180.113)


Attribute type declaration 'bar' with Integer syntax.

'foo' SUP 'bar' makes slapd crash when sending LDAP_MOD_INCREMENT on 'foo'.

LDAP_MOD_INCREMENT on 'foo' works if it's not SUP 'bar' but directly declared
with Integer syntax.
Comment 1 Michael Ströder 2015-10-26 23:01:05 UTC
The last lines before crash:

562eb075 => access_allowed: delete access to
"cn=test-hotp-token-42,ou=Testing,dc=stroeder,dc=de" "oathFailureCount" requested
562eb075 => dn: [5] dc=stroeder,dc=de
562eb075 => acl_get: [5] matched
562eb075 => acl_get: [5] attr oathFailureCount
562eb075 => acl_mask: access to entry
"cn=test-hotp-token-42,ou=Testing,dc=stroeder,dc=de", attr "oathFailureCount"
requested
562eb075 => acl_mask: to all values by "cn=michael
ströder+mail=michael@stroeder.com,ou=private,dc=stroeder,dc=de", (=0)
562eb075 <= check a_group_pat: cn=slapd admins,ou=groups,dc=stroeder,dc=de
562eb075 <= acl_mask: [1] applying manage(=mwrscxd) (stop)
562eb075 <= acl_mask: [1] mask: manage(=mwrscxd)
562eb075 => slap_access_allowed: delete access granted by manage(=mwrscxd)
562eb075 => access_allowed: delete access granted by manage(=mwrscxd)
562eb075 => access_allowed: result not in cache (oathFailureCount)
562eb075 => access_allowed: add access to
"cn=test-hotp-token-42,ou=Testing,dc=stroeder,dc=de" "oathFailureCount" requested
562eb075 => dn: [5] dc=stroeder,dc=de
562eb075 => acl_get: [5] matched
562eb075 => acl_get: [5] attr oathFailureCount
562eb075 => acl_mask: access to entry
"cn=test-hotp-token-42,ou=Testing,dc=stroeder,dc=de", attr "oathFailureCount"
requested
562eb075 => acl_mask: to value by "cn=michael
ströder+mail=michael@stroeder.com,ou=private,dc=stroeder,dc=de", (=0)
562eb075 <= check a_group_pat: cn=slapd admins,ou=groups,dc=stroeder,dc=de
562eb075 <= acl_mask: [1] applying manage(=mwrscxd) (stop)
562eb075 <= acl_mask: [1] mask: manage(=mwrscxd)
562eb075 => slap_access_allowed: add access granted by manage(=mwrscxd)
562eb075 => access_allowed: add access granted by manage(=mwrscxd)
562eb075 acl: internal mod entryCSN: modify access granted
562eb075 acl: internal mod modifiersName: modify access granted
562eb075 acl: internal mod modifyTimestamp: modify access granted
562eb075 mdb_modify_internal: increment oathFailureCount
Segmentation fault

Comment 2 Howard Chu 2015-10-27 03:42:46 UTC
michael@stroeder.com wrote:
> Full_Name:
> Version: re24
> OS: openSUSE Linux
> URL:
> Submission from: (NULL) (213.240.180.113)
>
>
> Attribute type declaration 'bar' with Integer syntax.
>
> 'foo' SUP 'bar' makes slapd crash when sending LDAP_MOD_INCREMENT on 'foo'.
>
> LDAP_MOD_INCREMENT on 'foo' works if it's not SUP 'bar' but directly declared
> with Integer syntax.
>
>
Fixed now in 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 3 Howard Chu 2015-10-27 03:43:45 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 4 Quanah Gibson-Mount 2015-10-27 17:34:53 UTC
changed notes
changed state Test to Release
Comment 5 OpenLDAP project 2015-11-30 18:21:50 UTC
fixed in master
fixed in RE25
fixed in RE24 (2.4.43)
Comment 6 Quanah Gibson-Mount 2015-11-30 18:21:50 UTC
changed notes
changed state Release to Closed