[LLVMbugs] [Bug 10335] New: crash with callbacks passed to vaarg functions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 11 18:47:20 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10335

           Summary: crash with callbacks passed to vaarg functions
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


clang crashes on:

typedef   void (* JSErrorCallback)(void);
void js_GetErrorMessage(void);
void JS_ReportErrorNumber(JSErrorCallback errorCallback, ...);
void Interpret() {
  JS_ReportErrorNumber(js_GetErrorMessage, 0);
}

clang: /home/espindola/llvm/llvm/lib/VMCore/Instructions.cpp:191: void
llvm::CallInst::init(llvm::Value *, llvm::Value *const *, unsigned int):
Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) ==
Params[i]->getType()) && "Calling a function with a bad signature!"' failed.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list