]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG: pools: also print the item's pointer when crashing
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Sep 2023 15:27:07 +0000 (17:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Sep 2023 16:14:05 +0000 (18:14 +0200)
It's important to inspect a core or recognize some values to have the
item pointer, it was not provided.

src/pool.c

index 6c49178b44d0aaeb56b686348d964acb924e7cb3..f4b99a4327100c2078b43e75fee47d78e62b475d 100644 (file)
@@ -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;