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
66 stars 36 forks source link

Fail to Instrument cpp files #116

Closed ruotongyu closed 6 years ago

ruotongyu commented 6 years ago

@karthikp-ubc Hello Karthikp, I am also trying to use LLFI to inject faults to cpp projects. However, it always report error "error: expected top-level entity" when I try to do instrument.

_/home/ruotoy/Desktop/llvm/bin/llvm-link: main.ll:81:1: error: expected top-level entity $_ZStorSt13_IosOpenmodeS = comdat any_

It looks fine when I compile the project. I do not know if this error comes from the version of clang and llvm? Really appreciate your help!!

ruotongyu commented 6 years ago

This error only happens when I try to compile cpp file which include header files. I am not sure if I did something wrong to link several files together.

karthikp-ubc commented 6 years ago

Sorry, this looks like an LLVm issue and not an LLFI issue, so we cant help with it unfortunately.