aboutsummaryrefslogtreecommitdiffstats
path: root/libc/tzcode
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-06-30 18:32:03 +0200
committerDavid 'Digit' Turner <digit@android.com>2011-07-05 19:53:53 +0200
commit7708a89c60e7b024d31c48c8034932c5e9f0aceb (patch)
treed74fbfa8efa44b57fe91e768b4bea8834c49dd31 /libc/tzcode
parent2f5c6d2d663591b0b5cff9f7e90f58f12a5967eb (diff)
downloadandroid_bionic-7708a89c60e7b024d31c48c8034932c5e9f0aceb.tar.gz
android_bionic-7708a89c60e7b024d31c48c8034932c5e9f0aceb.tar.bz2
android_bionic-7708a89c60e7b024d31c48c8034932c5e9f0aceb.zip
libc: Add logcat error message for memory corruption
Our dlmalloc implementation currently calls abort() when it detects that the heap is corrupted, or that an invalid pointer is passed to one of its functions. The only way to detect this is because abort() will force-fully crash the current program with a magic fault address of '0xdeadbaad'. However, this is not really well documented, and a frequent topic on the android-ndk forum (among others). This change makes our dlmalloc code dump a simple message to the log just before the abort() call (and hence before the stack trace) to better help identify the problem. Change-Id: Iebf7eb7fe26463ecadfaca8f247d237edb441e3c
Diffstat (limited to 'libc/tzcode')
0 files changed, 0 insertions, 0 deletions