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

Aliases : server crash (ITS#2824)



Full_Name: Pierre Fayt
Version: 2.1.22
OS: Linux (Debian)
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (212.224.142.27)


Hello,

I'm having a problem when using aliases and browsing the tree with Jexplorer
(http://pegacat.com/jxplorer/index.html). I'm using openLDAP 2.1.22 with ldbm
backend. Notice that I seem to have the same problem with 2.1.23.
(I don't have the problem with LDAPBrowser - http://www.iit.edu/~gawojar/ldap/)

Example : I create an organisationUnit and an alias pointing to it. I create a
posixaccount under the OU. When I browse the tree, activating the "resolve
aliases while browsing", OpenLDAP crashes when I go to the posixaccount under
the alias. 

I've tested that on 2 linux servers (Debian) with 2.4.20 and 2.4.22 kernels. On
the first server, I get a ch_malloc error in the syslog :
 ch_malloc of 4294967295 bytes failed
and all the slapd processes exit.
On the second server, I don't get the ch_malloc error in the log, but I get a
"defunct" slapd process, and no connection is possible.

Activating a "-1" loglevel, the syslog on the first server ends with:

-----------------------
Nov 12 15:40:53 gw slapd[4843]: ====>
cache_find_entry_dn2id("cn=yyy,dc=fayt,dc=
net"): 5 (1 tries)
Nov 12 15:40:53 gw slapd[4843]: <= dn2id 5 (in cache)
Nov 12 15:40:53 gw slapd[4843]: => id2entry_r( 5 )
Nov 12 15:40:53 gw slapd[4843]: ====> cache_find_entry_id( 5 )
"cn=yyy,dc=fayt,d
c=net" (found) (1 tries)
Nov 12 15:40:53 gw slapd[4843]: <= id2entry_r( 5 ) 0x81c3d40 (cache)
Nov 12 15:40:53 gw slapd[4843]: >>> dnNormalize: <dc=xxx,dc=fayt,dc=net>
Nov 12 15:40:53 gw slapd[4843]: <<< dnNormalize: <dc=xxx,dc=fayt,dc=net>
Nov 12 15:40:53 gw slapd[4843]: dn2entry_r: dn:
"uid=pfayt,dc=xxx,dc=fayt,dc=net
"
Nov 12 15:40:53 gw slapd[4843]: => dn2id( "uid=pfayt,dc=xxx,dc=fayt,dc=net" )
Nov 12 15:40:53 gw slapd[4843]: => ldbm_cache_open( "dn2id.dbb", 9, 600 )
Nov 12 15:40:53 gw slapd[4843]: <= ldbm_cache_open (cache 0)
Nov 12 15:40:53 gw slapd[4843]: <= dn2id NOID
Nov 12 15:40:53 gw slapd[4843]: dn2entry_r: dn: "dc=xxx,dc=fayt,dc=net"
Nov 12 15:40:53 gw slapd[4843]: => dn2id( "dc=xxx,dc=fayt,dc=net" )
Nov 12 15:40:53 gw slapd[4843]: => ldbm_cache_open( "dn2id.dbb", 9, 600 )
Nov 12 15:40:53 gw slapd[4843]: <= ldbm_cache_open (cache 0)
Nov 12 15:40:53 gw slapd[4843]: ch_malloc of 4294967295 bytes failed
------------------


Any idea of the origin of this problem ? Is this a known issue with aliases ? 

Thanks for your help.
Regards,

Pierre