Android Debug Stack via adb and NDK

Source: Internet
Author: User

Open Terminal, enter the following command, Armeabi is the path of the application compiled. So library

ADB logcat|ndk-stack-sym./armeabi/

If the stack error, it will pop up the error content.

As follows:

C:\USERS\JC>ADB Logcat | E:\Users\android-ndk-r10c\ndk-stack-sym "F:\aofei-new\frameworks\runtime-src\proj.android\obj\local\armeabi"
Crash Dump: **********
Build fingerprint: ' Huawei/h30-t00/hwh30-t00:4.2.2/huaweih30-t00/c00b149:user/ota-rel-keys,release-keys '
pid:22716, tid:22771, name:thread-4817 >>> com.joygames.hhw.alpha <<<
Signal (SIGSEGV), Code 1 (segv_maperr), fault addr 2c55e3ab
Stack frame I/debug (22996): #00 pc 008920e0/data/app-lib/com.joygames.hhw.alpha-1/libgame.so (std::__detail::_hash_ code_base<std::string, std::p air<std::string const, STD::STRING&GT;, std::__detail::_select1st, std::hash< Std::string&gt, Std::__detail::_mod_range_hashing, Std::__detail::_default_ranged_hash, true>::_M_bucket_ Index (STD::__DETAIL::_HASH_NODE&LT;STD::p air<std::string const, STD::STRING&GT;, true> const*, unsigned int) CONST+40): Routine std::__detail::_hash_code_base<std::string, std::p air<std::string const, STD::STRING&GT; std::__detail::_select1st, Std::hash<std::string>, Std::__detail::_mod_range_hashing, Std::__detail::_ Default_ranged_hash, True>::_m_bucket_index (std::__detail::_hash_node<std::p air<std::string const, std:: String>, true> const*, unsigned int) const at e:/users/android-ndk-r10c/sources/cxx-stl/gnu-libstdc++/4.9/ include/bits/hashtable_policy.h:1272
Stack frame I/debug (22996): #01 pc 00891bb8/data/app-lib/com.joygames.hhw.alpha-1/libgame.so (std::_hashtable<std :: String, std::p air<std::string const, STD::STRING&GT;, STD::ALLOCATOR&LT;STD::p air<std::string const, std:: String>, std::__detail::_select1st, Std::equal_to<std::string>, Std::hash<std::string>, std::__ Detail::_mod_range_hashing, Std::__detail::_default_ranged_hash, Std::__detail::_prime_rehash_policy, std::__ Detail::_hashtable_traits<true, f+40): Routine std::_hashtable<std::string, std::p air<std::string Const, Std::string&gt, STD::ALLOCATOR&LT;STD::p air<std::string const, std::string>;, std::__detail::_select1st, Std::equal_to<std::string>, Std::hash<std::string>, Std::__detail::_mod_range_hashing, Std::__detail: : _default_ranged_hash, Std::__detail::_prime_rehash_policy, Std::__detail::_hashtable_traits<true, False, True > >::_m_bucket_index (STD::__DETAIL::_HASH_NODE&LT;STD::p air<std::string Const,Std::string>, true>*) const at e:/users/android-ndk-r10c/sources/cxx-stl/gnu-libstdc++/4.9/include/bits/ hashtable.h:610

Android Debug Stack via adb and NDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.