Frida can print out backtrace with below code:
var backtrace = Thread.backtrace(this.context, Backtracer.ACCURATE)
.map(DebugSymbol.fromAddress)
.join("\n\t");
The output looks like below in android:
0x72e82c2a50 libc.so!fopen64+0x50
0x72e82c2a4c libc.so!fopen64+0x4c
But when I try to use addr2line to get code line, it doesn't work:
$ addr2line -f -C -i -e symbols/apex/com.android.runtime.release/lib64/bionic/libc.so 0x72e82c2a50
??
??:0
Sounds like that address is not the actual PC as crash stack. How can I translate this address to be used in addr2line tool?