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

Re: slapd crushed when modify schema



Sounds like you've found a bug, please submit this info to the ITS.

William.Zhang wrote:
hi, all

I want to add a object and attribute by config database, here is my ldif:

dn: cn={2}test,cn=schema,cn=config
changetype: add
objectClass: olcSchemaConfig
cn: {2}test
olcObjectIdentifier: {0}TestRoot 1.3.6.1.4.1.1000
olcObjectIdentifier: {1}TestAttributeType TestRoot :3
olcObjectIdentifier: {2}TestObjectClass TestRoot :4
olcAttributeTypes: {0}( TestAttributeType :8 NAME 'myTestAttr' DESC 'test' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
olcObjectClasses: {0}( TestObjectClass :4 NAME 'myTestOC' DESC 'test' SUP top STRUCTURAL MUST ( myTestAttr ) )

I add it by ldapmodify utility, but slapd crashed :

connection_get(17): got connid=0
connection_read(17): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 28 contents:
ber_get_next
ber_get_next on fd 17 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
dnPrettyNormal: <cn=config>
<<< dnPrettyNormal: <cn=config>, <cn=config>
do_bind: version=3 dn="cn=config" method=128
do_bind: v3 bind: "cn=config" to "cn=config"
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 17
connection_get(17): got connid=0
connection_read(17): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 482 contents:
ber_get_next
ber_get_next on fd 17 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({m) ber:
dnPrettyNormal: <cn={2}test,cn=schema,cn=config>
<<< dnPrettyNormal: <cn={2}test,cn=schema,cn=config>, <cn={2}test,cn=schema,cn=config>
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt ({m{W}}) ber:
ber_scanf fmt (}) ber:
Segmentation fault

I am using 2.3.24, is there anything wrong ? thanks !




--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/