Giter VIP home page Giter VIP logo

Comments (9)

squizz617 avatar squizz617 commented on June 25, 2024

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)

from hydra.

jahidhasanlinix avatar jahidhasanlinix commented on June 25, 2024

/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)?

from hydra.

squizz617 avatar squizz617 commented on June 25, 2024

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)

from hydra.

jahidhasanlinix avatar jahidhasanlinix commented on June 25, 2024
~run.py
[-] PROGRAM ABORT : Pipe at the beginning of 'core_pattern'
         Location : check_crash_handling(), afl-fuzz.c:7540

from hydra.

squizz617 avatar squizz617 commented on June 25, 2024

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

from hydra.

squizz617 avatar squizz617 commented on June 25, 2024

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.

from hydra.

squizz617 avatar squizz617 commented on June 25, 2024

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.

from hydra.

jahidhasanlinix avatar jahidhasanlinix commented on June 25, 2024

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.

from hydra.

squizz617 avatar squizz617 commented on June 25, 2024

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!

from hydra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.