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

Slapd aborts when adding entry w/ bad rdn (ITS#2387)

Full_Name: Paul R Turgyan
Version: 2.1.16
OS: Solaris 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

When attempting to add an entry with a bad rdn,  slapd aborts.
In this particular case the rdn is composed of the single 
character "#".  Here's a stack trace from slapd:

Program received signal SIGABRT, Aborted.
[Switching to LWP 3]
0xef554c90 in __sigprocmask () from /usr/lib/libthread.so.1
(gdb) bt
#0  0xef554c90 in __sigprocmask () from /usr/lib/libthread.so.1
#1  0xef54b9d0 in _resetsig () from /usr/lib/libthread.so.1
#2  0xef54b18c in _sigon () from /usr/lib/libthread.so.1
#3  0xef54dec8 in _thrp_kill () from /usr/lib/libthread.so.1
#4  0xef5bb330 in abort () from /usr/lib/libc.so.1
#5  Letext () at ./libgcc2.c:-1
#6  0x00077c80 in UTF8StringNormalize (syntax=0x292f00, val=0x3bfdd8, 
    normalized=0xee001760) at schema_init.c:594
#7  0x0006007c in value_find_ex (ad=0x29b028, flags=0, vals=0x3bee20, 
    val=0x3bfdd8) at value.c:398
#8  0x00076ba4 in entry_naming_check (e=0x3c0e40, text=0xee001a58, 
    textbuf=0xee001950 ">xÞ}", textlen=256) at schema_check.c:852
#9  0x0007560c in entry_schema_check (be=0x2a24c8, e=0x3c0e40, oldattrs=0x0, 
    text=0xee001a58, textbuf=0xee001950 ">xÞ}", textlen=256)
    at schema_check.c:226
#10 0x000bc4f0 in ldbm_back_add (be=0x2a24c8, conn=0x3770f8, op=0x3bfb78, 
    e=0x3c0e40) at add.c:44
#11 0x00042fd0 in do_add (conn=0x3770f8, op=0x3bfb78) at add.c:302
#12 0x0003a098 in connection_operation (ctx=0x3c0ca8, arg_v=0x2f5748)
    at connection.c:932
#13 0x000e0554 in ldap_int_thread_pool_wrapper (xpool=0x2912f8) at tpool.c:433

I looks like UTF8StringNormalize is failing the assertion at: schema_init.c:594
594             assert( val->bv_len );

Here is what I typed into ldapmodify to try creating the bad rdn

barkingdog/.../etc% ldapmodify -D"cn=bonzo,dc=umich,dc=edu" -W
Enter LDAP Password: 
dn: cn=#,ou=user groups,ou=groups,dc=umich,dc=edu 
changetype: add
objectclass: rfc822mailgroup
cn: #
owner: uid=pturgyan,ou=people,dc=umch,dc=edu

adding new entry cn=#,ou=user groups,ou=groups,dc=umich,dc=edu