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

Re: openldap 2.1 aborting



On Thu, Jul 11, 2002 at 08:27:25PM +0200, Stephan Kleinowski wrote:
> I updated my slapd from 2.0.23 to 2.1.3 and imported all my data without 
> any problem.
> But now, if I do a search on ex. employeeType, slapd aborts with this 
> assertion:
> 
> slapd: schema_init.c:554: UTF8StringNormalize: Assertion 
> normalized->bv_len' failed.
> Aborted
> 
> Can someone please explain, what this assertion is all about ?

The current code strips leading white space from the UTF8String and
then there is an assertion on the remaining length which means that
there is an abort() if it is zero. Assertions are used to safely
bail out if there is some error that shouldn't occur. I don't think
this assertion should be here, an empty normalized string should be
returned. I see no point in having a value with all white space, but
I don't think abort() is right.

It's hard to say exactly why you got this problem, do you have a
string that is all white space? Since this is happening when you
search on employeeType, I would guess either one of the stored
employeeType values or in your search filter.

Stig