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

(ITS#4411) ldapsearch hangs with proxyCache



Full_Name: Dave Horsfall
Version: 2.3.19
OS: FreeBSD 4.10-STABLE
URL: ftp://ftp.openldap.org/incoming/dave-horsfall-060217.tar.gz
Submission from: (NULL) (192.65.182.30)


OpenLDAP 2.3.19 + syncprov.c from HEAD, BDB db42-4.2.52_3, FreeBSD 4.10.

Refer to ftp://ftp.openldap.org/incoming/dave-horsfall-060217.tar.gz,
containing "slapd.conf" (obvious) and "gdb.slapd" (a back-trace of SLAPD).

LDAPSEARCH returns a result then hangs.

slapd.conf:

(Please see file slapd.conf in dave-horsfall-060217.tar.gz)

Query:

ldapsearch -h localhost -b dc=AdminView
"(&(objectclass=ciapplication)(ciapp=orc
k))" ciAppType

Output:

# extended LDIF
#
# LDAPv3
# base <dc=AdminView> with scope subtree
# filter: (&(objectclass=ciapplication)(ciapp=orck))
# requesting: ciAppType 
#

# orck, au.cordoors.dev
dn: ciApp=orck,dc=au,dc=cordoors,dc=dev
ciAppType: MER

(Force a core-dump; log merely shows all meta-dbs being searched)

GDB of LDAPSEARCH:

(gdb) bt
#0  0x2821a4c4 in poll () from /usr/lib/libc.so.4
#1  0x805e580 in ldap_int_select (ld=0x807e000, timeout=0x0) at os-ip.c:922
#2  0x805206f in wait4msg (ld=0x807e000, msgid=-1, all=0, timeout=0x0, 
    result=0xbfbff188) at result.c:301
#3  0x8051cbb in ldap_result (ld=0x807e000, msgid=-1, all=0, timeout=0x0, 
    result=0xbfbff188) at result.c:124
#4  0x804cbbd in dosearch (ld=0x807e000, base=0x807c040 "dc=AdminView", 
    scope=2, filtpatt=0x0, 
    value=0xbfbff844 "(&(objectclass=ciapplication)(ciapp=orck))", 
    attrs=0xbfbff72c, attrsonly=0, sctrls=0x0, cctrls=0x0, timeout=0x0, 
    sizelimit=-1) at ldapsearch.c:1006
#5  0x804c3de in main (argc=7, argv=0xbfbff714) at ldapsearch.c:868

Edit out proxycache, and find I can't stop SLAPD.  Enable set-uid cores,
and do it in.

GDB (of SLAPD):

(Please see file gdb.slapd in dave-horsfall-060217.tar.gz)

Result of search with proxycache commented out:

# extended LDIF
#
# LDAPv3
# base <dc=AdminView> with scope subtree
# filter: (&(objectclass=ciapplication)(ciapp=orck))
# requesting: ciAppType 
#

# orck, au.cordoors.dev
dn: ciApp=orck,dc=au,dc=cordoors,dc=dev
ciAppType: MER

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

I'm willing to accept that I'm a total idiot, and that the proxycache is
woefully misconfigured...