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

slapd crash report (ITS#357)



Full_Name: Vladimir V. Tsichevski
Version: 1.2.7 and more recent
OS: SPARC Solaris 2.6
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.87.88.135)


Hi,

got repeatable slapd server crash when I try to remove the ENTIRE
ATTRIBUTE CONTENTS of INDEXED ATTRIBUTE.

According to ldap_modify man page

       ... If the entire attribute is to be deleted, the
       mod_values   field   should   be   set   to   NULL...

I was trying to remove all the indexed uid attribute. Got Segmentation 
fault in slapd. The reason is in vals=0x0.


(gdb) where
#0  index_change_values (be=0x5f380, type=0x458128 "uid", vals=0x0, id=10, op=0)
at index.c:305
#1  0x2fc48 in index_add_mods (be=0x5f380, mods=0x3588a8, id=10) at index.c:92
#2  0x30d18 in ldbm_internal_modify (be=0x5f380, conn=0x67e50, op=0x25dd08, 
    dn=0x4567d0 "OU=FINANCIAL,O=JET,DC=JET,DC=MSK,DC=SU", mods=0x458418,
e=0x60ed8) at modify.c:192
#3  0x30e60 in ldbm_back_modify (be=0x5f380, conn=0x67e50, op=0x25dd08, 
    dn=0x4567d0 "OU=FINANCIAL,O=JET,DC=JET,DC=MSK,DC=SU", mods=0x3588a8) at
modify.c:236
#4  0x21ac4 in do_modify (conn=0x67e50, op=0x25dd08) at modify.c:157
#5  0x194d8 in connection_operation (arg_v=0x358d00) at connection.c:66
#6  0x3e0f4 in ldap_pvt_thread_create (thread=0x25dd30, detach=1, 
    start_routine=0x193e8 <connection_operation>, arg=0x358d00) at
thr_stub.c:40
#7  0x19b38 in connection_activity (conn=0x67e50) at connection.c:207
#8  0x19104 in slapd_daemon (port=0x5c680) at daemon.c:362
#9  0x3e0f4 in ldap_pvt_thread_create (thread=0x5c29c, detach=0,
start_routine=0x17cc4 <slapd_daemon>, 
    arg=0x185) at thr_stub.c:40
#10 0x17818 in main (argc=3, argv=0xeffffa24) at main.c:211