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

Re: (ITS#5163) slapd segfaults when running as proxy-caching server

> While running slapd as a proxy-caching server, it sometimes falls over
> with a
> signal 11 segfault.  I haven't been able to reproduce this and it can
> occur when
> the system is quiet and nothing much running....

I think this issue has been already fixed, incidentally, in HEAD/re24, but
went unnoticed in re23.  You should replace the call to ch_malloc() that's
around line 1140 in servers/slapd/overlays/pcache.c with a call to
ch_calloc(); something like

        *new_attrs = (AttributeName*)ch_calloc( count + 1,

(sorry, I can't access the network right now but by webmail).  In fact,
right now, the array of AttributeName "new_attrs" is accessed by an_find()
while not yet NULL terminated.  Please check and report (to create the
problem, you need to use filters that contain the attributes that will be


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it