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

Re: (ITS#4156) test036-meta-concurrency - glibc detected: double free or corruption

> Pierangelo Masarati wrote:
>> I routinely run this test and others under valgrind, and I've fixed a
>> few of these occurrences recently.  If you could provide some more
>> details, e.g. a stack backtrace from a core dump, or a detailed
>> diagnosis from some program like valgrind...
> Actually the test hangs on my system and after I abort with Ctrl+C the
> glibc message is displayed.

please check if my recent commit:

Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/back-meta

Modified Files:
        conn.c  1.67 -> 1.68

Log Message:
remove from AVL before freeing...

fixed the issue.  I don't think it's directly related to the hanging, but
it fixed a double-free detection I saw at shutdown (in case of broken
connection, the metaconn_t structure was being freed without being
expunged from the connection tree...).

This issue was introduced in HEAD (by myself, sorry) quite recently, and
it didn't make into any release, so it cannot be blamed for any other
issue with back-meta; and the hanging has been around for quite a while...



Pierangelo Masarati

Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it