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

Re: pls help: "Operations error" from ldapdelete (ITS#29)



> You might try the latest changes on OPENDLAP_REL_ENG_1_1 branch.
> Also, I've made more extensive changes on the new OPENLDAP_REL_ENG_1_2 branch.
> 
> Both of these versions differ have alias dereferencing disabled
> which is problematic.  If you are using alias dereferencing, additional
> changes may be needed.
> 
> Please let reply with results of any testing you might be able to do.

I tried OPENLDAP_REL_ENG_1_1 but the problem ("Operation error" on ldapdelete)
still occurred.  When the first operation after daemon start up is ldapdelete,
the daemon dies with segmentation fault :

# /usr/local/openldap/libexec/slapd -f /usr/local/openldap/etc/cu.conf -d 1 -d 2
slapd 1.1.4-Engineering (Sat Jan 23 12:01:14 HKT 1999)
root@spsdev2.csc.cuhk.edu.hk:/usr/local/src/test/ldap/servers/slapd
slapd starting
do_bind
do_bind: version 2 dn (cn=root,dc=cuhk,dc=edu,dc=hk) method 128
dn2entry_r: dn: "cn=root,dc=cuhk,dc=edu,dc=hk"
=> dn2id( "cn=root,dc=cuhk,dc=edu,dc=hk" )
=> dn2id( "cn=root,dc=cuhk,dc=edu,dc=hk" )
=> ldbm_cache_open( "/usr/local/openldap/var/db/dn2id.gdbm", 2, 600 )
<= ldbm_cache_open (opened 0)
<= dn2id NOID
dn2entry_r: dn: "dc=cuhk,dc=edu,dc=hk"
=> dn2id( "dc=cuhk,dc=edu,dc=hk" )
=> ldbm_cache_open( "/usr/local/openldap/var/db/dn2id.gdbm", 2, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 14226
=> id2entry_r( 14226 )
=> ldbm_cache_open( "/usr/local/openldap/var/db/id2entry.gdbm", 2, 600 )
<= ldbm_cache_open (opened 1)
=> str2entry
<= str2entry 0x5f2a0
<= id2entry_r( 14226 ) (disk)
====> cache_return_entry_r
send_ldap_result 0::
do_delete
dn2entry_w: dn: "uid=1002,dc=cuhk,dc=edu,dc=hk"
=> dn2id( "uid=1002,dc=cuhk,dc=edu,dc=hk" )
=> ldbm_cache_open( "/usr/local/openldap/var/db/dn2id.gdbm", 2, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id 5271
=> id2entry_w( 5271 )
=> ldbm_cache_open( "/usr/local/openldap/var/db/id2entry.gdbm", 2, 600 )
<= ldbm_cache_open (cache 1)
=> str2entry
<= str2entry 0x5efd8
<= id2entry_w( 5271 ) (disk)
rdwr_Xchk: readers_reading: 0 writer_writing: 1
=> has_children( 5271 )
=> ldbm_cache_open( "/usr/local/openldap/var/db/id2children.gdbm", 2, 600 )
<= ldbm_cache_open (opened 2)
<= has_children 0
rdwr_Xchk: readers_reading: 0 writer_writing: 1
dn2entry_w: dn: "dc=cuhk,dc=edu,dc=hk"
=> dn2id( "dc=cuhk,dc=edu,dc=hk" )
====> cache_find_entry_dn2id: found dn: DC=CUHK,DC=EDU,DC=HK
<= dn2id 14226 (in cache)
=> id2entry_w( 14226 )
====> cache_find_entry_dn2id: found id: 14226 rw: 1
<= id2entry_w 0x5f2a0 (cache)
=> id2children_remove( 14226, 5271 )
=> ldbm_cache_open( "/usr/local/openldap/var/db/id2children.gdbm", 2, 600 )
<= ldbm_cache_open (cache 2)
Segmentation Fault - core dumped

Then I tried the 1_2 branch, but compilation fails on error 
(Solaris 2.6 + gdbm):

...
gcc -g -O2 -I../../include -I../../include   -I/usr/local/include -DHAVE_CONFIG_H   -c  bind.c
bind.c: In function `do_bind':
bind.c:140: structure has no member named `c_protocol'
bind.c:173: structure has no member named `c_protocol'
*** Error code 1
make: Fatal error: Command failed for target `bind.o'
Current working directory /usr/local/src/test/ldap.1.2/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-local-srv'
Current working directory /usr/local/src/test/ldap.1.2/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr/local/src/test/ldap.1.2/servers/slapd
*** Error code 1
make: Fatal error: Command failed for target `all-common'
Current working directory /usr/local/src/test/ldap.1.2/servers
*** Error code 1
make: Fatal error: Command failed for target `all-common'


Any idea ?  Thanks again.
ST Wong