Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2005 18:27:52 +0100
From:      Bartosz Fabianowski <freebsd@chillt.de>
To:        freebsd-stable@freebsd.org
Subject:   malloc() debugging flags broken on RELENG_5
Message-ID:  <423F0418.3050702@chillt.de>

next in thread | raw e-mail | index | archive | help
Hi

Some commit in the last few weeks has broken the malloc() debug flags on RELENG_5. According to the man page, a call to free() or realloc() with a modified pointer should cause a warning. Setting the "A" flag in either /etc/malloc.conf or MALLOC_OPTIONS should turn this into an error. However, what happens is that this *always* causes an error. And even setting the corresponding "a" flag does not turn it into a warning. This is very unfortunate as some poorly written programs (KDE's Kopete messenger in my case) seem to rely on the fact that free() and realloc() with modified pointers are OK.

- Bartosz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?423F0418.3050702>