History log of /system/core/debuggerd/util.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2b2ae0c88ef83c4c53297ff54fa601b18c014fa4 21-Aug-2017 Josh Gao <jmgao@google.com> crash_dump: fork a copy of the target's address space.

Reduce the amount of time that a process remains paused by pausing its
threads, fetching their registers, and then performing unwinding on a
copy of its address space. This also works around a kernel change
that's in 4.9 that prevents ptrace from reading memory of processes
that we don't have immediate permissions to ptrace (even if we
previously ptraced them).

Bug: http://b/62112103
Bug: http://b/63989615
Test: treehugger
Change-Id: I7b9cc5dd8f54a354bc61f1bda0d2b7a8a55733c4
/system/core/debuggerd/util.cpp
fdf832dfd3b2f1be9d3ba831ff85b323a61ee8a3 26-Aug-2017 Josh Gao <jmgao@google.com> base: add Pipe and Socketpair wrappers.

Also, switch debuggerd_handler over to using android::base::unique_fd.

Test: treehugger
Change-Id: I97b2ce22f1795ce1c4370f95d00d769846cc54b8
/system/core/debuggerd/util.cpp
2d377cd6888775fe682e49a1ac34a3a6feb78708 10-May-2017 Narayan Kamath <narayan@google.com> tombstoned: Add a shared library version of libtombstoned_client...

.. for ART and the frameworks to link against. In the new stack dumping
scheme (see related bug), the Java runtime will communicate with
tombstoned in order to obtain a FD to which it can write its traces.

Also move things around to separate headers that are private
implementation details from headers that constitute the public debuggerd
API. There are currently only three such headers :

- tombstoned/tombstoned.h
- debuggerd/client.h
- debuggerd/handler.h

Bug: 32064548
Test: make

Change-Id: If1b8578550e373d84828b180bbe585f1088d1aa3
/system/core/debuggerd/util.cpp
ac225780dd6ccf217e5fb64c7af8f41f9c54f4a1 25-Apr-2017 Christopher Ferris <cferris@google.com> Move libc_logging to libasync_safe.

Move the name of the "private/libc_logging.h" header to <async_safe/log.h>.

For use of libc_malloc_debug_backtrace, remove the libc_logging library.
The library now includes the async safe log functions.

Remove the references to libc_logging.cpp in liblog, it isn't needed because
the code is already protected by a check of the __ANDROID__ define.

Test: Compiled and boot bullhead device.
Test: Run debuggerd unit tests.
Test: Run liblog unit tests on target and host.
Test: Run libmemunreachable unit tests (these tests are flaky though).
Change-Id: Ie79d7274febc31f210b610a2c4da958b5304e402
/system/core/debuggerd/util.cpp
e1aa0ca58a2a356039047ffcc8a98d85d1bce8ed 02-Mar-2017 Josh Gao <jmgao@google.com> debuggerd_handler: implement missing fallback functionality.

Allow the fallback implementation to dump traces and create tombstones
in seccomped processes.

Bug: http://b/35858739
Test: debuggerd -b `pidof media.codec`; killall -ABRT media.codec
Change-Id: I381b283de39a66d8900f1c320d32497d6f2b4ec4
/system/core/debuggerd/util.cpp
cbe70cb0a8cb0171f3802273050e851a47b090ed 19-Oct-2016 Josh Gao <jmgao@google.com> debuggerd: advance our amazing bet.

Remove debuggerd in favor of a helper process that gets execed by
crashing processes.

Bug: http://b/30705528
Test: debuggerd_test
Change-Id: I9906c69473989cbf7fe5ea6cccf9a9c563d75906
/system/core/debuggerd/util.cpp