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

(ITS#6951) pcache: valgrind reports some errors when bind-caching is enabled



Full_Name: Ralf Haferkamp
Version: 2.4.25/HEAD
OS: 
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (89.166.222.177)
Submitted by: ralf


I get this when starting a bind-caching slapo-pcache setup under valgrind:

==18290== Invalid write of size 1
==18290==    at 0x59628F: ftemp_attrs (pcache.c:490)
==18290==    by 0x5A29E0: pc_cf_gen (pcache.c:4199)
[..]
==18290==  Address 0x768dcc6 is 0 bytes after a block of size 6 alloc'd
==18290==    at 0x4C2683D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18290==    by 0x509CC85: ber_memalloc_x (memory.c:228)
==18290==    by 0x46B958: ch_malloc (ch_malloc.c:54)
==18290==    by 0x596206: ftemp_attrs (pcache.c:448)
[..]
==18290== 
==18290== Invalid write of size 1
==18290==    at 0x5A3153: pc_cf_gen (pcache.c:4281)
[..]
==18290==  Address 0x768e437 is 0 bytes after a block of size 7 alloc'd
==18290==    at 0x4C2683D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==18290==    by 0x509CC85: ber_memalloc_x (memory.c:228)
==18290==    by 0x46B958: ch_malloc (ch_malloc.c:54)
==18290==    by 0x5A30D5: pc_cf_gen (pcache.c:4270)
[..]
A fix is on the way to HEAD.