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

traceontograph crash #14

Closed ShadenSmith closed 10 years ago

ShadenSmith commented 10 years ago

I've encountered this while using tools/traceontograph:

> $LLFI/tools/traceontograph diff.trace llfi_out/llfi.stat.graph.dot 
Traceback (most recent call last):
  File "<>/tools/traceontograph", line 64, in <module>
    traceOntoGraph(sys.argv[1], sys.argv[2])
  File "<>/tools/traceontograph", line 35, in traceOntoGraph
    affectedEdges = rep.getAffectedEdgesSet()
  File "<>/tools/tracetools.py", line 458, in getAffectedEdgesSet
    affectedEdges.add((edgeStart, edgeEnd))
UnboundLocalError: local variable 'edgeEnd' referenced before assignment

Here is how I'm generating the files:

> tracediff baseline/llfi.stat.trace.prof.txt llfi_stat_output/llfi.stat.trace.0-0.txt > diff.trace
> traceontograph diff.trace llfi_out/llfi.stat.graph.dot 

I've reproduced this with my own programs and also the factorial test program.

karthikp-ubc commented 10 years ago

This has been fixed, I believe.