LLFI is an LLVM based fault injection tool, that injects faults into the LLVM IR of the application source code. The faults can be injected into specific program points, and the effect can be easily tracked back to the source code. Please refer to the paper below. NOTE: If you publish a paper using LLFI, please add it to PaperLLFI.bib
I'm trying to use the the llfiindex fault injection instruction selection, when I set up the input.yaml as specified on the wiki page I get error during instrumentation complaining about the format of input.yaml.
I eventually got it the instrumentation to run without generating errors using the following configuration:
instSelMethod:
However calling injectfault generate the following error:
Traceback (most recent call last):
File "/Users/faateemahfika/Tools/llfi/build/bin/llfi", line 67, in <module>
cmds[cmd].run(args)
File "/Users/faateemahfika/Tools/llfi/build/bin/inject.py", line 410, in run
fi_cycle = random.randint(0, int(totalcycles) - 1)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 216, in randint
return self.randrange(a, b+1)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/random.py", line 194, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (0,0, 0)
I'm trying to use the the llfiindex fault injection instruction selection, when I set up the input.yaml as specified on the wiki page I get error during instrumentation complaining about the format of input.yaml.
I eventually got it the instrumentation to run without generating errors using the following configuration: instSelMethod:
However calling injectfault generate the following error:
Can anyone help me out?
-Fatimah