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

(ITS#6216) Slapd crashes when adding a backend without olcsuffix but with a olcsubordinate

Full_Name: Sebastien Bahloul
Version: 2.X (HEAD from July, 15 2009)
OS: Ubuntu 9.04 64 bits
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

It seems that slapd crashes when I try to add a simple hdb backend (also
confirmed with a bdb) without an olcSuffix attribute but with an olcSubordinate
attribute value :

dn: olcDatabase=hdb,cn=config
objectclass: olcDatabaseConfig
objectclass: olcConfig
objectclass: olcHdbConfig
objectclass: top
olcdatabase: hdb
olcdbdirectory: /tmp
olcsubordinate: FALSE

GDB Backtrace :

conn=0 op=1 ADD dn="olcDatabase=hdb,cn=config"                                  

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd13c010950 (LWP 7210)]     
0x0000000000482fd1 in glue_sub_attach (online=1) at backglue.c:1167
1167                            Debug( LDAP_DEBUG_ANY, "glue: no superior found
for sub %s!\n",
(gdb) bt                                                                        
#0  0x0000000000482fd1 in glue_sub_attach (online=1) at backglue.c:1167         
#1  0x0000000000408364 in config_subordinate (c=0x7fd13c00e5f0) at
#2  0x0000000000415c33 in config_set_vals (Conf=0x7dbe20, c=0xffffffff) at
#3  0x000000000041989d in config_parse_add (ct=0x7dbe20, c=0x7fd13c00e5f0,
valx=<value optimized out>) at config.c:665
#4  0x000000000040fdea in config_add_internal (cfb=0x7e5680, e=0x19492f8,
ca=0x7fd13c00e5f0, rs=<value optimized out>, 
    renum=0x7fd13c00e5ec, op=<value optimized out>) at bconfig.c:4573           
#5  0x00000000004109d3 in config_back_add (op=0x1a47b30, rs=0x7fd13c00fc70) at
#6  0x000000000042695e in fe_op_add (op=0x1a47b30, rs=0x7fd13c00fc70) at
#7  0x000000000042728f in do_add (op=0x1a47b30, rs=0x7fd13c00fc70) at add.c:194 
#8  0x000000000041f7b7 in connection_operation (ctx=0x7fd13c00fdd0, arg_v=<value
optimized out>) at connection.c:1115  
#9  0x0000000000420455 in connection_read_thread (ctx=0x7fd13c00fdd0,
argv=<value optimized out>) at connection.c:1251 
#10 0x0000000000528010 in ldap_int_thread_pool_wrapper (xpool=<value optimized
out>) at tpool.c:685                    
#11 0x00007fd1526943ba in start_thread () from /lib/libpthread.so.0             
#12 0x00007fd151c10fcd in clone () from /lib/libc.so.6                          
#13 0x0000000000000000 in ?? ()