[llvm-bugs] [Bug 26068] New: DFSan crashes on invoke with variadic function

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 7 16:04:45 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26068

            Bug ID: 26068
           Summary: DFSan crashes on invoke with variadic function
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Miscellaneous Instrumentation passes
          Assignee: unassignedbugs at nondot.org
          Reporter: benny.kra at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter at pcc.me.uk
    Classification: Unclassified

$ cat foo.cc
void myprintf(...);

int main() {
  try {
    myprintf(42);
  } catch (...) {
  }
}

$ clang++ -fsanitize=dataflow foo.c
clang-3.8: llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp:1417: void
(anonymous namespace)::DFSanVisitor::visitCallSite(llvm::CallSite): Assertion
`!(cast<FunctionType>(
CS.getCalledValue()->getType()->getPointerElementType())->isVarArg() &&
dyn_cast<InvokeInst>(CS.getInstruction()))' failed.

This also happens when building libc++ with dfsan.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160108/74941be9/attachment.html>


More information about the llvm-bugs mailing list