首页 > 代码库 > 使用ndk-stack来查找崩溃

使用ndk-stack来查找崩溃

使用ndk-stack来查找崩溃
       ./adb logcat|ndk-stack -sym /Users/chenxu/work/c++/cocos2d-x-2.1.4/work/doudizhu/proj.android/obj/local/armeabi/      
      

       ********** Crash dump: **********Build fingerprint: ‘Huawei/U9510E/hwu9510e:4.0.4/HuaweiU9510E/CHNC00B122:user/ota-rel-keys,release-keys‘pid: 27322, tid: 27322  >>> com.nbgame.doudizhu <<<signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000Stack frame #00  pc 003b8158  /data/data/com.nbgame.doudizhu/lib/libgame.so (_ZN12GameProtocal19createServerMessageEi): Routine createServerMessage in /Users/chenxu/work/c++/cocos2d-x-2.1.4/work/doudizhu/proj.android/../../../baisonext/NetWork/GameProtocal.cpp:46Stack frame #01  pc 003b7dcc  /data/data/com.nbgame.doudizhu/lib/libgame.so (_ZN7Network20dispatchNetworkErrorEi): Routine dispatchNetworkError in /Users/chenxu/work/c++/cocos2d-x-2.1.4/work/doudizhu/proj.android/../../../baisonext/NetWork/Network.cpp:319

使用ndk-stack来查找崩溃