[LLVMbugs] [Bug 12379] New: Kaleidoscope example (armv7, iOS5.1) - exc_bad_access (crash) on/after calling interpreted function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 27 16:14:57 PDT 2012


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

             Bug #: 12379
           Summary: Kaleidoscope example (armv7, iOS5.1) - exc_bad_access
                    (crash) on/after calling interpreted function
           Product: Website
           Version: unspecified
          Platform: Macintosh
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Documentation
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sean.childs at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Interpreted, not jit arm.

The follwoing(in function HandleTopLevelExpression) results in exc_bad_access
(code=2):

void *FPtr = TheExecutionEngine->getPointerToFunction(LF);
double (*FP)() = (double (*)())(intptr_t)FPtr;
FP();


at this point:

static void MainLoop() {
  while ...
    switch ... 
      default: HandleTopLevelExpression(); break; // exc_bad_access



This seems to work:
TheExecutionEngine->runFunction(LF, Args);

-- 
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