[LLVMbugs] [Bug 1606] New: ParallelJIT example sometimes triggers assertion in JIT.cpp

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Aug 11 09:59:56 PDT 2007


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

           Summary: ParallelJIT example sometimes triggers assertion in
                    JIT.cpp
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: parag.warudkar at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I was playing around with the examples and after compiling the ParallelJIT.cpp
like below and running it - I get assertion failures sometimes from
JIT.cpp:232.

I thought the JIT was fixed and made thread safe? Is this not the case? 

References -
http://lists.cs.uiuc.edu/pipermail/llvmdev/2003-December/000758.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2005-February/003326.html

parag at parag-desktop:~/llvm-2.0/examples/ParallelJIT$ ls
Makefile  ParallelJIT.cpp  Release
parag at parag-desktop:~/llvm-2.0/examples/ParallelJIT$ g++ -D __STDC_LIMIT_MACROS
-O2 ParallelJIT.cpp `llvm-config --ldflags --libs`
parag at parag-desktop:~/llvm-2.0/examples/ParallelJIT$ ./a.out 
Unblocking threads from block()
Add1 returned 1001
Fib1 returned 63245986
Fib2 returned 267914296
parag at parag-desktop:~/llvm-2.0/examples/ParallelJIT$ ./a.out 
Unblocking threads from block()
a.out: JIT.cpp:232: void llvm::JIT::runJITOnFunction(llvm::Function*):
Assertion `!isAlreadyCodeGenerating && "Error: Recursive compilation
detected!"' failed.
Aborted


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