[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Stack Overflow at search_candidates on win32



Sirs,
       this problem does not occur when I define  SLAPD_LISTENER_THREAD 0,
at line 1936 in slapd\daemon.c, so, I think the new thread spawned by
_beginthreadex
has not enough stack size as main thread's.

-----原始邮件-----
发件人: Robin SP Zhang 
发送时间: 2003年2月20日 10:35
收件人: 'Kervin L. Pierre'
抄送: Howard Chu; openldap-bugs@OpenLDAP.org
主题: 答复: Stack Overflow at search_candidates on win32



enviroment: Win2000 professional +VC6, OpenLdap-2.1.12 + BDB4.1.25 
here is the error, when use ldapbrowser to connect with Base DN "dc=example,
dc=com"
Unhandled exception in slapd.exe: 0xC00000FD: Stack Overflow.

and here is call stack:
$$$00001() line 79
bdb_dn2idl(slap_backend_db * 0x007e04b0, berval * 0x007e7cbc, int 37,
unsigned long * 0x01870040) line 542 + 23 bytes
bdb_filter_candidates(slap_backend_db * 0x007e04b0, slap_filter *
0x0176fd74, unsigned long * 0x01870040, unsigned long * 0x017f0040, unsigned
long * 0x018f0040) line 67 + 22 bytes
list_candidates(slap_backend_db * 0x007e04b0, slap_filter * 0x0176fd74, int
160, unsigned long * 0x0176fe40, unsigned long * 0x017f0040, unsigned long *
0x01870040) line 220 + 31 bytes
bdb_filter_candidates(slap_backend_db * 0x007e04b0, slap_filter *
0x0176fd84, unsigned long * 0x0176fe40, unsigned long * 0x017f0040, unsigned
long * 0x01870040) line 155 + 33 bytes
search_candidates(slap_backend_db * 0x007e04b0, slap_op * 0x007e6940,
slap_entry * 0x007e7cb0, slap_filter * 0x007e6890, int 1, int 3, unsigned
long * 0x0176fe40) line 1035 + 31 bytes
bdb_search(slap_backend_db * 0x007e04b0, slap_conn * 0x01412e00, slap_op *
0x007e6940, berval * 0x017eff14, berval * 0x017eff2c, int 1, int 3, int 500,
int 3600, slap_filter * 0x007e6890, berval * 0x017eff1c, slap_attr_name *
0x007e6030, int 0) line 302 + 36 bytes
do_search(slap_conn * 0x01412e00, slap_op * 0x007e6940) line 317 + 60 bytes
connection_operation(void * 0x007e6460, void * 0x007e6900) line 948 + 16
bytes
ldap_int_thread_pool_wrapper(void * 0x007b17f0) line 431 + 17 bytes
_threadstartex(void * 0x007e63c0) line 212 + 13 bytes
KERNEL32! 77e6758a()

and here is the openldap.log

OpenLDAP 2.X Standalone LDAP Server (slapd)daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: initialized ldap:///
daemon_init: 1 listeners opened
slapd.exe init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
reading config file E:\OpenLDAP\sysconf\slapd.conf
line 9 (include E:\\OpenLDAP\\SYSCONF\\schema\\core.schema)
reading config file E:\OpenLDAP\SYSCONF\schema\core.schema
line 37 (attributetype ( 2.5.4.2 NAME 'knowledgeInformation' DESC 'RFC2256:
knowledge information' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.
121.1.15{32768} ))
line 46 (attributetype ( 2.5.4.4 NAME ( 'sn' 'surname' ) DESC 'RFC2256: last
(family) name(s) for which the entity is known by' SUP name ))
line 52 (attributetype ( 2.5.4.5 NAME 'serialNumber' DESC 'RFC2256: serial
number of the entity' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{64} ))
line 56 (attributetype ( 2.5.4.6 NAME ( 'c' 'countryName' ) DESC 'RFC2256:
ISO-3166 country 2-letter code' SUP name SINGLE-VALUE ))
line 60 (attributetype ( 2.5.4.7 NAME ( 'l' 'localityName' ) DESC 'RFC2256:
locality which this object resides in' SUP name ))
line 64 (attributetype ( 2.5.4.8 NAME ( 'st' 'stateOrProvinceName' ) DESC
'RFC2256: state or province which this object resides in' SUP name ))
line 70 (attributetype ( 2.5.4.9 NAME ( 'street' 'streetAddress' ) DESC
'RFC2256: street address of this object' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ))
line 74 (attributetype ( 2.5.4.10 NAME ( 'o' 'organizationName' ) DESC
'RFC2256: organization this object belongs to' SUP name ))
line 78 (attributetype ( 2.5.4.11 NAME ( 'ou' 'organizationalUnitName' )
DESC 'RFC2256: organizational unit this object belongs to' SUP name ))
line 82 (attributetype ( 2.5.4.12 NAME 'title' DESC 'RFC2256: title
associated with the entity' SUP name ))
line 88 (attributetype ( 2.5.4.13 NAME 'description' DESC 'RFC2256:
descriptive information' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} ))
line 93 (attributetype ( 2.5.4.14 NAME 'searchGuide' DESC 'RFC2256: search
guide, obsoleted by enhancedSearchGuide' SYNTAX
1.3.6.1.4.1.1466.115.121.1.25 ))
line 99 (attributetype ( 2.5.4.15 NAME 'businessCategory' DESC 'RFC2256:
business category' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ))
line 105 (attributetype ( 2.5.4.16 NAME 'postalAddress' DESC 'RFC2256:
postal address' EQUALITY caseIgnoreListMatch SUBSTR
caseIgnoreListSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 ))
line 111 (attributetype ( 2.5.4.17 NAME 'postalCode' DESC 'RFC2256: postal
code' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.15{40} ))
line 117 (attributetype ( 2.5.4.18 NAME 'postOfficeBox' DESC 'RFC2256: Post
Office Box' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.15{40} ))
line 123 (attributetype ( 2.5.4.19 NAME 'physicalDeliveryOfficeName' DESC
'RFC2256: Physical Delivery Office Name' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ))
line 129 (attributetype ( 2.5.4.20 NAME 'telephoneNumber' DESC 'RFC2256:
Telephone Number' EQUALITY telephoneNumberMatch SUBSTR
telephoneNumberSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.50{32} ))
line 133 (attributetype ( 2.5.4.21 NAME 'telexNumber' DESC 'RFC2256: Telex
Number' SYNTAX 1.3.6.1.4.1.1466.115.121.1.52 ))
line 137 (attributetype ( 2.5.4.22 NAME 'teletexTerminalIdentifier' DESC
'RFC2256: Teletex Terminal Identifier' SYNTAX 1.3.6.1.4.1.1466.115.121.1.51
))
line 141 (attributetype ( 2.5.4.23 NAME ( 'facsimileTelephoneNumber' 'fax' )
DESC 'RFC2256: Facsimile (Fax) Telephone Number' SYNTAX
1.3.6.1.4.1.1466.115.121.1.22 ))
line 147 (attributetype ( 2.5.4.24 NAME 'x121Address' DESC 'RFC2256: X.121
Address' EQUALITY numericStringMatch SUBSTR numericStringSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{15} ))
line 153 (attributetype ( 2.5.4.25 NAME 'internationaliSDNNumber' DESC
'RFC2256: international ISDN number' EQUALITY numericStringMatch SUBSTR
numericStringSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{16} ))
line 158 (attributetype ( 2.5.4.26 NAME 'registeredAddress' DESC 'RFC2256:
registered postal address' SUP postalAddress SYNTAX
1.3.6.1.4.1.1466.115.121.1.41 ))
line 164 (attributetype ( 2.5.4.27 NAME 'destinationIndicator' DESC
'RFC2256: destination indicator' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{128} ))
line 169 (attributetype ( 2.5.4.28 NAME 'preferredDeliveryMethod' DESC
'RFC2256: preferred delivery method' SYNTAX 1.3.6.1.4.1.1466.115.121.1.14
SINGLE-VALUE ))
line 175 (attributetype ( 2.5.4.29 NAME 'presentationAddress' DESC 'RFC2256:
presentation address' EQUALITY presentationAddressMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.43 SINGLE-VALUE ))
line 180 (attributetype ( 2.5.4.30 NAME 'supportedApplicationContext' DESC
'RFC2256: supported application context' EQUALITY objectIdentifierMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 ))
line 184 (attributetype ( 2.5.4.31 NAME 'member' DESC 'RFC2256: member of a
group' SUP distinguishedName ))
line 188 (attributetype ( 2.5.4.32 NAME 'owner' DESC 'RFC2256: owner (of the
object)' SUP distinguishedName ))
line 192 (attributetype ( 2.5.4.33 NAME 'roleOccupant' DESC 'RFC2256:
occupant of role' SUP distinguishedName ))
line 196 (attributetype ( 2.5.4.34 NAME 'seeAlso' DESC 'RFC2256: DN of
related object' SUP distinguishedName ))
line 207 (attributetype ( 2.5.4.36 NAME 'userCertificate' DESC 'RFC2256:
X.509 user certificate, use ;binary' SYNTAX 1.3.6.1.4.1.1466.115.121.1.8 ))
line 212 (attributetype ( 2.5.4.37 NAME 'cACertificate' DESC 'RFC2256: X.509
CA certificate, use ;binary' SYNTAX 1.3.6.1.4.1.1466.115.121.1.8 ))
line 217 (attributetype ( 2.5.4.38 NAME 'authorityRevocationList' DESC
'RFC2256: X.509 authority revocation list, use ;binary' SYNTAX
1.3.6.1.4.1.1466.115.121.1.9 ))
line 222 (attributetype ( 2.5.4.39 NAME 'certificateRevocationList' DESC
'RFC2256: X.509 certificate revocation list, use ;binary' SYNTAX
1.3.6.1.4.1.1466.115.121.1.9 ))
line 227 (attributetype ( 2.5.4.40 NAME 'crossCertificatePair' DESC
'RFC2256: X.509 cross certificate pair, use ;binary' SYNTAX
1.3.6.1.4.1.1466.115.121.1.10 ))
line 237 (attributetype ( 2.5.4.42 NAME ( 'givenName' 'gn' ) DESC 'RFC2256:
first name(s) for which the entity is known by' SUP name ))
line 241 (attributetype ( 2.5.4.43 NAME 'initials' DESC 'RFC2256: initials
of some or all of names, but not the surname(s).' SUP name ))
line 245 (attributetype ( 2.5.4.44 NAME 'generationQualifier' DESC 'RFC2256:
name qualifier indicating a generation' SUP name ))
line 250 (attributetype ( 2.5.4.45 NAME 'x500UniqueIdentifier' DESC
'RFC2256: X.500 unique identifier' EQUALITY bitStringMatch SYNTAX 1.3.6.1.4.
1.1466.115.121.1.6 ))
line 257 (attributetype ( 2.5.4.46 NAME 'dnQualifier' DESC 'RFC2256: DN
qualifier' EQUALITY caseIgnoreMatch ORDERING caseIgnoreOrderingMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 ))
line 261 (attributetype ( 2.5.4.47 NAME 'enhancedSearchGuide' DESC 'RFC2256:
enhanced search guide' SYNTAX 1.3.6.1.4.1.1466.115.121.1.21 ))
line 266 (attributetype ( 2.5.4.48 NAME 'protocolInformation' DESC 'RFC2256:
protocol information' EQUALITY protocolInformationMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.42 ))
line 276 (attributetype ( 2.5.4.50 NAME 'uniqueMember' DESC 'RFC2256: unique
member of a group' EQUALITY uniqueMemberMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.34 ))
line 282 (attributetype ( 2.5.4.51 NAME 'houseIdentifier' DESC 'RFC2256:
house identifier' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} ))
line 287 (attributetype ( 2.5.4.52 NAME 'supportedAlgorithms' DESC 'RFC2256:
supported algorithms' SYNTAX 1.3.6.1.4.1.1466.115.121.1.49 ))
line 292 (attributetype ( 2.5.4.53 NAME 'deltaRevocationList' DESC 'RFC2256:
delta revocation list; use ;binary' SYNTAX 1.3.6.1.4.1.1466.115.121.1.9 ))
line 296 (attributetype ( 2.5.4.54 NAME 'dmdName' DESC 'RFC2256: name of
DMD' SUP name ))
line 311 (objectclass ( 2.5.6.2 NAME 'country' DESC 'RFC2256: a country' SUP
top STRUCTURAL MUST c MAY ( searchGuide $ description ) ))
line 316 (objectclass ( 2.5.6.3 NAME 'locality' DESC 'RFC2256: a locality'
SUP top STRUCTURAL MAY ( street $ seeAlso $ searchGuide $ st $ l $
description ) ))
line 327 (objectclass ( 2.5.6.4 NAME 'organization' DESC 'RFC2256: an
organization' SUP top STRUCTURAL MUST o MAY ( userPassword $ searchGuide $
seeAlso $ businessCategory $ 	x121Address $ registeredAddress $
destinationIndicator $ 	preferredDeliveryMethod $ telexNumber $
teletexTerminalIdentifier $ 	telephoneNumber $ internationaliSDNNumber $
facsimileTelephoneNumber $ street $ postOfficeBox $ postalCode $
postalAddress $ physicalDeliveryOfficeName $ st $ l $ description ) ))
line 338 (objectclass ( 2.5.6.5 NAME 'organizationalUnit' DESC 'RFC2256: an
organizational unit' SUP top STRUCTURAL MUST ou MAY ( userPassword $
searchGuide $ seeAlso $ businessCategory $ 	x121Address $
registeredAddress $ destinationIndicator $ 	preferredDeliveryMethod $
telexNumber $ teletexTerminalIdentifier $ 	telephoneNumber $
internationaliSDNNumber $ 	facsimileTelephoneNumber $ street $
postOfficeBox $ postalCode $ 	postalAddress $ physicalDeliveryOfficeName $
st $ l $ description ) ))
line 344 (objectclass ( 2.5.6.6 NAME 'person' DESC 'RFC2256: a person' SUP
top STRUCTURAL MUST ( sn $ cn ) MAY ( userPassword $ telephoneNumber $
seeAlso $ description ) ))
line 353 (objectclass ( 2.5.6.7 NAME 'organizationalPerson' DESC 'RFC2256:
an organizational person' SUP person STRUCTURAL MAY ( title $ x121Address $
registeredAddress $ destinationIndicator $ 	preferredDeliveryMethod $
telexNumber $ teletexTerminalIdentifier $ 	telephoneNumber $
internationaliSDNNumber $ 	facsimileTelephoneNumber $ street $
postOfficeBox $ postalCode $ 	postalAddress $ physicalDeliveryOfficeName $
ou $ st $ l ) ))
line 364 (objectclass ( 2.5.6.8 NAME 'organizationalRole' DESC 'RFC2256: an
organizational role' SUP top STRUCTURAL MUST cn MAY ( x121Address $
registeredAddress $ destinationIndicator $ 	preferredDeliveryMethod $
telexNumber $ teletexTerminalIdentifier $ 	telephoneNumber $
internationaliSDNNumber $ facsimileTelephoneNumber $ 	seeAlso $
roleOccupant $ preferredDeliveryMethod $ street $ 	postOfficeBox $
postalCode $ postalAddress $ 	physicalDeliveryOfficeName $ ou $ st $ l $
description ) ))
line 370 (objectclass ( 2.5.6.9 NAME 'groupOfNames' DESC 'RFC2256: a group
of names (DNs)' SUP top STRUCTURAL MUST ( member $ cn ) MAY (
businessCategory $ seeAlso $ owner $ ou $ o $ description ) ))
line 381 (objectclass ( 2.5.6.10 NAME 'residentialPerson' DESC 'RFC2256: an
residential person' SUP person STRUCTURAL MUST l MAY ( businessCategory $
x121Address $ registeredAddress $ 	destinationIndicator $
preferredDeliveryMethod $ telexNumber $ 	teletexTerminalIdentifier $
telephoneNumber $ internationaliSDNNumber $ 	facsimileTelephoneNumber $
preferredDeliveryMethod $ street $ 	postOfficeBox $ postalCode $
postalAddress $ 	physicalDeliveryOfficeName $ st $ l ) ))
line 387 (objectclass ( 2.5.6.11 NAME 'applicationProcess' DESC 'RFC2256: an
application process' SUP top STRUCTURAL MUST cn MAY ( seeAlso $ ou $ l $
description ) ))
line 394 (objectclass ( 2.5.6.12 NAME 'applicationEntity' DESC 'RFC2256: an
application entity' SUP top STRUCTURAL MUST ( presentationAddress $ cn ) MAY
( supportedApplicationContext $ seeAlso $ ou $ o $ l $ description ) ))
line 399 (objectclass ( 2.5.6.13 NAME 'dSA' DESC 'RFC2256: a directory
system agent (a server)' SUP applicationEntity STRUCTURAL MAY
knowledgeInformation ))
line 405 (objectclass ( 2.5.6.14 NAME 'device' DESC 'RFC2256: a device' SUP
top STRUCTURAL MUST cn MAY ( serialNumber $ seeAlso $ owner $ ou $ o $ l $
description ) ))
line 410 (objectclass ( 2.5.6.15 NAME 'strongAuthenticationUser' DESC
'RFC2256: a strong authentication user' SUP top AUXILIARY MUST
userCertificate ))
line 416 (objectclass ( 2.5.6.16 NAME 'certificationAuthority' DESC
'RFC2256: a certificate authority' SUP top AUXILIARY MUST (
authorityRevocationList $ certificateRevocationList $ 	cACertificate ) MAY
crossCertificatePair ))
line 422 (objectclass ( 2.5.6.17 NAME 'groupOfUniqueNames' DESC 'RFC2256: a
group of unique names (DN and Unique Identifier)' SUP top STRUCTURAL MUST (
uniqueMember $ cn ) MAY ( businessCategory $ seeAlso $ owner $ ou $ o $
description ) ))
line 427 (objectclass ( 2.5.6.18 NAME 'userSecurityInformation' DESC
'RFC2256: a user security information' SUP top AUXILIARY MAY (
supportedAlgorithms ) ))
line 431 (objectclass ( 2.5.6.16.2 NAME 'certificationAuthority-V2' SUP
certificationAuthority AUXILIARY MAY ( deltaRevocationList ) ))
line 437 (objectclass ( 2.5.6.19 NAME 'cRLDistributionPoint' SUP top
STRUCTURAL MUST ( cn ) MAY ( certificateRevocationList $
authorityRevocationList $ 	deltaRevocationList ) ))
line 447 (objectclass ( 2.5.6.20 NAME 'dmd' SUP top STRUCTURAL MUST (
dmdName ) MAY ( userPassword $ searchGuide $ seeAlso $ businessCategory $
x121Address $ registeredAddress $ destinationIndicator $
preferredDeliveryMethod $ telexNumber $ teletexTerminalIdentifier $
telephoneNumber $ internationaliSDNNumber $ facsimileTelephoneNumber $
street $ postOfficeBox $ postalCode $ postalAddress $
physicalDeliveryOfficeName $ st $ l $ description ) ))
line 455 (objectclass ( 2.5.6.21 NAME 'pkiUser' DESC 'RFC2587: a PKI user'
SUP top AUXILIARY MAY userCertificate ))
line 461 (objectclass ( 2.5.6.22 NAME 'pkiCA' DESC 'RFC2587: PKI certificate
authority' SUP top AUXILIARY MAY ( authorityRevocationList $
certificateRevocationList $ 	cACertificate $ crossCertificatePair ) ))
line 466 (objectclass ( 2.5.6.23 NAME 'deltaCRL' DESC 'RFC2587: PKI user'
SUP top AUXILIARY MAY deltaRevocationList ))
line 474 (attributetype ( 1.3.6.1.4.1.250.1.57 NAME 'labeledURI' DESC
'RFC2079: Uniform Resource Identifier with optional label' EQUALITY
caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ))
line 479 (objectclass ( 1.3.6.1.4.1.250.3.15 NAME 'labeledURIObject' DESC
'RFC2079: object that contains the URI attribute type' MAY ( labeledURI )
SUP top AUXILIARY ))
line 489 (attributetype ( 0.9.2342.19200300.100.1.1 NAME ( 'uid' 'userid' )
DESC 'RFC1274: user identifier' EQUALITY caseIgnoreMatch SUBSTR
caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ))
line 496 (attributetype ( 0.9.2342.19200300.100.1.3 NAME ( 'mail'
'rfc822Mailbox' ) DESC 'RFC1274: RFC822 Mailbox'    EQUALITY
caseIgnoreIA5Match    SUBSTR caseIgnoreIA5SubstringsMatch    SYNTAX 1.3.6.1.
4.1.1466.115.121.1.26{256} ))
line 501 (objectclass ( 0.9.2342.19200300.100.4.19 NAME
'simpleSecurityObject' DESC 'RFC1274: simple security object' SUP top
AUXILIARY MUST userPassword ))
line 509 (attributetype ( 0.9.2342.19200300.100.1.25 NAME ( 'dc'
'domainComponent' ) DESC 'RFC1274/2247: domain component' EQUALITY
caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ))
line 514 (objectclass ( 1.3.6.1.4.1.1466.344 NAME 'dcObject' DESC 'RFC2247:
domain component object' SUP top AUXILIARY MUST dc ))
line 519 (objectclass ( 1.3.6.1.1.3.1 NAME 'uidObject' DESC 'RFC2377: uid
object' SUP top AUXILIARY MUST uid ))
line 527 (attributetype ( 0.9.2342.19200300.100.1.37 NAME 'associatedDomain'
DESC 'RFC1274: domain associated with object' EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ))
line 535 (attributetype ( 1.2.840.113549.1.9.1 NAME ( 'email' 'emailAddress'
'pkcs9email' ) DESC 'RFC2459: legacy attribute for email addresses in DNs'
EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX
1.3.6.1.4.1.1466.115.121.1.26{128} ))
>>> dnNormalize: <cn=Subschema>
=> ldap_bv2dn(cn=Subschema,0)
<= ldap_bv2dn(cn=Subschema,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=subschema,272)=0
<<< dnNormalize: <cn=subschema>
line 26 (pidfile 	E:\\OpenLdap\\slapd.pid)
line 27 (argsfile E:\\OpenLdap\\slapd.args)
line 69 (database bdb )
bdb_db_init: Initializing BDB database
line 72 (suffix "dc=example, dc=com")
>>> dnPrettyNormal: <dc=example, dc=com>
=> ldap_bv2dn(dc=example, dc=com,0)
<= ldap_bv2dn(dc=example, dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
line 73 (rootdn "cn=Manager,dc=example, dc=com")
>>> dnPrettyNormal: <cn=Manager,dc=example, dc=com>
=> ldap_bv2dn(cn=Manager,dc=example, dc=com,0)
<= ldap_bv2dn(cn=Manager,dc=example, dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Manager,dc=example,dc=com,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,dc=example,dc=com,272)=0
<<< dnPrettyNormal: <cn=Manager,dc=example,dc=com>,
<cn=manager,dc=example,dc=com>
line 78 (rootpw ***)
line 81 (directory E:\\OpenLdap\\openldap-data)
line 83 (index objectClass	eq)
index objectClass 0x0004
matching_rule_use_init
    2.5.13.0 (objectIdentifierMatch): matchingRuleUse: ( 2.5.13.0 NAME
'objectIdentifierMatch' APPLIES ( objectClass $ structuralObjectClass $
supportedControl $ supportedExtension $ supportedFeatures $
supportedApplicationContext ) )
    2.5.13.1 (distinguishedNameMatch): matchingRuleUse: ( 2.5.13.1 NAME
'distinguishedNameMatch' APPLIES ( creatorsName $ modifiersName $
subschemaSubentry $ namingContexts $ aliasedObjectName $ distinguishedName $
member $ owner $ roleOccupant $ seeAlso ) )
    2.5.13.2 (caseIgnoreMatch): matchingRuleUse: ( 2.5.13.2 NAME
'caseIgnoreMatch' APPLIES ( supportedSASLMechanisms $ vendorName $
vendorVersion $ ref $ name $ cn $ knowledgeInformation $ sn $ serialNumber $
c $ l $ st $ street $ o $ ou $ title $ description $ businessCategory $
postalCode $ postOfficeBox $ physicalDeliveryOfficeName $
destinationIndicator $ givenName $ initials $ generationQualifier $
dnQualifier $ houseIdentifier $ dmdName $ labeledURI $ uid ) )
    2.5.13.3 (caseIgnoreOrderingMatch): matchingRuleUse: ( 2.5.13.3 NAME
'caseIgnoreOrderingMatch' APPLIES ( serialNumber $ destinationIndicator $
dnQualifier ) )
    2.5.13.5 (caseExactMatch): matchingRuleUse: ( 2.5.13.5 NAME
'caseExactMatch' APPLIES ( supportedSASLMechanisms $ vendorName $
vendorVersion $ ref $ name $ cn $ knowledgeInformation $ sn $ serialNumber $
c $ l $ st $ street $ o $ ou $ title $ description $ businessCategory $
postalCode $ postOfficeBox $ physicalDeliveryOfficeName $
destinationIndicator $ givenName $ initials $ generationQualifier $
dnQualifier $ houseIdentifier $ dmdName $ labeledURI $ uid ) )
    2.5.13.6 (caseExactOrderingMatch): matchingRuleUse: ( 2.5.13.6 NAME
'caseExactOrderingMatch' APPLIES ( serialNumber $ destinationIndicator $
dnQualifier ) )
    2.5.13.7 (caseExactSubstringsMatch): matchingRuleUse: ( 2.5.13.7 NAME
'caseExactSubstringsMatch' APPLIES ( serialNumber $ destinationIndicator $
dnQualifier ) )
    2.5.13.8 (numericStringMatch): matchingRuleUse: ( 2.5.13.8 NAME
'numericStringMatch' APPLIES ( x121Address $ internationaliSDNNumber ) )
    2.5.13.11 (caseIgnoreListMatch): matchingRuleUse: ( 2.5.13.11 NAME
'caseIgnoreListMatch' APPLIES ( postalAddress $ registeredAddress ) )
    2.5.13.13 (booleanMatch): matchingRuleUse: ( 2.5.13.13 NAME
'booleanMatch' APPLIES hasSubordinates )
    2.5.13.14 (integerMatch): matchingRuleUse: ( 2.5.13.14 NAME
'integerMatch' APPLIES supportedLDAPVersion )
    2.5.13.16 (bitStringMatch): matchingRuleUse: ( 2.5.13.16 NAME
'bitStringMatch' APPLIES x500UniqueIdentifier )
    2.5.13.17 (octetStringMatch): matchingRuleUse: ( 2.5.13.17 NAME
'octetStringMatch' APPLIES userPassword )
    2.5.13.20 (telephoneNumberMatch): matchingRuleUse: ( 2.5.13.20 NAME
'telephoneNumberMatch' APPLIES telephoneNumber )
    2.5.13.22 (presentationAddressMatch): matchingRuleUse: ( 2.5.13.22 NAME
'presentationAddressMatch' APPLIES presentationAddress )
    2.5.13.23 (uniqueMemberMatch): matchingRuleUse: ( 2.5.13.23 NAME
'uniqueMemberMatch' APPLIES uniqueMember )
    2.5.13.24 (protocolInformationMatch): matchingRuleUse: ( 2.5.13.24 NAME
'protocolInformationMatch' APPLIES protocolInformation )
    2.5.13.27 (generalizedTimeMatch): matchingRuleUse: ( 2.5.13.27 NAME
'generalizedTimeMatch' APPLIES ( createTimestamp $ modifyTimestamp ) )
    2.5.13.29 (integerFirstComponentMatch): matchingRuleUse: ( 2.5.13.29
NAME 'integerFirstComponentMatch' APPLIES supportedLDAPVersion )
    2.5.13.30 (objectIdentifierFirstComponentMatch): matchingRuleUse: ( 2.5.
13.30 NAME 'objectIdentifierFirstComponentMatch' APPLIES ( objectClass $
structuralObjectClass $ supportedControl $ supportedExtension $
supportedFeatures $ matchingRules $ attributeTypes $ objectClasses $
matchingRuleUse $ ldapSyntaxes $ supportedApplicationContext ) )
    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 ( altServer $
mail $ dc $ associatedDomain $ email ) )
    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 ( altServer $ mail
$ dc $ associatedDomain $ email ) )
    1.2.840.113556.1.4.803 (integerBitAndMatch): matchingRuleUse: ( 1.2.840.
113556.1.4.803 NAME 'integerBitAndMatch' APPLIES supportedLDAPVersion )
    1.2.840.113556.1.4.804 (integerBitOrMatch): matchingRuleUse: (
1.2.840.113556.1.4.804 NAME 'integerBitOrMatch' APPLIES supportedLDAPVersion
)
slapd.exe startup: initiated.
bdb_db_open: dc=example,dc=com
bdb_db_open: dbenv_open(E:\OpenLdap\openldap-data)
slapd starting
daemon: added 504r
daemon: select: listen=504 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: new connection on 996
str2filter "(objectclass=*)"
put_filter: "(objectclass=*)"
put_filter: simple
put_simple_filter: "objectclass=*"
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x01404ba0 ptr=0x01404ba0 end=0x01404bad len=13
  0000:  87 0b 6f 62 6a 65 63 74  63 6c 61 73 73            ..objectclass

end get_filter 0
daemon: added 996r
daemon: activity on: 504r
daemon: select: listen=504 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 996r
daemon: read activity on 996
connection_get(996)
connection_get(996): got connid=0
connection_read(996): checking for input on id=0
ber_get_next
ldap_read: want=9, got=9
  0000:  30 0c 02 01 01 60 07 02  01                        0....`...

ldap_read: want=5, got=5
  0000:  03 04 00 80 00                                     .....

ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x007e6760 ptr=0x007e6760 end=0x007e676c len=12
  0000:  02 01 01 60 07 02 01 03  04 00 80 00               ...`........

ber_get_next
ldap_read: want=9 error=unknown error
ber_get_next on fd 996 failed errno=10035 (WSAEWOULDBLOCK)
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x007e6760 ptr=0x007e6763 end=0x007e676c len=9
  0000:  60 07 02 01 03 04 00 80  00                        `........

ber_scanf fmt (m}) ber:
ber_dump: buf=0x007e6760 ptr=0x007e676a end=0x007e676c len=2
  0000:  00 00                                              ..

>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
daemon: select: listen=504 active_threads=1 tvp=NULL
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 996
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........

ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........

do_bind: v3 anonymous bind
daemon: activity on 1 descriptors
daemon: activity on: 996r
daemon: read activity on 996
connection_get(996)
connection_get(996): got connid=0
connection_read(996): checking for input on id=0
ber_get_next
ldap_read: want=9, got=9
  0000:  30 43 02 01 02 63 3e 04  11                        0C...c>..

ldap_read: want=60, got=60
  0000:  64 63 3d 65 78 61 6d 70  6c 65 2c 64 63 3d 63 6f   dc=example,dc=co

  0010:  6d 0a 01 01 0a 01 03 02  01 00 02 01 00 01 01 00   m...............

  0020:  87 0b 6f 62 6a 65 63 74  63 6c 61 73 73 30 0d 04   ..objectclass0..

  0030:  0b 6f 62 6a 65 63 74 63  6c 61 73 73               .objectclass

ber_get_next: tag 0x30 len 67 contents:
ber_dump: buf=0x007e6790 ptr=0x007e6790 end=0x007e67d3 len=67
  0000:  02 01 02 63 3e 04 11 64  63 3d 65 78 61 6d 70 6c   ...c>..dc=exampl

  0010:  65 2c 64 63 3d 63 6f 6d  0a 01 01 0a 01 03 02 01   e,dc=com........

  0020:  00 02 01 00 01 01 00 87  0b 6f 62 6a 65 63 74 63   .........objectc

  0030:  6c 61 73 73 30 0d 04 0b  6f 62 6a 65 63 74 63 6c   lass0...objectcl

  0040:  61 73 73                                           ass

ber_get_next
ldap_read: want=9 error=unknown error
ber_get_next on fd 996 failed errno=10035 (WSAEWOULDBLOCK)
do_search
ber_scanf fmt ({miiiib) ber:
ber_dump: buf=0x007e6790 ptr=0x007e6793 end=0x007e67d3 len=64
  0000:  63 3e 04 11 64 63 3d 65  78 61 6d 70 6c 65 2c 64   c>..dc=example,d

  0010:  63 3d 63 6f 6d 0a 01 01  0a 01 03 02 01 00 02 01   c=com...........

  0020:  00 01 01 00 87 0b 6f 62  6a 65 63 74 63 6c 61 73   ......objectclas

  0030:  73 30 0d 04 0b 6f 62 6a  65 63 74 63 6c 61 73 73   s0...objectclass

>>> dnPrettyNormal: <dc=example,dc=com>
=> ldap_bv2dn(dc=example,dc=com,0)
<= ldap_bv2dn(dc=example,dc=com,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
daemon: select: listen=504 active_threads=1 tvp=NULL
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=com,272)=0
<<< dnPrettyNormal: <dc=example,dc=com>, <dc=example,dc=com>
SRCH "dc=example,dc=com" 1 3    0 0 0
begin get_filter
PRESENT
ber_scanf fmt (m) ber:
ber_dump: buf=0x007e6790 ptr=0x007e67b7 end=0x007e67d3 len=28
  0000:  87 0b 6f 62 6a 65 63 74  63 6c 61 73 73 30 0d 04   ..objectclass0..

  0010:  0b 6f 62 6a 65 63 74 63  6c 61 73 73               .objectclass

end get_filter 0
    filter: (objectClass=*)
ber_scanf fmt ({M}}) ber:
ber_dump: buf=0x007e6790 ptr=0x007e67c4 end=0x007e67d3 len=15
  0000:  00 0d 04 0b 6f 62 6a 65  63 74 63 6c 61 73 73      ....objectclass

    attrs: objectclass
=> bdb_back_search
bdb_dn2entry_rw("dc=example,dc=com")
=> bdb_dn2id_matched( "dc=example,dc=com" )
<= bdb_dn2id_matched: id=0x00000001: entry dc=example,dc=com
entry_decode: "dc=example,dc=com"
<= entry_decode(dc=example,dc=com)
search_candidates: base="dc=example,dc=com" (0x00000001) scope=1
=> bdb_filter_candidates
	AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
	DN ONE
=> bdb_dn2idl( "dc=example,dc=com" )

-----原始邮件-----
发件人: Kervin L. Pierre [mailto:kervin@blueprint-tech.com]
发送时间: 2003年2月20日 4:19
收件人: Robin SP Zhang
抄送: Howard Chu; openldap-bugs@OpenLDAP.org
主题: Re: Stack Overflow at search_candidates on win32


Could you give the exact wording of the error?

Robin SP Zhang wrote:
> sir,
>     I update BDB to 4.1.25, but the stackover flow exists still, and my
> openldap-stable-20030107
> is the latest version found in www.openldap.org, so I confused where has
> newer one.
> can you help me more :-)
> thanks.
> 
> -----原始邮件-----
> 发件人: Howard Chu [mailto:hyc@highlandsun.com]
> 发送时间: 2003年2月19日 12:36
> 收件人: Robin SP Zhang; openldap-bugs@OpenLDAP.org
> 主题: RE: Stack Overflow at search_candidates on win32
> 
> 
> That email message is nearly a year old, and the problem has been patched.
> The stable- version of OpenLDAP you're running is from about 1 week before
> the patch was committed. Your other software versions are too far out of
> date, you should update to BDB 4.1.24 at least.
> 
>   -- Howard Chu
>   Chief Architect, Symas Corp.       Director, Highland Sun
>   http://www.symas.com               http://highlandsun.com/hyc
>   Symas: Premier OpenSource Development and Support
> 
> 
>>-----Original Message-----
>>From: owner-openldap-bugs@OpenLDAP.org
>>[mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of Robin SP Zhang
> 
> 
>>>Hello,
>>>
>>>      I can reliably crash slapd on win32 by running
>>
>>LdapBrowser282b2.
>>
>>>this problem is as some same as the one before,
>>> http://www.openldap.org/lists/openldap-devel/200203/msg00083.html
>>>according to that information, to void stack overflow,
>>> I build slapd with compile option of  /F 16000000 in VC,
>>>I browser LDAP first time with base DN
>>
>>"cn=Manager,dc=example, dc=com",
>>
>>>the  problem appear still,
>>>
>>>I don't know whether there are some problems in slapd.conf
>>
>>or test.ldif.
>>
>>>who can help me.
>>>my enviroment is
>>>openldap-stable-20030107 + db-4.0.14 + cyrus-sasl-2.1.10
>>>
>>>main context in slapd.conf
>>>
>>>include E:\\OpenLDAP\\SYSCONF\\schema\\core.schema
>>>include E:\\OpenLDAP\\SYSCONF\\schema\\cosine.schema
>>>include E:\\OpenLDAP\\SYSCONF\\schema\\inetorgperson.schema
>>>include E:\\OpenLDAP\\SYSCONF\\schema\\misc.schema
>>>include E:\\OpenLDAP\\SYSCONF\\schema\\openldap.schema
>>>
>>>database	bdb
>>>suffix	"dc=example, dc=com"
>>>rootdn	"cn=Manager,dc=example, dc=com"
>>>
>>>test.ldif is
>>>
>>>dn:dc=example,dc=com
>>>objectclass:dcObject
>>>objectclass:organization
>>>o:Example Company
>>>dc:example
>>>
>>>dn:cn=Manager, dc=example,dc=com
>>>objectclass:organizationalRole
>>>cn:Manager
>>>
>>>
>>>
>>>Best Regards,
>>>Robin Zhang
>>>BNC,#538,
>>>
>>
> 


-- 

------------------------------------------------
Kervin Pierre

kervin@blueprint-tech.com
kervin@kervin.net
kpierre@fit.edu