frida / frida-rust

Frida Rust bindings
Other
188 stars 53 forks source link

Injector does segfault #137

Open bruhderek opened 5 months ago

bruhderek commented 5 months ago

Calling Injector::new() causes the program to segfault with no error. Example code:

fn main() {
    Injector::new();
}

produces this: Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)

s1341 commented 5 months ago

I think you need to Frida::obtain before calling any frida functions.

bruhderek commented 5 months ago

@s1341 I'm sorry for oversimplifying. I had Frida::obtain at the top of the file

s1341 commented 5 months ago

Please provide a full reproducer.... It's hard to tell what you're doing wrong, or whether there is a bug...