On Oct 20, 10:22 am, Bryan Ashby <
nuskoo...@gmail.com> wrote:
> What I'm after is a way to force the application to crash (e.g. a
> unhandled signal or such) that will then dump a stack trace to logcat.
> Is this possible?
Hit the process with the same signal twice. Signal 6 (SIGABRT) will
work for this.
The first signal causes the signal handler in the process to wake up
debuggerd, which attaches with ptrace. The second signal causes a
ptrace event that results in debuggerd logging the stacks. (The log
will only show the main thread; look in /data/tombstones for the
rest.)