]> git.ipfire.org Git - thirdparty/bind9.git/commit
Provide more information when the memory allocation fails
authorOndřej Surý <ondrej@isc.org>
Mon, 24 Nov 2025 09:06:51 +0000 (10:06 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 28 Nov 2025 15:45:08 +0000 (16:45 +0100)
commit95cc515e2045772fcdf2286770ec8053f307930d
treee3e064681aa22aedeaa14cc041a9577966ee58d1
parent5ed0cf091be382e2e55d9da9e993a19db525373c
Provide more information when the memory allocation fails

Instead of just crashing when memory allocation fails, also print a
message saying "Out of memory!", the size of the allocation that failed,
total allocated memory from all memory contexts and value of errno.

(cherry picked from commit b0194004d9de54a3be5652ad4eb7ba9b48b11eee)
lib/isc/jemalloc_shim.h
lib/isc/mem.c