[LLVMbugs] [Bug 2990] New: Requiring a ModulePass and InstructionNamerID causes PassManager to infloop

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 31 01:08:31 PDT 2008


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

           Summary: Requiring a ModulePass and InstructionNamerID causes
                    PassManager to infloop
           Product: new-bugs
           Version: unspecified
          Platform: PC
               URL: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-
                    October/018091.html
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


To reproduce:
* using LLVM TOT, unarchive the attached Hello.zip in lib/Transforms/Hello
* run make
* ../../../Release/bin/opt -load ../../../Release/lib/LLVMHello.so -tstfunc
foo.bc

foo.bc can be any bitcode

If I make the modulepass be a functionpass it no longer infloops, or if I
remove the InstructionNamerID from the requierements.

Stacktrace below:

Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7f358a99e6f0 (LWP 19611)]
0x0000000000a3a113 in std::map<llvm::PassInfo const*, llvm::Pass*,
std::less<llvm::PassInfo const*>, std::al
locator<std::pair<llvm::PassInfo const* const, llvm::Pass*> > >::find
(this=0x1dfcdf0, __x=@0x7fff929c5760)
at /usr/include/c++/4.3/bits/stl_map.h:615
(gdb) bt
#0  0x0000000000a3a113 in std::map<llvm::PassInfo const*, llvm::Pass*,
std::less<llvm::PassInfo const*>, std
::allocator<std::pair<llvm::PassInfo const* const, llvm::Pass*> > >::find
(this=0x1dfcdf0, __x=@0x7fff929c57
60) at /usr/include/c++/4.3/bits/stl_map.h:615
#1  0x0000000000a34fa3 in llvm::PMDataManager::findAnalysisPass
(this=0x1dfcd10, AID=0xf2e220, SearchParent=
false) at PassManager.cpp:936
#2  0x0000000000a34e74 in llvm::PMTopLevelManager::findAnalysisPass
(this=0x19a4900, AID=0xf2e220) at PassMa
nager.cpp:517
#3  0x0000000000a353bd in llvm::PMTopLevelManager::schedulePass
(this=0x19a4900, P=0x19a70d0) at PassManager
.cpp:474
warning: (Internal error: pc 0xa4021d in read in psymtab, but not in symtab.)
warning: (Internal error: pc 0xa4021d in read in psymtab, but not in symtab.)

#4  0x0000000000a4021e in llvm::PassManagerImpl::add (this=warning: (Internal
error: pc 0xa4021d in read in
psymtab, but not in symtab.)

warning: (Internal error: pc 0xa401fa in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xa4021d in read in psymtab, but not in symtab.)

0x19a4750, P=warning: (Internal error: pc 0xa4021d in read in psymtab, but not
in symtab.)

0x19a70d0) at PassManager.cpp:280
#5  0x0000000000a354dd in llvm::PassManager::add (this=0x7fff929c5a40,
P=0x19a70d0) at PassManager.cpp:1490
#6  0x0000000000738c6a in addPass (PM=@0x7fff929c5a40, P=0x19a70d0) at
opt.cpp:258
#7  0x000000000073a61f in main (argc=5, argv=0x7fff929c5dd8) at opt.cpp:532


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