菜鸟求助:Fatal signal 11 (SIGSEGV), code 2, fault addr 0x7f7a809ce0 in tid 2169
在android5.1.1源码的内核部分编写了一个点亮LED灯的驱动,然后在HAL层、framework层添加各个接口,编译完将system.img烧到开发板,开发板上电后,在start APP过程中系统崩溃,反复重启。通过adb logcat保存log如下:
I/SystemServer( 2182): DiskStats Service
I/SystemServer( 2182): Swtled Service
I/SwtledService( 2182): call init_native()
I/SwtledService( 2182): Swtled JNI: initializing...
F/libc ( 2182): Fatal signal 11 (SIGSEGV), code 2, fault addr 0x7f7977cce0 in tid 2182 (system_server)
I/DEBUG ( 303): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 303): Build fingerprint: 'Android/msm8916_64/msm8916_64:5.1.1/LMY47V/embedded01130902:userdebug/test-keys'
I/DEBUG ( 303): Revision: '0'
I/DEBUG ( 303): ABI: 'arm64'
I/DEBUG ( 303): pid: 2182, tid: 2182, name: system_server >>> system_server <<<
I/DEBUG ( 303): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7f7977cce0
I/DEBUG ( 303): x0 0000000000000000 x1 0000007f7976cb70 x2 0000000000000000 x3 0000000000000000
I/DEBUG ( 303): x4 8080000000000000 x5 0000000000000000 x6 0000000000008080 x7 feff63646b737672
I/DEBUG ( 303): x8 7f7f7f7f7f7f7f7f x9 0000007f8f364000 x10 0101010101010101 x11 0000000000000030
I/DEBUG ( 303): x12 0000000000000036 x13 00000000000001b0 x14 0000000000000011 x15 000000000000000d
I/DEBUG ( 303): x16 0000007f8f375fe0 x17 0000007f8f8f02d8 x18 0000000000000000 x19 0000000000000020
I/DEBUG ( 303): x20 0000007f7977ccb8 x21 0000007f8f375000 x22 0000007f7af36d28 x23 0000007f8f364cd8
I/DEBUG ( 303): x24 0000007f7976cb68 x25 0000007f7b244600 x26 0000007fe22043e8 x27 0000007fe22023a8
I/DEBUG ( 303): x28 0000007fe22013a8 x29 0000007fe2200340 x30 0000007f8f364ad8
I/DEBUG ( 303): sp 0000007fe2200340 pc 0000007f8f364adc pstate 0000000040000000
I/DEBUG ( 303):
I/DEBUG ( 303): backtrace:
I/DEBUG ( 303): #00 pc 0000000000000adc /system/lib64/libhardware.so (hw_get_module_by_class+264)
I/DEBUG ( 303): #01 pc 0000000000021d08 /system/lib64/libandroid_servers.so
I/DEBUG ( 303): #02 pc 0000000000125054 /data/dalvik-cache/arm64/system@framework@services.jar@classes.dex
望各位大侠指导一下,谢谢了!