From 96c1a24224e7b765bfbd391c255860cb3f1390f4 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 12 Sep 2023 17:27:07 +0200 Subject: [PATCH] DEBUG: pools: also print the item's pointer when crashing It's important to inspect a core or recognize some values to have the item pointer, it was not provided. --- src/pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pool.c b/src/pool.c index 6c49178b4..f4b99a432 100644 --- a/src/pool.c +++ b/src/pool.c @@ -951,8 +951,9 @@ void pool_inspect_item(const char *msg, struct pool_head *pool, const void *item chunk_appendf(&trash, ")\n" + " item: %p\n" " pool: %p ('%s', size %u, real %u, users %u)\n", - pool, pool->name, pool->size, pool->alloc_sz, pool->users); + item, pool, pool->name, pool->size, pool->alloc_sz, pool->users); if (pool_debugging & POOL_DBG_TAG) { const void **pool_mark;