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

Fuzzer Not Displaying: Interrupted #19

Closed
jahidhasanlinix opened this issue May 17, 2022 · 9 comments
Closed

Fuzzer Not Displaying: Interrupted #19

jahidhasanlinix opened this issue May 17, 2022 · 9 comments

Comments

@jahidhasanlinix
Copy link

jahidhasanlinix commented May 17, 2022

So I was running fuzzer, but I am not getting the GUI interface of it, I did steps 1-4 correctly without an error. @squizz617 Thanks.

@squizz617
Copy link
Contributor

Could you post the output of the following?

$ cd src/emulator
$ ./emulator.py -i ../samples/oracle/btrfs-10.image -t btrfs -v -p $(find /tmp/mosbench/tmpfs-separate/10/log/ -name "*prog" | head -n 1)

@jahidhasanlinix
Copy link
Author

jahidhasanlinix commented May 18, 2022

/emulator.py -i ../samples/oracle/btrfs-10.image -t btrfs -v -p $(find /tmp/mosbench/tmpfs-separate/10/log/ -name "*prog" | head -n 1)

Thats what I am getting now:

~/hydra/src/emulator$ ./emulator.py -i ../samples/oracle/btrfs-10.image -t btrfs -v -p $(find /tmp/mosbench/tmpfs-separate/10/log/ -name "*prog" | head -n 1)
find: ‘/tmp/mosbench/tmpfs-separate/10/log/’: No such file or directory
-bash: ./emulator.py: /usr/bin/python2: bad interpreter: No such file or directory

I changed /usr/bin/python2 to `/usr/bin/python3'
Then got this error:

~/hydra/src/emulator$ ./emulator.py -i ../samples/oracle/btrfs-10.image -t btrfs -v -p $(find /tmp/mosbench/tmpfs-separate/10/log/ -name "*prog" | head -n 1)
find: ‘/tmp/mosbench/tmpfs-separate/10/log/’: No such file or directory
  File "./emulator.py", line 107
    print "ARGS:", args
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("ARGS:", args)?

@squizz617
Copy link
Contributor

Ah, seems like Ubuntu 20.04 does not ship with python 2 installed anymore.
Please install python2:

$ sudo apt update
$ sudo apt install python2

(ref: https://linuxconfig.org/install-python-2-on-ubuntu-20-04-focal-fossa-linux)

@jahidhasanlinix
Copy link
Author

jahidhasanlinix commented May 18, 2022

~run.py
[-] PROGRAM ABORT : Pipe at the beginning of 'core_pattern'
         Location : check_crash_handling(), afl-fuzz.c:7540

@squizz617
Copy link
Contributor

Have you re-booted after you opened the issue? If so, please run sudo ./prepare_fuzzing (step 4) again.

@squizz617
Copy link
Contributor

squizz617 commented May 18, 2022

it stopped within few seconds

Hydra was originally implemented for Ubuntu 18.04, and it seems that there is a compatibility issue on Ubuntu 20.04. Someone recently reported the issue, and we've been working on a fix. I will let you know as soon as this is resolved.

@squizz617
Copy link
Contributor

squizz617 commented May 18, 2022

Based on line#72 fs/{2}/{2}_wrapper.so -e samples/oracle/{2}-.image -y seed -i {3} -o {4} -u {5} -- lkl/tools/lkl/{2}-combined-consistency -t {2} -i samples/oracle/{2}-.image

  • Whats that {2} refering here and wrapper.so file
  • seed -i {3} -o {4} -u {5}: this instruction for what reason
  • samples/oracle/{2}-.image- if I wanna use some different .image file here, If I wanna use other .image file does this syntax is the correct format or I need to change {2} into btrfs or ext4- eg:samples/oracle/{2}-'+str(i)+'.image

{i} is replaced with the i-th argument of format() following the string.
Please refer to python2's format string documentation (https://docs.python.org/2/library/string.html#format-examples) for further information.

@jahidhasanlinix
Copy link
Author

I guess I got another question before you close it, based on line #72, what would {0}, {1}, {2}, {3}, {4}, {5} and {6} be in that line? just make myself little clear about those argument.

@squizz617
Copy link
Contributor

As I mentioned above, {i} is replaced with the i-th argument of format() following the string. So, 0: instance_name, 1: shm_name, 2: args.fstype, and so on.

Closing!

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

2 participants