frida / frida-rust

Frida Rust bindings
Other
173 stars 45 forks source link

Injector does segfault #137

Open bruhderek opened 2 months ago

bruhderek commented 2 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 2 months ago

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

bruhderek commented 2 months ago

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

s1341 commented 2 months ago

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