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 does not run #1686

Closed
KiranKanchi opened this issue Jun 6, 2021 · 5 comments
Closed

fuzzer does not run #1686

KiranKanchi opened this issue Jun 6, 2021 · 5 comments

Comments

@KiranKanchi
Copy link

Dear team,

I am setting up the symbiflow for the first time and I have issue in step 9.

After step 8: ./download-latest-db.sh

Pick a fuzzer (or write your own) and run:

cd fuzzers/010-clb-lutinit
make -j$(nproc) run


make run results in :

make clean
make[1]: Entering directory '/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit'
rm -rf build run.ok
make[1]: Leaving directory '/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit'
make database
make[1]: Entering directory '/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit'
mkdir -p build
bash generate.sh build/specimen_001
generate.sh: line 11: source: filename argument required
source: usage: source filename [arguments]
generate.sh: line 15: -mode: command not found
generate.sh: line 18: -F: command not found
generate.sh: line 18: -F: command not found
generate.sh: line 18: -F: command not found
Traceback (most recent call last):
File "/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit/generate.py", line 16, in
segmk = Segmaker("design_%s.bits" % sys.argv[1])
File "/home/kirankanchi/xilinx/prjxray/prjxray/prjxray/segmaker.py", line 94, in init
assert self.fabric, "No fabric specified."
AssertionError: No fabric specified.
Traceback (most recent call last):
File "/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit/generate.py", line 16, in
segmk = Segmaker("design_%s.bits" % sys.argv[1])
File "/home/kirankanchi/xilinx/prjxray/prjxray/prjxray/segmaker.py", line 94, in init
assert self.fabric, "No fabric specified."
AssertionError: No fabric specified.
Traceback (most recent call last):
File "/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit/generate.py", line 16, in
segmk = Segmaker("design_%s.bits" % sys.argv[1])
File "/home/kirankanchi/xilinx/prjxray/prjxray/prjxray/segmaker.py", line 94, in init
assert self.fabric, "No fabric specified."
AssertionError: No fabric specified.
make[1]: *** [Makefile:27: build/specimen_001/OK] Error 1
make[1]: Leaving directory '/home/kirankanchi/xilinx/prjxray/prjxray/fuzzers/010-clb-lutinit'
make: *** [Makefile:32: run] Error 2

Any pointers on what could be wrong ? Thank you very much in advance.

Kind regards,
KiranKanchi

@Xiretza
Copy link

Xiretza commented Jun 6, 2021

Look like you skipped step 6 (sourcing the environment). Nevertheless, these scripts should probably be set -eu so they don't accidentally cause major problems in cases like this.

@KiranKanchi
Copy link
Author

Hello Xiretza,

Thank you for your kind reply, i repeated the steps and see the same error. Here is my history:

838 sudo make build
839 source settings/artix7.sh
840 make db-prepare-artix7
841 sudo make db-prepare-artix7
842 sudo ./download-latest-db.sh
843 cd fuzzers/010-clb-lutinit/
844 sudo make -j12 run

I am not sure where am i going wrong.

Kind regards,
KiranKanchi

@Xiretza
Copy link

Xiretza commented Jun 6, 2021

Why are you trying to do any of this as root? sudo strips the environment for security reasons.

@KiranKanchi
Copy link
Author

ah! I bypassed your root check earlier because I could not figure out how to proceed as non root user. i will restore it back and figure out to run without root. thank you very much again!

@KiranKanchi
Copy link
Author

I created a new user and followed the same steps* and there are no problems.
*Note: I had to go to step 7 first and then do step 6.

Kind regards,
KiranKanchi

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