title: How to debug crashed android native library?
body: <p>I am runing junit test for native library(C++), native library process crashed and logcat shows:</p>
  
  <pre><code>I/ActivityManager(  161): Force stopping package xxxxx uid=10043
  I/ActivityManager(  161): Start proc xxxxx for added application xxxx: pid=1656 uid=10043 gids={1015}
  I/TestRunner( 1656): started: testAddressBook(xxxxx.AddressBookTest)
  F//system/bin/app_process( 1656): stack corruption detected: aborted
  I/ActivityManager(  161): Process xxxxx (pid 1656) has died.
  </code></pre>
  
  <p>Where xxxxx is the process name.</p>
  
  <p>I try to follow instruction on <a href="http://source.android.com/porting/debugging_native.html" rel="nofollow">http://source.android.com/porting/debugging_native.html</a> , but the instruction is confusing:</p>
  
  <p><em>If it crashes, connect with aproto and run logcat on the device</em></p>
  
  <p>What is aproto? I can't find it. Nor "stack" tool.</p>
  
  <p>Any suggestion is appreciated!</p>
  
  <p>-Henry</p>