glibc/malloc
Pino Toscano e19af3803b muntrace: reset file and hooks before finalizing the stream
fclose will call free, invoking its hook, then fprintf which would indirectly
try to allocate a buffer, and this can cause malloc to be used (thus its hook
to be invoked) if libio uses malloc instead of mmap; given any malloc/free hook
locks the internal lock, this leads to a deadlock.

To prevent this hook roundtrip at muntrace, first unset MALLSTREAM and the
hooks, and only after that close the trace file.
2012-11-19 20:01:00 +01:00
..
arena.c Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
Depend
hooks.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
Makefile Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
malloc.c Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
malloc.h
mallocbug.c
mcheck-init.c
mcheck.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
mcheck.h
memusage.c * malloc/arena.c: Fold copyright years. 2012-09-05 20:47:16 -03:00
memusage.sh Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
memusagestat.c Update --version copyright dates for memusagestat and pcprofiledump. 2012-11-15 01:01:33 +00:00
morecore.c
mtrace.c muntrace: reset file and hooks before finalizing the stream 2012-11-19 20:01:00 +01:00
mtrace.pl Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
obstack.c
obstack.h
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-malloc-usable.c Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0 2012-09-05 21:49:30 +05:30
tst-malloc.c
tst-mallocfork.c
tst-mallocstate.c
tst-mcheck.c
tst-mtrace.c
tst-mtrace.sh Use $(run-program-prefix) in more shell script tests. 2012-10-19 23:30:43 +00:00
tst-obstack.c
tst-trim1.c
tst-valloc.c
Versions