I am using NDK r8 and SDK r18 to compile our app. The app is java/c++, interactions going through JNI.
Sometimes, the app would crash somewhere and I would get a stacktrace. This stacktrace would include offsets where it happened and I could go on and use addr2line to find out where in source did it crash.
Sometimes, I would get addres in the lower range (0x00014f0b), and sometimes in the upper range (0x819a031b). The addresses in the upper range would need to be calculated - subtract 0x8180000 from the actual address to recieve the real offset. But lately, I am getting address like this:
And I don't know how to map 511990b4 to the location of my source files. Below is the header of the stack trace, with relevant registers. I'm not sure if this is related to newer sdk/ndk versions or newer firmware/OS on the device itself.
If I run the app in the emulator (API level 10 - Android 2.3.3), I get different offset numbers (still not usable with addr2line). Note that I am using NDK's arm-linux-androideabi-addr2line.
1817 DEBUG I Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/XWLPD:user/release-keys'
1817 DEBUG I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
1817 DEBUG I r0 deadbaad r1 00000001 r2 40000000 r3 00000000
1817 DEBUG I r4 00000000 r5 00000027 r6 00000004 r7 4be5bca0
1817 DEBUG I r8 be887690 r9 4be5bc98 10 4cc8b2d3 fp be88768c
1817 DEBUG I ip ffffffff sp be8872f8 lr 40080179 pc 4007c8d8 cpsr 60000030
1817 DEBUG I d0 0000000000c5c100 d1 0000000000000000
1817 DEBUG I d2 0000000000000000 d3 439e0000431d0000
1817 DEBUG I d4 8000000000000000 d5 419000003f800000
1817 DEBUG I d6 c0400000c1900000 d7 00c5c10000000000
1817 DEBUG I d8 0000000043470000 d9 431d000042c80000
1817 DEBUG I d10 0000000000000000 d11 0000000000000000
1817 DEBUG I d12 0000000000000000 d13 0000000000000000
1817 DEBUG I d14 0000000000000000 d15 0000000000000000
1817 DEBUG I d16 4168b82010000000 d17 3fe0000000000000
1817 DEBUG I d18 4008000000000000 d19 0000000000000000
1817 DEBUG I d20 3ff0000000000000 d21 8000000000000000
1817 DEBUG I d22 c008000000000000 d23 0000000000000000
1817 DEBUG I d24 0000000000000000 d25 0000000000000000
1817 DEBUG I d26 0000000000000000 d27 e6e6e6e6e6e6e6e6
1817 DEBUG I d28 bffe0d01b7ee0434 d29 3ff0000000000000
1817 DEBUG I d30 0000000000000000 d31 3ff0000000000000
1817 DEBUG I scr 80000012
1817 DEBUG I
1817 DEBUG I #00 pc 000178d8 /system/lib/libc.so
1817 DEBUG I #01 pc 0001ea74 /system/lib/libc.so (__assert2)
Miha.