[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4390) slapd-ldap crashes with failed assertion
[back to the ITS for discussion]
On Mon, 2006-02-06 at 21:38 +0100, Pierangelo Masarati wrote:
> One thing I've found very interesting and revealing is that right before
> the crash there was an abandon, which could explain why lc_refcnt was
> not zero. I'll try to investigate how and when the abandon was issued,
> to see if it can be reproduced.
The abandon appears to be issued by the client; it refers to msgid 12,
which is not present in the logs so we have no idea of what it refers
to. One point is that it looks like the client ran multiple concurrent
operations on the same connection; at some point it might have issued an
abandon on an early operation (msgid=12 as opposed to msgid=135 of the
latest) and shut down the connection abruptly, while other operations
were still running. Slapd correctly closes the connection, but other
operations are still using the cached connection and thus lc_refcnt is
not 0. Slapd should likely defer connection shutdown until all
operations in that connection either complete or acknowledge the
abandon, and in any case they release the cached connection.
p.
Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team
SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office: +39.02.23998309
Mobile: +39.333.4963172
Email: pierangelo.masarati@sys-net.it
------------------------------------------