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

Re: (ITS#7224) Core dump while trying to run slapd



> On 4/9/2012 7:01 AM, masarati@aero.polimi.it wrote:
>>> On 4/6/2012 10:22 AM, Howard Chu wrote:
>>>> Find out why oc->oc_names is NULL. It should not be. Seems like you
>>>> have an invalid schema definition.
>>>>
>>> I have fixed the objectClasses that were violating by adding
>>> "extensibleObject".
>> ObjectClass with OID '1.3.6.1.4.1.6152.10.3.2.16'.  Can you provide its
>> definition?  Apparently, oc_names is NULL, i.e. no names are defined for
>> that class.
>>
> Here is the object class definition.
>
> Few things to note:
> 1. I had added this class temporarily (before I added extensibleObject).
> 2. I had forgotten to remove this definition from the schema, after
> adding extensibleObject.
>
> objectclass ( 1.3.6.1.4.1.6152.10.3.2.16
>          NAME 'sendmailMTAMAPAlias'
>          SUP ( sendmailMTAAliasObject $ sendmailMTAMAPObject ) STRUCTURAL
>          DESC 'Sendmail MTA map alias definition' )
>
>
> 3. I am re-running the slapadd, without this schema.
>
> (Will update the bug with more info then)

I have created something similar (a structural class inheriting from two
existing ones) and I couldn't reproduce your issue.  However, I could
exactly reproduce it by entirely removing the "NAME 'sendmailMTAMAPAlias'"
portion, so I suspect you were using something like that.  Slapd is
accepting such definition (which I believe is at least bad practice, but
it should be legal as we only complain about missing OID).

I have checked this case (I suspect the same could happen in other schema
items) and I'm about to commit a fix.

p.