2
0
mirror of git://sourceware.org/git/glibc.git synced 2025-02-17 13:00:43 +08:00
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
Depend
hooks.c
Makefile Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
malloc.c
malloc.h
mallocbug.c
mcheck-init.c
mcheck.c
mcheck.h
memusage.c
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
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