From 65a8eb606f2104f4b14514fa2a89d2867167793b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 25 Mar 2013 13:48:41 -0700 Subject: [PATCH] Clarify the dlmalloc USAGE_ERROR. Bug: 8468088 Change-Id: I1ff6d51ec17fc74ef56229aa76d2986cbd662874 --- libc/bionic/dlmalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/bionic/dlmalloc.c b/libc/bionic/dlmalloc.c index 7d4ef0f71..87f772b80 100644 --- a/libc/bionic/dlmalloc.c +++ b/libc/bionic/dlmalloc.c @@ -47,7 +47,8 @@ static void __bionic_heap_corruption_error(const char* function) { } static void __bionic_heap_usage_error(const char* function, void* address) { - __libc_format_log(ANDROID_LOG_FATAL, "libc", "@@@ ABORTING: invalid address %p passed to %s", + __libc_format_log(ANDROID_LOG_FATAL, "libc", + "@@@ ABORTING: invalid address or address of corrupt block %p passed to %s", address, function); // So that we can get a memory dump around the specific address. *((int**) 0xdeadbaad) = (int*) address;