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

Re: (ITS#4848) Another slapd startup segfault



ando@sys-net.it wrote:

>> # No limits for CNO-LDC
>> limits dn.children="ou=CNO-LDC,ou=People,dc=o2online,dc=de" size=unlimited
>> time=unlimited
> 
> Is this "time=unlimited" starting in the first column a wrap of the
> mailer or is it really there?  Something absurd is happening: that limit
> option starting in the first column is a syntax error, but 2.3 ignores
> it.  What's odd is that with this syntax error I exactly get your crash,
> while without it I don't get any crash.


The above had nothing to do with your problem.  Your problem is related
to the fact that you intermixed overlay and database configuration
statements, so the idletimeout statement after the accesslog overlay
instantiation was causing invalid memory write (beyond the private data
of the accesslog overlay instead of in the private data of the bdb
database) resulting in heap corruption.

Maybe it hasn't been stressed enough, but the order of directives is:

- global

[- global overlay
[- global overlay
[...]
]]

[- database

[- overlay
[- overlay
[...]
]]

[- database

[- overlay
[- overlay
[...]
]]]]

and each overlay's directives have to appear before any other overlay's.

I'll see if sanity checks may be added to avoid your issue.

p.



Ing. Pierangelo Masarati
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
------------------------------------------