diff --git a/base/src/base/allocator/allocator_avl.cc b/base/src/base/allocator/allocator_avl.cc
index c41b15eaf8..f46359f38a 100644
--- a/base/src/base/allocator/allocator_avl.cc
+++ b/base/src/base/allocator/allocator_avl.cc
@@ -12,6 +12,7 @@
*/
#include
+#include
using namespace Genode;
@@ -328,6 +329,10 @@ void Allocator_avl_base::free(void *addr)
addr_t new_addr = b->addr();
size_t new_size = b->size();
+ if (new_addr != (addr_t)addr)
+ PERR("%s: given address (0x%p) is not the block start address (0x%lx)",
+ __PRETTY_FUNCTION__, addr, new_addr);
+
_destroy_block(b);
add_range(new_addr, new_size);