Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process-crashed does not seem to work successfully #175

Open
gloxec opened this issue Jan 26, 2021 · 0 comments
Open

process-crashed does not seem to work successfully #175

gloxec opened this issue Jan 26, 2021 · 0 comments

Comments

@gloxec
Copy link

gloxec commented Jan 26, 2021

Use the following method to get the exit status of the attached program, but the function bound by process-crashed is not triggered. Only the function corresponding to detached is executed, but the data of the second parameter crash passed by the function is None.

test.c (Segmentation fault: 11)

...
char *buf = NULL;
buf[0] = -1;   // -> SIGSEGV
...

frida_test.py

...
device.on('process-crashed', on_process_crashed)
session.on('detached', on_detached)
...
output

...
detached: reason='process-terminated', crash='None'

I noticed that Frida 12.3 introduced Device to add process-crashed to monitor crashes, but it didn't seem to work successfully.

frida 14.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant