mirror of git://sourceware.org/git/glibc.git
tst-obprintf failed with GCC 4.7.
It turned out that this is the fault of GCC optimizing away the
following from malloc/mcheck.c:
/* We call malloc() once here to ensure it is initialized. */
void *p = malloc (0);
free (p);
gcc sees the malloc(0);free pair and removes it completely.
And now malloc is not properly initialized and we screw up if both
mcheck is used (via tst-obprintf) and MALLOC_CHECK_ is set (as it is in my
environment).
|
||
|---|---|---|
| .. | ||
| Depend | ||
| Makefile | ||
| Versions | ||
| arena.c | ||
| hooks.c | ||
| malloc.c | ||
| malloc.h | ||
| mallocbug.c | ||
| mcheck-init.c | ||
| mcheck.c | ||
| mcheck.h | ||
| memusage.c | ||
| memusage.sh | ||
| memusagestat.c | ||
| morecore.c | ||
| mtrace.c | ||
| mtrace.pl | ||
| obstack.c | ||
| obstack.h | ||
| set-freeres.c | ||
| thread-freeres.c | ||
| tst-calloc.c | ||
| tst-malloc.c | ||
| tst-mallocfork.c | ||
| tst-mallocstate.c | ||
| tst-mcheck.c | ||
| tst-mtrace.c | ||
| tst-mtrace.sh | ||
| tst-obstack.c | ||
| tst-trim1.c | ||
| tst-valloc.c | ||