[LLVMbugs] [Bug 4314] New: llvm-ld's LTO segfaults in ' Interprocedural Sparse Conditional Constant Propagation'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 3 10:22:47 PDT 2009


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

           Summary: llvm-ld's LTO segfaults in 'Interprocedural Sparse
                    Conditional Constant Propagation'
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
                CC: llvmbugs at cs.uiuc.edu


Assembling and linking the following:


%T = type { i32 }

define void @foo() {
        call %T @bar()
        ret void
}

define internal %T @bar() {
        %x = alloca %T
        %y = load %T* %x
        ret %T %y
}


Results in the following:


$ llvm-as arst.ll -f && llvm-ld arst.bc             
0   llvm-ld         0x00000000006e41df
1   llvm-ld         0x00000000006e45cd
2   libpthread.so.0 0x00007f3b9be93850
3   llvm-ld         0x000000000053d3c8
4   llvm-ld         0x00000000005406cb
5   llvm-ld         0x0000000000541b98
6   llvm-ld         0x0000000000542edd
7   llvm-ld         0x000000000067fb10
llvm::MPPassManager::runOnModule(llvm::Module&) + 304
8   llvm-ld         0x000000000068049b
llvm::PassManagerImpl::run(llvm::Module&) + 171
9   llvm-ld         0x000000000048886f llvm::Optimize(llvm::Module*) + 1231
10  llvm-ld         0x000000000048f810 main + 1120
11  libc.so.6       0x00007f3b9af8e9ed __libc_start_main + 253
12  llvm-ld         0x0000000000487ab9
Stack dump:
0.      Program arguments: llvm-ld arst.bc 
1.      Running pass 'Interprocedural Sparse Conditional Constant Propagation'
on module 'a.out'.

With -disable-opt it works fine.


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