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

(ITS#6611) slapd: segmentation fault caused by large ACL

Full_Name: Leonardo Chiquitto
Version: 2.4.23
OS: openSUSE
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

Setting up a large ACL entry (as the example below) in slapd.conf will make
slapd crash with a segmentation fault when starting up.

access to dn.subtree="ou=autofs,ou=l,dc=ngdn,dc=org"
        by dn.base="cn=1,ou=autofs,ou=l,dc=ngdn,dc=org" read
        by dn.base="cn=2,ou=autofs,ou=l,dc=ngdn,dc=org" read
        by dn.base="cn=149,ou=autofs,ou=l,dc=ngdn,dc=org" read
        by dn.base="cn=150,ou=autofs,ou=l,dc=ngdn,dc=org" read

Here's the back trace:

Program terminated with signal 11, Segmentation fault.
#0  0x00007fd98e223b68 in avl_find (root=0x3d63642c6c3d756f, 
    data=0x7fffa163d0c0, fcmp=0x7fd98e1400e0 <attr_index_name_cmp>)
    at avl.c:545
545		while ( root != 0 && (cmp = (*fcmp)( data, root->avl_data )) != 0 ) {
(gdb) bt
#0  0x00007fd98e223b68 in avl_find (root=0x3d63642c6c3d756f, 
    data=0x7fffa163d0c0, fcmp=0x7fd98e1400e0 <attr_index_name_cmp>)
    at avl.c:545
#1  0x00007fd98e13ef9f in at_bvfind (name=0x7fffa163d0c0) at at.c:126
#2  0x00007fd98e13d61d in slap_bv2ad (bv=0x7fd98e5b7880, ad=0x7fffa163d5a8, 
    text=0x7fffa163d5a0) at ad.c:201
#3  0x00007fd98e10c81b in LDAPRDN_rewrite (rdn=0x7fd98e5b78c0, 
    flags=<value optimized out>, ctx=0x0) at dn.c:285
#4  0x00007fd98e10c970 in LDAPDN_rewrite (dn=<value optimized out>, flags=0, 
    ctx=0x0) at dn.c:406
#5  0x00007fd98e10e495 in dnNormalize (use=<value optimized out>, 
    syntax=<value optimized out>, mr=<value optimized out>, 
    val=0x7fd98e4bc1e8, out=0x7fd98e4bc1f8, ctx=0x0) at dn.c:446
#6  0x00007fd98e0ea70d in read_config (
    fname=0x7fd98e535030 "/etc/openldap/slapd.conf", dir=0x0) at bconfig.c:4101
#7  0x00007fd98e0dbbf9 in main (argc=13, argv=0x7fffa163d8c8) at main.c:767