https://bugs.openldap.org/show_bug.cgi?id=9310
Issue ID: 9310 Summary: slapd segmends when creating a new mdb database Product: OpenLDAP Version: 2.4.50 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: backends Assignee: bugs@openldap.org Reporter: p.childs@qmul.ac.uk Target Milestone: ---
I'm attempting to upgrade out current openldap server from our rather old openldap running under SL6 onto something slightly more modern.
I'm looking to start using multimaster and mdb rather than bdb etc etc.
When I try and enable delta-replication to use mdb using
I'm getting a segmentation fault.
Thanks in advance.
Peter Childs
[ 5375.411805] slapd[8207]: segfault at 50 ip 00007fdf8846eb6c sp 00007fdf6da4cc90 error 4 in liblber-2.4.so.2.10.13[7fdf88466000+e000]
5f311f55 send_ldap_result: err=0 matched="" text="" 5f311f55 connection_get(15) 5f311f55 conn=1000 op=1 do_add: dn (olcDatabase={3}mdb,cn=config) => ldap_bv2dn(olcDatabase={3}mdb,cn=config,0) <= ldap_bv2dn(olcDatabase={3}mdb,cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(olcDatabase={3}mdb,cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(olcDatabase={3}mdb,cn=config)=0 => ldap_bv2dn(cn=accesslog,0) <= ldap_bv2dn(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_bv2dn(cn=accesslog,0) <= ldap_bv2dn(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_bv2dn(cn=config,0) <= ldap_bv2dn(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 => ldap_bv2dn(cn=config,0) <= ldap_bv2dn(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 => ldap_bv2dn(cn=accesslog,0) <= ldap_bv2dn(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_bv2dn(cn=config,0) <= ldap_bv2dn(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 5f311f55 register_at: AttributeType "( olmMDBAttributes:1 NAME ( 'olmMDBPagesMax' ) DESC 'Maximum number of pages' SUP monitorCounter NO-USER-MODIFICATION USAGE dSAOperation )": Inconsistent duplicate attributeType, 5f311f55 mdb_monitor_initialize: register_at failed for attributeType (( olmMDBAttributes:1 NAME ( 'olmMDBPagesMax' ) DESC 'Maximum number of pages' SUP monitorCounter NO-USER-MODIFICATION USAGE dSAOperation )) => ldap_bv2dn(cn=accesslog,0) <= ldap_bv2dn(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_bv2dn(cn=accesslog,0) <= ldap_bv2dn(cn=accesslog)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=accesslog)=0 => ldap_bv2dn(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk,0) <= ldap_bv2dn(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk)=0 => ldap_bv2dn(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk,0) <= ldap_bv2dn(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk)=0 => ldap_bv2dn(cn=config,0) <= ldap_bv2dn(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 => ldap_dn2bv(272) <= ldap_dn2bv(cn=config)=0 5f311f55 mdb_db_open: "cn=accesslog" Segmentation fault (core dumped)
this is after apply the following ldif
dn: olcDatabase={3}mdb,cn=config changetype: add objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: {3}mdb olcDbDirectory: /var/lib/ldap-accesslog olcSuffix: cn=accesslog olcAccess: {0}to dn.subtree="cn=accesslog" by dn.exact="cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk" read olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcRootDN: cn=config olcLimits: dn.exact="cn=replica,dc=hpc,dc=qmul,dc=ac,dc=uk" time=unlimited size=unlimited olcSizeLimit: unlimited olcTimeLimit: unlimited olcMonitoring: TRUE olcDbCheckpoint: 0 0 olcDbIndex: entryCSN eq olcDbIndex: objectClass eq olcDbIndex: reqEnd eq olcDbIndex: reqResult eq olcDbIndex: reqStart eq olcDbIndex: reqDN eq olcDbMode: 0600 olcDbSearchStack: 16 olcDbMaxsize: 85899345920