> However, as stated above the patch does not fix (REPEAT: This is from my
> end, my system) the hole:
> $ rpm -q zlib1
> zlib1-1.1.3-19mdk
> $ cat 2free.c
> #include <stdio.h>
> #include <stdlib.h>
>
> int main(int argc, char* argv[]) {
> void* foo = malloc(16);
> free(foo);
> free(foo);
> printf("Program ran to completion.\n");
> }
> $ export MALLOC_CHECK=2 && gcc -o 2free 2free.c && ./2free
> Segmentation fault (core dumped)
> $
I'm afraid I misled with that little program. That doesn't demonstrate the
problem, but it's analogous to the problem with zlib and the intent was to
demonstrate the interim solution of setting MALLOC_CHECK_.
Krum