From a4d017f5e5aea12b745e67679ba40753f6d7a778 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 21 Mar 2019 22:21:43 -0700 Subject: [PATCH] Output message before aborting on tcache size-matching check. --- src/tcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tcache.c b/src/tcache.c index be4fb878..e7b970d9 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -123,6 +123,9 @@ tbin_extents_lookup_size_check(tsdn_t *tsdn, cache_bin_t *tbin, szind_t binind, sz_sum -= szind; } if (sz_sum != 0) { + malloc_printf(": size mismatch in thread cache " + "detected, likely caused by sized deallocation bugs by " + "application. Abort.\n"); abort(); } }