-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c5fea2
commit a1087f6
Showing
7 changed files
with
92 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,45 @@ | ||
### Debugging Phink | ||
# Troubleshooting | ||
|
||
Use the harness coverage feature for debugging. You should only use this if you want to have a coverage of Phink itself, | ||
for instance if you are planning to contribute to Phink, or to debug it. | ||
## Debugging Phink | ||
|
||
### AFL++ Logs | ||
|
||
If you encounter unexpected behavior, examining the AFL++ logs can provide good insights. In most cases, developers | ||
will find more information by executing: | ||
|
||
```sh | ||
tail -f your_output/phink/logs/afl.log | ||
``` | ||
|
||
Replace `your_output` with the directory defined in your `phink.toml` under `fuzz_output`. This will give you a | ||
real-time view of the log output, helping you identify any issues during the fuzzing process. | ||
|
||
### Executing a Single Seed | ||
|
||
To debug specific cases where a contract crashes, you can execute a single seed. This method allows you to instantiate a | ||
contract and identify crash points more easily: | ||
|
||
```sh | ||
phink execute output/phink/corpus/selector_1.bin | ||
``` | ||
|
||
This command runs a single fuzzing input, making it easier to pinpoint problems. | ||
|
||
### Harness Coverage | ||
|
||
Use the harness coverage feature if you need insights into Phink’s functionality, particularly if you plan to contribute | ||
or debug the tool itself: | ||
|
||
```sh | ||
phink harness-cover | ||
``` | ||
|
||
Be aware that this is primarily for those who want to dive deeper into the coverage of Phink and is not generally | ||
necessary for regular debugging. | ||
|
||
### Support Channels | ||
|
||
You can find us on [Discord](https://discord.gg/4MakDGwFEK). Alternatively, you can message me | ||
on [kevin[🎩]srlabs.de](kevin[🎩]srlabs.de). | ||
For additional help, you can join us on [Discord](https://discord.gg/4MakDGwFEK) where our community and team are | ||
active. Alternatively, feel free to message me at [kevin[🎩]srlabs.de](mailto:kevin[🎩]srlabs.de). | ||
|
||
Happy fuzzing! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters