X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/ee8d56f9f308c79ab49c41afb2031a6a31bcf272..1d28cc061677bd07d9bed48dd84bd5c590247043:/src/src/store.c diff --git a/src/src/store.c b/src/src/store.c index c98fcbf21..9e4536eae 100644 --- a/src/src/store.c +++ b/src/src/store.c @@ -5,6 +5,7 @@ /* Copyright (c) The Exim maintainers 2019 - 2022 */ /* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* Exim gets and frees all its store through these functions. In the original implementation there was a lot of mallocing and freeing of small bits of store. @@ -274,6 +275,9 @@ for (pp = paired_pools; pp < paired_pools + N_PAIRED_POOLS; pp++) for (b = pp->chainbase; b; b = b->next) if (is_pointer_in_block(b, p)) return pp; +#ifndef COMPILE_UTILITY +stackdump(); +#endif log_write(0, LOG_MAIN|LOG_PANIC_DIE, "bad memory reference; pool not found, at %s %d", func, linenumber); return NULL;