malloc() debugging flags broken on RELENG_5

Bartosz Fabianowski freebsd at
Mon Mar 21 09:28:01 PST 2005


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

More information about the freebsd-stable mailing list