summaryrefslogtreecommitdiffstats
path: root/libc/bionic/malloc_debug_check.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix the duplication in the debugging code.Elliott Hughes2013-01-181-63/+31
| | | | | | | | | | | | | | | | | | | We had two copies of the backtrace code, and two copies of the libcorkscrew /proc/pid/maps code. This patch gets us down to one. We also had hacks so we could log in the malloc debugging code. This patch pulls the non-allocating "printf" code out of the dynamic linker so everyone can share. This patch also makes the leak diagnostics easier to read, and makes it possible to paste them directly into the 'stack' tool (by using relative PCs). This patch also fixes the stdio standard stream leak that was causing a leak warning every time tf_daemon ran. Bug: 7291287 Change-Id: I66e4083ac2c5606c8d2737cb45c8ac8a32c7cfe8
* Fix realloc(3) when chk_malloc debugging is on.Elliott Hughes2012-10-121-4/+6
| | | | | | | | The tests for a NULL pointer and size 0 were the wrong way round. From Intel's patch 9cae4f2ffc4778ed82be04711d8775a84092d4e2. Change-Id: I118aff3358aa5f34126d74bfaa43f6e2f1a89055
* Fix dlerror(3).Elliott Hughes2012-10-111-14/+13
| | | | | | | | | | Add unit tests for dlerror(3) in various situations. I think We're at least as good as glibc now. Also factor out the ScopedPthreadMutexLock and use it here too. Bug: http://code.google.com/p/android/issues/detail?id=38398 Change-Id: I040938b4366ab836e3df46d1d8055b92f4ea6ed8
* Clean up warnings in the malloc_debug_* files.Elliott Hughes2012-08-291-0/+518
Also clean up cpplint.py-detected lint. Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b