Openldap segfaults on Opteron system when replication is enabled and code is compiled with -march=opteron CFLAG

NOTE: This issue is resolved in a later version of openldap. For gentoo users, the fix is mentioned in a technical post on my website here: http://www.skyleach.com/?p=45.

		The mailing list claims I had too much info in the origional email so I'm having to post it here.
		

Commands to reproduce


starting the server: prod-ldap-knox03 root # /usr/lib/openldap/slapd -f /etc/openldap/slapd.conf -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock' -d 1 > openldap_ddebug.log 2>&1 starting slurpd: prod-ldap-knox03 root # /usr/lib/openldap/slurpd -d 256 -f /etc/openldap/slapd.conf @(#) $OpenLDAP: slurpd 2.1.25 (Jan 26 2005 11:16:37) $ root@prod-ldap-knox03:/var/tmp/portage/openldap-2.1.26/work/openldap-2.1.26/servers/slurpd running the add: prod-ldap-knox03 root # ldapadd -h localhost -D cn=manager,dc=petconnect,dc=com -x -W -f addtest.ldif -v ldap_init( localhost, 0 ) Enter LDAP Password: add objectclass: inetorgperson add uid: mattest add cn: Matt Gregory add sn: Gregory add gn: Matthew add userPassword: booga adding new entry "uid=mattest,ou=System Users,dc=petconnect,dc=com" modify complete

Server debug output


@(#) $OpenLDAP: slapd 2.1.25 (Jan 26 2005 11:16:27) $
        root@prod-ldap-knox03:/var/tmp/portage/openldap-2.1.26/work/openldap-2.1.26/servers/slapd
daemon_init: listen on ldaps://
daemon_init: listen on ldap://
daemon_init: listen on ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock
daemon_init: 3 listeners to open...
ldap_url_parse_ext(ldaps://)
daemon: initialized ldaps://
ldap_url_parse_ext(ldap://)
daemon: initialized ldap://
ldap_url_parse_ext(ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock)
daemon: initialized ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock
daemon_init: 5 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
perl backend open
>>> dnNormalize: 
=> ldap_bv2dn(cn=Subschema,0)
<= ldap_bv2dn(cn=Subschema,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=subschema,272)=0
<<< dnNormalize: 
>>> dnPrettyNormal: 
=> ldap_bv2dn(dc=petconnect,dc=com,0)
<= ldap_bv2dn(dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=Manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=Manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
ldap_url_parse_ext(ldap://10.80.2.182:389)
>>> dnNormalize: 
=> ldap_bv2dn(ou=System Users,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Users,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system users,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system admins,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=User Groups,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=User Groups,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=user groups,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system admins,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=Default Groups,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=Default Groups,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=default groups,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system admins,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=User Roles,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=User Roles,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=user roles,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Admins,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system admins,dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(dc=petconnect,dc=com,0)
<= ldap_bv2dn(dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnNormalize: 
=> ldap_bv2dn(dc=petconnect,dc=com,0)
<= ldap_bv2dn(dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
<<< dnNormalize: 
>>> dnPrettyNormal: 
=> ldap_bv2dn(dc=cti-pet,dc=com,0)
<= ldap_bv2dn(dc=cti-pet,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=cti-pet,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=cti-pet,dc=com,272)=0
<<< dnPrettyNormal: , 
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=root,dc=cti-pet,dc=com,0)
<= ldap_bv2dn(cn=root,dc=cti-pet,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=root,dc=cti-pet,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=root,dc=cti-pet,dc=com,272)=0
<<< dnPrettyNormal: , 
matching_rule_use_init
    1.2.840.113556.1.4.804 (integerBitOrMatch): matchingRuleUse: ( 1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES ( mailPreferenceOption $ supportedLDAPVersion ) )
    1.2.840.113556.1.4.803 (integerBitAndMatch): matchingRuleUse: ( 1.2.840.113556.1.4.803 NAME 'integerBitAndMatch' APPLIES ( mailPreferenceOption $ supportedLDAPVersion ) )
    1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match): matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' APPLIES ( janetMailbox $ cNAMERecord $ sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ email $ associatedDomain $ dc $ mail $ altServer ) )
    1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match): matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' APPLIES ( janetMailbox $ cNAMERecord $ sOARecord $ nSRecord $ mXRecord $ mDRecord $ aRecord $ email $ associatedDomain $ dc $ mail $ altServer ) )
    2.5.13.34 (certificateExactMatch): matchingRuleUse: ( 2.5.13.34 NAME 'certificateExactMatch' APPLIES ( cACertificate $ userCertificate ) )
    2.5.13.30 (objectIdentifierFirstComponentMatch): matchingRuleUse: ( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES ( supportedApplicationContext $ ldapSyntaxes $ matchingRuleUse $ objectClasses $ attributeTypes $ matchingRules $ supportedFeatures $ supportedExtension $ supportedControl $ structuralObjectClass $ objectClass ) )
    2.5.13.29 (integerFirstComponentMatch): matchingRuleUse: ( 2.5.13.29 NAME 'integerFirstComponentMatch' APPLIES ( mailPreferenceOption $ supportedLDAPVersion ) )
    2.5.13.27 (generalizedTimeMatch): matchingRuleUse: ( 2.5.13.27 NAME 'generalizedTimeMatch' APPLIES ( modifyTimestamp $ createTimestamp ) )
    2.5.13.24 (protocolInformationMatch): matchingRuleUse: ( 2.5.13.24 NAME 'protocolInformationMatch' APPLIES protocolInformation )
    2.5.13.23 (uniqueMemberMatch): matchingRuleUse: ( 2.5.13.23 NAME 'uniqueMemberMatch' APPLIES uniqueMember )
    2.5.13.22 (presentationAddressMatch): matchingRuleUse: ( 2.5.13.22 NAME 'presentationAddressMatch' APPLIES presentationAddress )
    2.5.13.20 (telephoneNumberMatch): matchingRuleUse: ( 2.5.13.20 NAME 'telephoneNumberMatch' APPLIES ( pager $ mobile $ homePhone $ telephoneNumber ) )
    2.5.13.17 (octetStringMatch): matchingRuleUse: ( 2.5.13.17 NAME 'octetStringMatch' APPLIES userPassword )
    2.5.13.16 (bitStringMatch): matchingRuleUse: ( 2.5.13.16 NAME 'bitStringMatch' APPLIES x500UniqueIdentifier )
    2.5.13.14 (integerMatch): matchingRuleUse: ( 2.5.13.14 NAME 'integerMatch' APPLIES ( mailPreferenceOption $ supportedLDAPVersion ) )
    2.5.13.13 (booleanMatch): matchingRuleUse: ( 2.5.13.13 NAME 'booleanMatch' APPLIES hasSubordinates )
    2.5.13.11 (caseIgnoreListMatch): matchingRuleUse: ( 2.5.13.11 NAME 'caseIgnoreListMatch' APPLIES ( homePostalAddress $ registeredAddress $ postalAddress ) )
    2.5.13.8 (numericStringMatch): matchingRuleUse: ( 2.5.13.8 NAME 'numericStringMatch' APPLIES ( categoryId $ erpSiteId $ facilityId $ customerId $ internationaliSDNNumber $ x121Address ) )
    2.5.13.7 (caseExactSubstringsMatch): matchingRuleUse: ( 2.5.13.7 NAME 'caseExactSubstringsMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.6 (caseExactOrderingMatch): matchingRuleUse: ( 2.5.13.6 NAME 'caseExactOrderingMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.5 (caseExactMatch): matchingRuleUse: ( 2.5.13.5 NAME 'caseExactMatch' APPLIES ( userEmailId $ userErpSiteId $ propertyValue $ propertyName $ propertySet $ primaryFacility $ fn $ ln $ taskName $ roleName $ categoryName $ facilityName $ customerName $ preferredLanguage $ employeeType $ employeeNumber $ displayName $ departmentNumber $ carLicense $ documentPublisher $ buildingName $ organizationalStatus $ uniqueIdentifier $ co $ personalTitle $ documentLocation $ documentVersion $ documentTitle $ documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $ textEncodedORAddress $ uid $ labeledURI $ dmdName $ houseIdentifier $ dnQualifier $ generationQualifier $ initials $ givenName $ destinationIndicator $ physicalDeliveryOfficeName $ postOfficeBox $ postalCode $ businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c $ serialNumber $ sn $ knowledgeInformation $ cn $ name $ ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
    2.5.13.3 (caseIgnoreOrderingMatch): matchingRuleUse: ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch' APPLIES ( dnQualifier $ destinationIndicator $ serialNumber ) )
    2.5.13.2 (caseIgnoreMatch): matchingRuleUse: ( 2.5.13.2 NAME 'caseIgnoreMatch' APPLIES ( userEmailId $ userErpSiteId $ propertyValue $ propertyName $ propertySet $ primaryFacility $ fn $ ln $ taskName $ roleName $ categoryName $ facilityName $ customerName $ preferredLanguage $ employeeType $ employeeNumber $ displayName $ departmentNumber $ carLicense $ documentPublisher $ buildingName $ organizationalStatus $ uniqueIdentifier $ co $ personalTitle $ documentLocation $ documentVersion $ documentTitle $ documentIdentifier $ host $ userClass $ roomNumber $ drink $ info $ textEncodedORAddress $ uid $ labeledURI $ dmdName $ houseIdentifier $ dnQualifier $ generationQualifier $ initials $ givenName $ destinationIndicator $ physicalDeliveryOfficeName $ postOfficeBox $ postalCode $ businessCategory $ description $ title $ ou $ o $ street $ st $ l $ c $ serialNumber $ sn $ knowledgeInformation $ cn $ name $ ref $ vendorVersion $ vendorName $ supportedSASLMechanisms ) )
    2.5.13.1 (distinguishedNameMatch): matchingRuleUse: ( 2.5.13.1 NAME 'distinguishedNameMatch' APPLIES ( dITRedirect $ associatedName $ secretary $ documentAuthor $ manager $ seeAlso $ roleOccupant $ owner $ member $ distinguishedName $ aliasedObjectName $ namingContexts $ subschemaSubentry $ modifiersName $ creatorsName ) )
    2.5.13.0 (objectIdentifierMatch): matchingRuleUse: ( 2.5.13.0 NAME 'objectIdentifierMatch' APPLIES ( supportedApplicationContext $ supportedFeatures $ supportedExtension $ supportedControl $ structuralObjectClass $ objectClass ) )
slapd startup: initiated.
slapd starting
ldap_pvt_gethostbyname_a: host=prod-ldap-knox03, r=0
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
ber_scanf fmt (m) ber:
connection_get(11): got connid=0
connection_read(11): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 51 contents:
ber_get_next
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
do_bind: version=3 dn="cn=manager,dc=petconnect,dc=com" method=128
dn2entry_r: dn: "cn=manager,dc=petconnect,dc=com"
=> dn2id( "cn=manager,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id NOID
dn2entry_r: dn: "dc=petconnect,dc=com"
=> dn2id( "dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 1
=> id2entry_r( 1 )
=> ldbm_cache_open( "id2entry.dbb", 73, 600 )
<= ldbm_cache_open (opened 1)
=> str2entry
>>> dnPrettyNormal: 
=> ldap_bv2dn(dc=petconnect,dc=com,0)
<= ldap_bv2dn(dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
<= str2entry(dc=petconnect,dc=com) -> 0x69edb0
<= id2entry_r( 1 ) 0x69edb0 (disk)
====> cache_return_entry_r( 1 ): created (0)
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=0
connection_read(11): checking for input on id=0
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=11 for close
connection_close: conn=0 sd=11
connection_get(11): got connid=1
connection_read(11): checking for input on id=1
ber_get_next
ber_get_next: tag 0x30 len 54 contents:
ber_get_next
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
do_bind: version=3 dn="cn=manager,dc=petconnect,dc=com" method=128
dn2entry_r: dn: "cn=manager,dc=petconnect,dc=com"
=> dn2id( "cn=manager,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "dc=petconnect,dc=com"
=> dn2id( "dc=petconnect,dc=com" )
====> cache_find_entry_dn2id("dc=petconnect,dc=com"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=petconnect,dc=com" (found) (1 tries)
<= id2entry_r( 1 ) 0x69edb0 (cache)
====> cache_return_entry_r( 1 ): returned (0)
send_ldap_result: conn=1 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=1
connection_read(11): checking for input on id=1
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=1, closing.
connection_closing: readying conn=1 sd=11 for close
connection_close: conn=1 sd=11
connection_get(11): got connid=2
connection_read(11): checking for input on id=2
ber_get_next
ber_get_next: tag 0x30 len 51 contents:
ber_get_next
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
do_bind: version=3 dn="cn=manager,dc=petconnect,dc=com" method=128
dn2entry_r: dn: "cn=manager,dc=petconnect,dc=com"
=> dn2id( "cn=manager,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "dc=petconnect,dc=com"
=> dn2id( "dc=petconnect,dc=com" )
====> cache_find_entry_dn2id("dc=petconnect,dc=com"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=petconnect,dc=com" (found) (1 tries)
<= id2entry_r( 1 ) 0x69edb0 (cache)
====> cache_return_entry_r( 1 ): returned (0)
send_ldap_result: conn=2 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=2
connection_read(11): checking for input on id=2
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=2, closing.
connection_closing: readying conn=2 sd=11 for close
connection_close: conn=2 sd=11
connection_get(11): got connid=3
connection_read(11): checking for input on id=3
ber_get_next
ber_get_next: tag 0x30 len 51 contents:
ber_get_next
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
do_bind: version=3 dn="cn=manager,dc=petconnect,dc=com" method=128
dn2entry_r: dn: "cn=manager,dc=petconnect,dc=com"
=> dn2id( "cn=manager,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "dc=petconnect,dc=com"
=> dn2id( "dc=petconnect,dc=com" )
====> cache_find_entry_dn2id("dc=petconnect,dc=com"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=petconnect,dc=com" (found) (1 tries)
<= id2entry_r( 1 ) 0x69edb0 (cache)
====> cache_return_entry_r( 1 ): returned (0)
send_ldap_result: conn=3 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=3
connection_read(11): checking for input on id=3
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=3, closing.
connection_closing: readying conn=3 sd=11 for close
connection_close: conn=3 sd=11
connection_get(11): got connid=4
connection_read(11): checking for input on id=4
ber_get_next
ber_get_next: tag 0x30 len 51 contents:
ber_get_next
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: 
=> ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)
<= ldap_bv2dn(cn=manager,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
do_bind: version=3 dn="cn=manager,dc=petconnect,dc=com" method=128
dn2entry_r: dn: "cn=manager,dc=petconnect,dc=com"
=> dn2id( "cn=manager,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "dc=petconnect,dc=com"
=> dn2id( "dc=petconnect,dc=com" )
====> cache_find_entry_dn2id("dc=petconnect,dc=com"): 1 (1 tries)
<= dn2id 1 (in cache)
=> id2entry_r( 1 )
====> cache_find_entry_id( 1 ) "dc=petconnect,dc=com" (found) (1 tries)
<= id2entry_r( 1 ) 0x69edb0 (cache)
====> cache_return_entry_r( 1 ): returned (0)
do_bind: v3 bind: "cn=manager,dc=petconnect,dc=com" to "cn=Manager,dc=petconnect,dc=com"
send_ldap_result: conn=4 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=4
connection_read(11): checking for input on id=4
ber_get_next
ber_get_next: tag 0x30 len 190 contents:
ber_get_next
do_add
ber_scanf fmt ({m) ber:
ber_get_next on fd 11 failed errno=11 (Resource temporarily unavailable)
>>> dnPrettyNormal: 
=> ldap_bv2dn(uid=mattest,ou=System Users,dc=petconnect,dc=com,0)
<= ldap_bv2dn(uid=mattest,ou=System Users,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(uid=mattest,ou=System Users,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(uid=mattest,ou=system users,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt (}) ber:
dn2entry_r: dn: "uid=mattest,ou=system users,dc=petconnect,dc=com"
=> dn2id( "uid=mattest,ou=system users,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "ou=system users,dc=petconnect,dc=com"
=> dn2id( "ou=system users,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 3
=> id2entry_r( 3 )
=> ldbm_cache_open( "id2entry.dbb", 73, 600 )
<= ldbm_cache_open (cache 1)
=> str2entry
>>> dnPrettyNormal: 
=> ldap_bv2dn(ou=System Users,dc=petconnect,dc=com,0)
<= ldap_bv2dn(ou=System Users,dc=petconnect,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=System Users,dc=petconnect,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(ou=system users,dc=petconnect,dc=com,272)=0
<<< dnPrettyNormal: , 
<= str2entry(ou=System Users,dc=petconnect,dc=com) -> 0x69fb70
<= id2entry_r( 3 ) 0x69fb70 (disk)
ldbm_referrals: op=104 target="uid=mattest,ou=System Users,dc=petconnect,dc=com" matched="ou=System Users,dc=petconnect,dc=com"
====> cache_return_entry_r( 3 ): created (0)
oc_check_required entry (uid=mattest,ou=System Users,dc=petconnect,dc=com), objectClass "inetorgperson"
oc_check_allowed type "objectClass"
oc_check_allowed type "uid"
oc_check_allowed type "cn"
oc_check_allowed type "sn"
oc_check_allowed type "givenName"
oc_check_allowed type "userPassword"
oc_check_allowed type "structuralObjectClass"
oc_check_allowed type "entryUUID"
oc_check_allowed type "creatorsName"
oc_check_allowed type "createTimestamp"
oc_check_allowed type "entryCSN"
oc_check_allowed type "modifiersName"
oc_check_allowed type "modifyTimestamp"
=> dn2id( "uid=mattest,ou=system users,dc=petconnect,dc=com" )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_w: dn: "ou=system users,dc=petconnect,dc=com"
=> dn2id( "ou=system users,dc=petconnect,dc=com" )
====> cache_find_entry_dn2id("ou=system users,dc=petconnect,dc=com"): 3 (1 tries)
<= dn2id 3 (in cache)
=> id2entry_w( 3 )
====> cache_find_entry_id( 3 ) "ou=System Users,dc=petconnect,dc=com" (found) (1 tries)
<= id2entry_w( 3 ) 0x69fb70 (cache)
=> ldbm_cache_open( "nextid.dbb", 73, 600 )
<= ldbm_cache_open (opened 2)
=> ldbm_cache_open( "nextid.dbb", 73, 600 )
<= ldbm_cache_open (cache 2)
=> index_entry_add( 7205, "uid=mattest,ou=System Users,dc=petconnect,dc=com" )
=> ldbm_cache_open( "objectClass.dbb", 73, 600 )
<= ldbm_cache_open (opened 3)
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> ldbm_cache_open( "uid.dbb", 73, 600 )
<= ldbm_cache_open (opened 4)
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> ldbm_cache_open( "cn.dbb", 73, 600 )
<= ldbm_cache_open (opened 5)
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> ldbm_cache_open( "sn.dbb", 73, 600 )
<= ldbm_cache_open (opened 6)
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
=> key_change(ADD,1c25)
<= key_change 0
<= index_entry_add( 7205, "uid=mattest,ou=System Users,dc=petconnect,dc=com" ) success
=> dn2id_add( "uid=mattest,ou=system users,dc=petconnect,dc=com", 7205 )
=> ldbm_cache_open( "dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id_add 0
=> id2entry_add( 7205, "uid=mattest,ou=System Users,dc=petconnect,dc=com" )
=> ldbm_cache_open( "id2entry.dbb", 73, 600 )
<= ldbm_cache_open (cache 1)
<= id2entry_add 0
send_ldap_result: conn=4 op=1 p=3
send_ldap_response: msgid=2 tag=105 err=0
ber_flush: 14 bytes to sd 11
connection_get(11): got connid=4
connection_read(11): checking for input on id=4
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_get_next
ber_get_next on fd 11 failed errno=0 (Success)
connection_read(11): input error=-2 id=4, closing.
connection_closing: readying conn=4 sd=11 for close
connection_close: deferring conn=4 sd=11
====> cache_return_entry_w( 3 ): returned (0)

Segmentation fault

slapd.conf config file


# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 kurt Exp $ # # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /etc/openldap/schema/core.schema #required core schema # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 ku rt Exp $ # # See slapd.conf(5) for details on configuration options. # This file should NOT be world readable. # include /etc/openldap/schema/core.schema #required core schema include /etc/openldap/schema/cosine.schema #X.500 schema and Cosine include /etc/openldap/schema/inetorgperson.schema #useful internet organ isation schema (internal mostly) #adding some aux schemas #include /etc/openldap/schema/openldap.schema #required to fix ou r schema... include /etc/openldap/schema/rns.schema #CTIMI RNS schema definition... # Define global ACLs to disable default read access. # Do not enable referrals until AFTER you have a working directory # service AND an understanding of referrals. #referral ldap://root.openldap.org pidfile /var/run/openldap/slapd.pid argsfile /var/run/openldap/slapd.args # Load dynamic backend modules: # modulepath /usr/lib/openldap/openldap # moduleload back_bdb.la # moduleload back_ldap.la # moduleload back_ldbm.la # moduleload back_passwd.la # moduleload back_shell.la loglevel 256 sizelimit -1 ####################################################################### # ldbm database definitions ####################################################################### # ctimi.com #database bdb database ldbm suffix "dc=petconnect,dc=com" rootdn "cn=Manager,dc=petconnect,dc=com" directory /var/lib/openldap/petconnect.com replogfile "/var/lib/openldap/petconnect.com/replica.log" cachesize 4000 dbcachesize 200000 index default pres,eq index cn,sn,uid pres,eq,approx,sub index objectClass eq # Replicas to which we should propagate changes replica uri=ldap://10.80.2.182:389 binddn="cn=Replica,dc=petconnect,dc=com" bindmethod=simple access to dn.subtree="ou=System Users,dc=petconnect,dc=com" by dn.one="ou=System Admins,dc=petconnect,dc=com" write by dn="cn=Replica,dc=petconnect,dc=com" write by anonymous auth by self write by users read access to dn.subtree="ou=User Groups,dc=petconnect,dc=com" by dn.one="ou=System Admins,dc=petconnect,dc=com" write by dn="cn=Replica,dc=petconnect,dc=com" write by users read access to dn.subtree="ou=Default Groups,dc=petconnect,dc=com" by dn.one="ou=System Admins,dc=petconnect,dc=com" write by dn="cn=Replica,dc=petconnect,dc=com" write by users read access to dn.subtree="ou=User Roles,dc=petconnect,dc=com" by dn.one="ou=System Admins,dc=petconnect,dc=com" write by dn="cn=Replica,dc=petconnect,dc=com" write by users read access to dn.subtree="dc=petconnect,dc=com" by dn="cn=Replica,dc=petconnect,dc=com" write by anonymous auth by self write by users read access to dn.base="dc=petconnect,dc=com" by users read by anonymous auth by self write access to * by self write by users read by anonymous auth # # if no access controls are present, the default policy is: # Allow read by all # # rootdn can always write! # cti-pet.com database ldbm suffix "dc=cti-pet,dc=com" rootdn "cn=root,dc=cti-pet,dc=com" directory /var/lib/openldap/cti-pet.com cachesize 4000 dbcachesize 200000 index default eq,pres index objectClass eq index cn,uid,surname,givenname pres,eq,sub,approx access to * by * write by * auth by * read