[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Assertion failed -- possible to get this from a query?
David Stults wrote:
>
> Hello everyone,
>
> Quite suddenly this evening my slapd (2.0.18) aborted, and when I
> restarted it, it would run for between 1 second and about 20 seconds
> before aborting again. In debug mode, I see this error:
>
> schema_init.c:622: failed assertion `!ldap_utf8_isspace(
> LDAP_UTF8_PREV(q) )'
>
> And by watching the query log, I noticed that the last query before it
> dies (as best I can tell, considering how many queries per second are
> executed), is always from one particular mail server. What I'm asking
> is this -- can a malformed query cause the above error to occur? The
> optimistic part of my personality insists that slapd should not be
> crashable with a malformed query. The realistic side of my personality
> isn't so sure ;-).
>
> If anyone can shed some light on what I'm seeing, and on whether or not
> it could be do to a messed up query, I'd appreciate it. Also, if anyone
> here is bright enough to tell me what's actually failing (I read the
> source code a bit, but I wasn't able to come up with a concrete answer)
> when this error occurs, that would be great to. I'll be taking that
> particular question to the development list, I think.
An assertion, by definition, is a condition that cannot fail; if it
fails,
something unexpected happened. This means there's a bug upstream that
wasn't detected properly. To help debugging this you should provide the
exact operation that caused the assertion (the logs of the server may
help).
A backtrace of the server could also help, i.e. launch slapd (with
debugging
symbols, not the installed version that is usually stripped) under a
debugger,
and, after the assertion is triggered, type 'bt'. You should file an
ITS
(http://www.openldap.org/its) providing this data.
Thanks, Pierangelo.
--
Dr. Pierangelo Masarati | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale | fax: +39 02 2399 8334
Politecnico di Milano |
mailto:pierangelo.masarati@polimi.it
via La Masa 34, 20156 Milano, Italy |
http://www.aero.polimi.it/~masarati