일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 보안
- OOM
- KTS
- Android
- 코틀린
- Eclipse
- ActiveMovieControl
- build.gradle
- 하버드
- kotlin
- charset
- 안드로이드 개발
- Android 4.1
- 구글
- 리눅스
- 자바
- Leak
- java
- 안철수
- gradle
- git
- mime
- C++
- linux
- 노개북
- ActiveX
- 안드로이드
- 개발
- 탐지기법
- Today
- Total
꿈소년의 개발 이야기
ndk-stack 으로 so 파일 debugging 하기 본문
https://code.google.com/p/android-ndk-stacktrace-analyzer/wiki/Usage
android ndk 내에 ndk-stack 이 있다.
라이브러리에서 생긴 문제가 되는 라인이 어딘지 찾아낸다.
1) adb logcat | ndk-stack -sym <Path to your shared libraries>
2) ndk-stack -sym <Path to your shared libraries> -dump <file name containing the crash logs>
Usage:
------
To do this, you will first need a directory containing symbolic versions of your
application's shared libraries. If you use the NDK build system (i.e. ndk-build),
then these are always located under $PROJECT_PATH/obj/local/<ab>, where
<ab> stands for your device's ABI (i.e. 'armeabi' by default).
You can feed the logcat text either as direct input to the program, e.g.:
adb logcat | $NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi
Or you can use the -dump option to specify the logcat as an input file, e.g.:
adb logcat > /tmp/foo.txt
$NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump foo.txt
추가적으로 tomstone 파일과 합쳐서 보기
cat <tombstone 파일> | ndk-stack –sym /out/target/product/generic/symbols/system/lib >> symbol.txt
'Android Development' 카테고리의 다른 글
Activity 방향 고정하기 (0) | 2014.10.01 |
---|---|
SQLiteOpenHelper Singleton instance creating. (0) | 2013.07.04 |
Activity unregister / Leaked IntentReceiver issue (0) | 2013.05.09 |
NFC Guide (0) | 2013.05.08 |
DDMS thread dump (0) | 2013.03.30 |