- 14 Aug, 2014 1 commit
-
-
Dmitriy Ivanov authored
(cherry picked from commit 51a22a12) Bug: 17013324 Change-Id: I345c9d0fecc29d3626c5be01cc3c0ed1583ac361
-
- 17 Jul, 2014 2 commits
-
-
Elliott Hughes authored
(cherry picked from commit 2f9c6e38) Change-Id: Ia8e96da98802d312011df866ac1baaa48f97811c
-
Elliott Hughes authored
Also remove __bionic_name_mem which has exactly one caller, and is only ever expected to be used in this one place. (cherry picked from commit d7453860) Change-Id: I26b7638609e9d4eaf4f21ae29721ea27d4176702
-
- 04 Jun, 2014 1 commit
-
-
Elliott Hughes authored
We need to leave dlmalloc_trim and dlmalloc_inspect_all exposed for the VM, but if we're seriously looking at other malloc implementations, that's something we're going to have to fix. Bug: 11156955 Change-Id: If85156c280044f1616c09a3c50ba674aaf0e8d3a
-
- 15 May, 2014 1 commit
-
-
Dmitriy Ivanov authored
* Register cleanup function with atexit instead of calling it explicitly on exit() * abort() no longer calls _cleanup: Flushing stdio buffers on abort is no longer required by POSIX. * dlmalloc no longer need to reset cleanup (see above) * Upstream findfp.c makebuf.c setvbuf.cexit.c to openbsd versions. Bug: 14415367 Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
-
- 08 Aug, 2013 1 commit
-
-
Colin Cross authored
Use the new __bionic_name_mem function to name malloc'd memory as "libc_malloc" on kernels that support it. Change-Id: I7235eae6918fa107010039b9ab8b7cb362212272
-
- 12 Jun, 2013 1 commit
-
-
Elliott Hughes authored
* A dlmalloc usage error shouldn't call abort(3) because we want to cause a SIGSEGV by writing the address dlmalloc didn't like to an address the kernel won't like, so that debuggerd will dump the memory around the address that upset dlmalloc. * Switch to the simpler FreeBSD/NetBSD style of registering stdio cleanup. Hopefully this will let us simplify more of the stdio implementation. * Clear the stdio cleanup handler before we abort because of a dlmalloc corruption error. This fixes the reported bug, where we'd hang inside dlmalloc because the stdio cleanup reentered dlmalloc. Bug: 9301265 Change-Id: Ief31b389455d6876e5a68f0f5429567d37277dbc
-
- 05 Apr, 2013 2 commits
-
-
Elliott Hughes authored
This adds __libc_fatal, cleans up the internal logging code a bit more, and switches suitable callers over to __libc_fatal. In addition to logging, __libc_fatal stashes the message somewhere that the debuggerd signal handler can find it before calling abort. In the debuggerd signal handler, we pass this address to debuggerd so that it can come back with ptrace to read the message and present it to the user. Bug: 8531731 (cherry picked from commit 0d787c1f) Change-Id: I5daeeaa36c1fc23f7f437d73a19808d9d558dd4d
-
Elliott Hughes authored
This adds __libc_fatal, cleans up the internal logging code a bit more, and switches suitable callers over to __libc_fatal. In addition to logging, __libc_fatal stashes the message somewhere that the debuggerd signal handler can find it before calling abort. In the debuggerd signal handler, we pass this address to debuggerd so that it can come back with ptrace to read the message and present it to the user. Bug: 8531731 Change-Id: I416ec1da38a8a1b0d0a582ccd7c8aaa681ed4a29
-
- 03 Apr, 2013 2 commits
-
-
Elliott Hughes authored
(cherry-pick of 4ace92c6.) Bug: 8460659 Change-Id: I1a9dc30cbf6a7a2c68cb3d8000921e9178eedb85
-
Elliott Hughes authored
Bug: 8460659 Change-Id: Ib0ee71e3cf61e122d0449c9d8a4e4670a7d7129a
-
- 25 Mar, 2013 1 commit
-
-
Elliott Hughes authored
Bug: 8468088 Change-Id: I1ff6d51ec17fc74ef56229aa76d2986cbd662874
-
- 15 Mar, 2013 1 commit
-
-
Elliott Hughes authored
We only need one logging API, and I prefer the one that does no allocation and is thus safe to use in any context. Also use O_CLOEXEC when opening the /dev/log files. Move everything logging-related into one header file. Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
-
- 22 Jan, 2013 1 commit
-
-
Elliott Hughes authored
Change-Id: I88afe0201ee5766a295fc5a9e710fba9d6e0d363
-
- 12 Jan, 2013 1 commit
-
-
Ian Rogers authored
Change-Id: Icc53ba1eecb8445210623826d8e99a611d686f7f
-
- 28 Aug, 2012 1 commit
-
-
Ian Rogers authored
This reverts commit f72ee269.
-
- 22 Aug, 2012 2 commits
-
-
Brian Carlstrom authored
This reverts commit 99908918.
-
Brian Carlstrom authored
This reverts commit 99908918.
-
- 20 Aug, 2012 1 commit
-
-
Ian Rogers authored
Move dlmalloc code to upstream-dlmalloc to make pulling upstream changes easier. Declare pvalloc and malloc_usable_size routines present in malloc.h but with missing implementations. Remove other functions from malloc.h that have no implementation nor use in Android. Change-Id: Ia6472ec6cbebc9ad1ef99f4669de9d33fcc2efb4
-
- 19 Jun, 2012 1 commit
-
-
Ben Cheng authored
Change-Id: I8f72c5c7e23960b13fc53e2354cd74aca8aac3c0
-
- 25 May, 2012 2 commits
-
-
Ben Cheng authored
For example: @@@ ABORTING: INVALID HEAP ADDRESS IN dlfree addr=0x5c3bfbd0 Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2942 The addr=0x5c3bfbd0 part is new. Change-Id: I8670144b2b0a3a6182384150d762c97dfee5452f
-
Ben Cheng authored
For example: @@@ ABORTING: INVALID HEAP ADDRESS IN dlfree addr=0x5c3bfbd0 Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2942 The addr=0x5c3bfbd0 part is new. Change-Id: I8670144b2b0a3a6182384150d762c97dfee5452f
-
- 27 Apr, 2012 1 commit
-
-
Ken Sumrall authored
The posix_memalign(3) function is very similar to the traditional memalign(3) function, but with better error reporting and a guarantee that the memory it allocates can be freed. In bionic, memalign(3) allocated memory can be freed, so posix_memalign(3) is just a wrapper around memalign(3). Change-Id: I62ee908aa5ba6b887d8446a00d8298d080a6a299
-
- 21 Mar, 2012 1 commit
-
-
Ben Cheng authored
BUG: 6206963 Change-Id: Id2ab580246de50a4511b56a734a7bece98fb945c
-
- 15 Dec, 2011 1 commit
-
-
Ken Sumrall authored
The posix_memalign(3) function is very similar to the traditional memalign(3) function, but with better error reporting and a guarantee that the memory it allocates can be freed. In bionic, memalign(3) allocated memory can be freed, so posix_memalign(3) is just a wrapper around memalign(3). Change-Id: I62ee908aa5ba6b887d8446a00d8298d080a6a299
-
- 06 Jul, 2011 4 commits
-
-
Jean-Baptiste Queru authored
This reverts commit 368ee1e4.
-
David 'Digit' Turner authored
libcutils/mspace.c includes libc/bionic/dlmalloc.c, we need to take care of the fact that any internal C library function cannot be used from it. Change-Id: I0bc81ae090b7ac2d464f26b97fc6b94a08cdad9c
-
David 'Digit' Turner authored
Change-Id: Ia46b50aec51a55434c8828a73e07f4732f8f6c1c
-
Mathew Inwood authored
This fixes the build. This reverts commit 7708a89c.
-
- 05 Jul, 2011 1 commit
-
-
David 'Digit' Turner authored
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
-
- 18 Nov, 2009 1 commit
-
-
Vladimir Chtchetkine authored
This change is intended to eliminate need to replace libc.so with libc_debug.so in order to enablememory allocation debugging. This is also the first step towards implementing extended memoryallocation debugging using emulator's capabilities in monitoring memory access.
-
- 13 Nov, 2009 1 commit
-
-
Jean-Baptiste Queru authored
-
- 02 Jun, 2009 1 commit
-
-
Barry Hayes authored
-
- 04 Mar, 2009 2 commits
-
-
The Android Open Source Project authored
-
The Android Open Source Project authored
-
- 21 Oct, 2008 1 commit
-
-
The Android Open Source Project authored
-