frida-python
frida-python copied to clipboard
process-crashed does not seem to work successfully
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