Java Call library File Error Lookup method

Source: Internet
Author: User

The first step is to find Backtrace:keyword first, and then find the local pc 0000088b/system/lib/libndk_04.so (sayhello+98) where the library file should be wrong.

08-13 17:08:28.041 I/debug (163): BackTrace:

08-13 17:08:28.041 I/debug (163): #00 pc 00021fc0/system/lib/libc.so (tgkill+12)
08-13 17:08:28.041 I/debug (163): #01 pc 00013081/system/lib/libc.so (pthread_kill+48)
08-13 17:08:28.041 I/debug (163): #02 pc 00013295/system/lib/libc.so (raise+10)
08-13 17:08:28.041 I/debug (163): #03 pc 00011fc9/system/lib/libc.so
08-13 17:08:28.041 I/debug (163): #04 pc 00021874/system/lib/libc.so (abort+4)
08-13 17:08:28.041 I/debug (163): #05 pc 0004b11b/system/lib/libdvm.so (dvmabort+78)
08-13 17:08:28.041 I/debug (163): #06 pc 0002d454/system/lib/libdvm.so (Indirectreftable::get (void*) const+252)
08-13 17:08:28.041 I/debug (163): #07 pc 0004f9b7/system/lib/libdvm.so (Dvmdecodeindirectref (Thread*, _jobject* ) +30)
08-13 17:08:28.041 I/debug (163): #08 pc 00051b75/system/lib/libdvm.so

08-13 17:08:28.041 I/debug (163): #09 pc 0000088b/system/lib/libndk_04.so (sayhello+98)


Step Two

Arm-linux-androideabi-addr2line-c-f-e out/target/product/ndp959/symbols/system/lib/libndk_04.so 0000088b

Step Three

Get:

/home/hlwang/tian/tshark/ndp959/development/samples/ndk_04/jni/provider.c:118


Error locating the line to the library file.

Fourth Step

Change it slowly.


Some details can be tested:

Http://doc.okbase.net/xyang81/archive/121689.html

Http://blog.sina.com.cn/s/blog_702c2db50102vc2h.html

http://blog.csdn.net/lubeijing2008xu/article/details/37569809

Http://blog.chinaunix.net/uid-58110-id-2733429.html

Java Call library File Error Lookup method

Related Article

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.