Closed bits4beethoven closed 1 year ago
I'm not aware of any negative effects of terminating a WinAFL process using Ctrl+C. At that point, the WinAFL process terminates while the target process may continue running and assert on the pipe being in a broken state. The target process may still write bits in the shared memory, but at this point there is nothing that reads this shared memory anymore.
In the source code, I have seen the following lines that affect the
stop_soon
flag:1)
2) (commented out)
So, I do not see directly that something sets the flag e.g. to 1. Every time I press "Ctrl+C" I get an assertion failure from the line 707 in
winafl.c
: "unrecodnized command received over pipe". So to be sure, these are the lines:I am wondering of how to terminate the program correctly. I've tried to add the following lines:
But this did not help. Then I observed that Ctrl+C leads to a
P
char to be sent over pipe and this results into the assert failure.I would be glad to know how to terminate WinAFL softly. Is it "bad" that the program does not terminate normally? Does it corrupt
virgins_bits
, a coverage map or something else?