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

Segmentation fault parsing replication log (ITS#2727)



Full_Name: Jean Jordaan
Version: 2.0.25-r2
OS: Linux
URL: 
Submission from: (NULL) (196.44.35.51)


Starting up slurpd with a problematic replication log results in a segmentation
fault.

Here is the session, with debugging turn way up:

"""
blommie creme_bundle # /usr/lib/openldap/slurpd -d 65536 -f
/home/jean/work/creme_bundle/slapd.conf -r
/home/jean/zope-instances/CremeNG.HEAD/var/creme.ldif
Warning: unknown replica blommie:0 found in replication log
Error: Re_parse: bad type <changeType>
Warning: freeing re (dn: uid=Contact_37,ou=People,dc=creme,dc=emss,dc=co,dc=za)
with nonzero refcnt
error: malformed replog entry (begins with "replica: blommie:389")
Error: Re_parse: bad type <changeType>
Warning: freeing re (dn: uid=Contact_4,ou=People,dc=creme,dc=emss,dc=co,dc=za)
with nonzero refcnt
[... 10 more errors like this ...]
error: malformed replog entry (begins with "replica: blommie:389")
Error: Re_parse: bad type <changeType>
Warning: freeing re (dn: uid=Contact_40,ou=People,dc=creme,dc=emss,dc=co,dc=za)
with nonzero refcnt
error: malformed replog entry (begins with "replica: blommie:389")
Warning: unknown replica localhost:9999 found in replication log
Warning: unknown replica jean:389 found in replication log
Warning: unknown replica localhost:389 found in replication log
Segmentation fault
"""

Here are some of the entries it is complaining about (they are all
similar):

"""
replica: blommie:389
time: 1062144101
dn: uid=Contact_37,ou=People,dc=creme,dc=emss,dc=co,dc=za
changeType: delete

replica: blommie:389
time: 1062144102
dn: uid=Contact_4,ou=People,dc=creme,dc=emss,dc=co,dc=za
changeType: delete

replica: blommie:389
time: 1062144102
dn: uid=Contact_44,ou=People,dc=creme,dc=emss,dc=co,dc=za
changeType: delete
"""

It doesn't complain about "changetype" without a capital T.

Truncating the logfile so that the invalid entries go away works, 
but I don't think it should be Segfaulting ..