DependableSystemsLab / LLFI

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
http://blogs.ubc.ca/karthik/2014/02/23/quantifying-the-accuracy-of-high-level-fault-injection-techniques/
Other
68 stars 35 forks source link

Using llfiindex Custom Fault Injection Instruction Selector #38

Closed timahfika closed 10 years ago

timahfika commented 10 years ago

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:

   customInstSelector: llfiindex  
   customInstSelectorOption:
         - injecttoindex: 79      

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)

Can anyone help me out?

-Fatimah

karthikp-ubc commented 10 years ago

Closing this as I believe the issue was resolved by the latest fix. Please reopen if that's not the case.