[LLVMbugs] [Bug 6758] New: JIT doesn't work on PowerPC: relocation fails

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 1 13:42:31 PDT 2010


           Summary: JIT doesn't work on PowerPC: relocation fails
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
               URL: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1921
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

On Darwin 9.8.0 Power Macintosh powerpc:

The JIT aborts with this error:
Assertion failed: (ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) &&
"Relocation out of range!"), function relocate, file
llvm/lib/Target/PowerPC/PPCJITInfo.cpp, line 399.

Program received signal SIGABRT, Aborted.
0x96191b50 in __kill ()
(gdb) bt
#0  0x96191b50 in __kill ()
#1  0x9622cc00 in abort ()
#2  0x9621fc10 in __assert_rtn ()
#3  0x012bf304 in llvm::PPCJITInfo::relocate ()
#4  0x00e0c904 in (anonymous namespace)::JITEmitter::finishFunction ()
#5  0x01286634 in (anonymous namespace)::PPCCodeEmitter::runOnMachineFunction
#6  0x00fd61b8 in llvm::FPPassManager::runOnFunction ()
#7  0x00fd63e8 in llvm::FunctionPassManagerImpl::run ()
#8  0x00fd66ac in llvm::FunctionPassManager::run ()
#9  0x00dfc590 in llvm::JIT::runJITOnFunctionUnlocked ()
#10 0x00dfd670 in llvm::JIT::getPointerToFunction ()

This happens when the JIT client (ClamAV) has allocated some memory, and then
tries to use the JIT, it doesn't happen when only trying to use the JIT.

If needed I can probably write up a testcase for LLI that allocates some memory
first, and then tries to JIT, but I think the abort message is pretty clear
about what the problem is.

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