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

-devel coredump



System: Sun Sparc Solaris 2.6
Environment:
LIBS=-L/usr/local/gdbm/lib -lpthread -lposix4
CPPFLAGS=-I/usr/local/gdbm/include

I just got a coredump when enabeling LDAP_ALLOW_NULL_SEARCH_BASE in
backend.c and
doing a search on a null base (if somebody wants the corefile, I'll mail
it to you):

./ldapsearch -h localhost -p 400 -D 'cn=......' -w xxxxx -s one -b ''
'objectclass=*'
with '-s base' I get 'no such object'
and without '-s' I get everything.

I have one element with a null base (one from netscape btw), and using
the netscape LDAP
(the one I'm trying to replace) I can retrieve the element using '-s
base':

dn:
objectclass: top
objectclass: passwordPolicy
passwordchange: may
passwordchecksyntax: 0
passwordminlength: 6
passwordexp: 0
passwordmaxage: 8640000
passwordwarning: 86400
passwordkeephistory: 0
passwordinhistory: 6
passwordlockout: 0
passwordmaxfailure: 3
passwordunlock: 1
passwordlockoutduration: 3600
passwordresetduration: 600
option: cn=00000023,ou=Options,o=pandora.be
modifiersname: cn=Directory Manager
modifytimestamp: 19981029102921Z


output from slapd -d255:

do_search
SRCH "" 1 0    0 0 0
begin get_filter
PRESENT
end get_filter 0
    filter: (objectclass=*)
    attrs:
select_backend: use default backend
=> ldbm_back_search
using base
onelevel_candidates: base:
subtree_candidates: base:
=> filter_candidates
        AND
=> list_candidates 0xa0
=> filter_candidates
        EQUALITY
=> ava_candidates 0xa3
=> index_read( "id2children" "=" "0" )
=> ldbm_cache_open( "/tmp/db/id2children.gdbm", 2, 600 )
listening for connections on 3, activity on: 5r
before select active_threads 1
ldbm_cache_open (blksize 8192) (maxids 2046) (maxindirect 2)
<= ldbm_cache_open (opened 2)
<= index_read 4 candidates
<= ava_candidates 4
<= filter_candidates 4
=> filter_candidates
        PRESENT
=> presence_candidates
=> index_read( "objectclass" "" "*" )
<= index_read 26198 candidates (allids - not indexed)
<= presence_candidates 26198
<= filter_candidates 26198
<= list_candidates 4
<= filter_candidates 4
====> cache_return_entry_r
Segmentation Fault (core dumped)