[LLVMbugs] [Bug 24017] New: MCJit and thread_local hangs indefinitely

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 2 02:57:49 PDT 2015


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

            Bug ID: 24017
           Summary: MCJit and thread_local hangs indefinitely
           Product: libraries
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: MCJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at dav1d.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14547
  --> https://llvm.org/bugs/attachment.cgi?id=14547&action=edit
IR code of the bug

I tried to run this code via MCJit:

; ModuleID = 'ohm'
@Vv3ohm1xi = thread_local global i32 3

define i32 @main() #0 {
entry:
  %0 = load i32* @Vv3ohm1xi
  ret i32 %0
}

LLVMRunFunction and LLVMGetFunctionAddress seem to hang indefinitely for the
function `main`, while LLVMFindFunction returns a handle.

The same code with 

@Vv3ohm1xi = global i32 3

instead works as expected.

The default interpreter can run the code but does not initialize the global to
the set value (3 in this case). I can open a new issue for this problem if
wanted.


Steps to reproduce:
Save code to `bug.ir`
Run: `lli bug.ir` (I assume this uses the mc-jit)

-- 
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/20150702/08a7ab60/attachment.html>


More information about the llvm-bugs mailing list