[LLVMbugs] [Bug 6880] New: Segfault while Releasing pass 'Basic CallGraph Construction' (regression)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 20 02:34:40 PDT 2010


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

           Summary: Segfault while Releasing pass 'Basic CallGraph
                    Construction' (regression)
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: quickslyver at free.fr
                CC: llvmbugs at cs.uiuc.edu


$cat test.c
int main();
void _exit(int);

void foo()
{
}

void _crt_init() 
{
  _exit(main());
}

$clang test.c -o test.bc -c -emit-llvm && llvm-ld test.bc
-internalize-public-api-list=foo,_crt_init
0  llvm-ld   0x08690c5d
1  llvm-ld   0x086911c4
2            0xb7fdf400 __kernel_sigreturn + 0
3  llvm-ld   0x084bb0ec
4  llvm-ld   0x084b9f88
5  llvm-ld   0x0860708f llvm::PMDataManager::freePass(llvm::Pass*,
llvm::StringRef, llvm::PassDebuggingString) + 127
6  llvm-ld   0x086072e8 llvm::PMDataManager::removeDeadPasses(llvm::Pass*,
llvm::StringRef, llvm::PassDebuggingString) + 316
7  llvm-ld   0x08607ccb llvm::FPPassManager::runOnFunction(llvm::Function&) +
591
8  llvm-ld   0x08607d73 llvm::FPPassManager::runOnModule(llvm::Module&) + 109
9  llvm-ld   0x08607892 llvm::MPPassManager::runOnModule(llvm::Module&) + 398
10 llvm-ld   0x08609088 llvm::PassManagerImpl::run(llvm::Module&) + 124
11 llvm-ld   0x086090ed llvm::PassManager::run(llvm::Module&) + 39
12 llvm-ld   0x08323f66 llvm::Optimize(llvm::Module*) + 735
13 llvm-ld   0x0832b061 main + 1881
14 libc.so.6 0xb7d33455 __libc_start_main + 229
15 llvm-ld   0x08323361
Stack dump:
0.    Program arguments: llvm-ld test.bc
-internalize-public-api-list=foo,_crt_init 
1.    Running pass 'Function Pass Manager' on module 'a.out'.
2.    Releasing pass 'Basic CallGraph Construction'
Segmentation fault

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