frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x38 in tid 16884 #774

Closed 2361788963 closed 9 months ago

2361788963 commented 9 months ago

I am using frida-gum directly in my android project I just use GumAddress address = gum_module_find_base_address("libart.so"); It cause an error. -> Fatal signal 11 (SIGSEGV), code 1, fault addr 0x38 in tid 16884 Not only that, I used other gum_module_xxx function,and it report the same error
-> Fatal signal 11 (SIGSEGV), code 1, fault addr 0x38 in tid 16884 I switched to the latest version and this is what happened too. Why is this happening? It works fine with frida-service, but not with frida-gum in an Android project.

2361788963 commented 9 months ago

Sorry, it was my mistake, I didn't use gum_init_embedded () Initialize

2361788963 commented 9 months ago

But now I have a new problem, why I can get the symbols in the emulator at frida-service using Module.enumerateSymbols("libart.so"). Use gum_module_enumerate_symbols in frida-gum but can't get symbols.The real machine is fine, but not the simulator.

s1341 commented 9 months ago

Does your binary contain symbols?

Closing anyway, as your original issue is resolved.