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

WinAFL Internal Crash at PC 0x5a1a456e #418

Open
rmachnee opened this issue Nov 5, 2023 · 6 comments
Open

WinAFL Internal Crash at PC 0x5a1a456e #418

rmachnee opened this issue Nov 5, 2023 · 6 comments

Comments

@rmachnee
Copy link

rmachnee commented Nov 5, 2023

I received the attached pop up error while testing offsets.
error

using the following command line:
........\Users\operator\Desktop\RachaelWinAFL\dynamorio-master\bin32\drrun.exe -c ........\Users\operator\Desktop\RachaelWinAFL\winafl-master\build32\bin\Release\winafl.dll -debug -target_module FuzzProgram.exe -target_offset 0xD6F339 -coverage_module FuzzProgram.exe -fuzz_iterations 10 -- "FuzzProgram.exe"

I am running out of the FuzzProgram folder as it reads from many different files.
I have found one offset that this doesnt occur out of 20ish, however, that offset isnt the correct one for fuzzing coverage.

Any insight into what could be causing this?

@ifratric
Copy link
Collaborator

ifratric commented Nov 6, 2023

Such errors usually indicate either incorrect usage or incompatibility between the target and DynamoRIO.

To diagnose the first type of issue, use debug mode as explained in https://github.com/googleprojectzero/winafl/blob/master/readme_dr.md

For the second type of issue, try using TinyInst mode instead of DynamoRIO (note: some flags have different names in TinyInst mode)

@ifratric
Copy link
Collaborator

ifratric commented Nov 6, 2023

Ah, sorry, I see this is an error already with the Debug mode. Would try TinyInst and see if that runs without issues.

@rmachnee
Copy link
Author

rmachnee commented Nov 7, 2023

I will try with TinyInst.

What would cause an incompatibility issue between the target and DynamoRIO?

@J-jaeyoung
Copy link

I faced a similar issue, but I resolved it by using a different version of DynamoRIO.
This is the version I use most often with the latest winafl.

@rmachnee
Copy link
Author

@J-jaeyoung I tried this and am no longer seeing the pop up but in the command prompt I am seeing a similar error of:
WinAFL internal crash at PC 0x5ad958ff.

Have you had similar issues?

@J-jaeyoung
Copy link

If you encounter similar errors while using drrun.exe -t drcov -- <options>, it might be an issue with DynamoRIO.
If that's the case, I recommend not using DynamoRIO and considering alternatives like TinyInst or Intel PT.

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

3 participants