[LLVMbugs] [Bug 4872] New: Bitcode linking of debug information fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Sep 3 04:15:48 PDT 2009


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

           Summary: Bitcode linking of debug information fails
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rich at pennware.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3422)
 --> (http://llvm.org/bugs/attachment.cgi?id=3422)
First file.

If I link two files with debugging metadata, the link failes.

[~/ellcc/test/source] main% llvm-as a.o.ll
[~/ellcc/test/source] main% llvm-as b.o.ll
[~/ellcc/test/source] main% llvm-ld a.o.bc b.o.bc
0   llvm-ld   0x085986f8                         
1   llvm-ld   0x08598cc4                         
2             0x00d88400 __kernel_sigreturn + 0  
3   llvm-ld   0x082a6c78 bool llvm::isa_impl<llvm::Constant,
llvm::Value>(llvm::Value const&) + 29
4   llvm-ld   0x082aae3c llvm::isa_impl_wrap<llvm::Constant, llvm::Value const,
llvm::Value const>::doit(llvm::Value const&) + 29                               
5   llvm-ld   0x082aae5f bool
llvm::isa_impl_cl<llvm::Value>::isa<llvm::Constant>(llvm::Value const&) + 29    
6   llvm-ld   0x082aae82 bool llvm::isa_impl_cl<llvm::Value
const>::isa<llvm::Constant>(llvm::Value const&) + 29                            
7   llvm-ld   0x082aaea5 bool llvm::isa_impl_cl<llvm::Value
const*>::isa<llvm::Constant>(llvm::Value const*) + 29                           
8   llvm-ld   0x082aaeca bool llvm::isa<llvm::Constant, llvm::Value
const*>(llvm::Value const* const&) + 31                                         
9   llvm-ld   0x082be4ba llvm::cast_retty<llvm::Constant, llvm::Value
const*>::ret_type llvm::dyn_cast<llvm::Constant, llvm::Value
const*>(llvm::Value const* const&) + 29
10  llvm-ld   0x082c3bb8
11  llvm-ld   0x082c4184
12  llvm-ld   0x082c45e9
13  llvm-ld   0x082c47b6
14  llvm-ld   0x082c811d llvm::Linker::LinkModules(llvm::Module*,
llvm::Module*, std::string*) + 1979
15  llvm-ld   0x082c24e2 llvm::Linker::LinkInModule(llvm::Module*,
std::string*) + 46
16  llvm-ld   0x082c19b1 llvm::Linker::LinkInFile(llvm::sys::Path const&,
bool&) + 1505
17  llvm-ld   0x082c20e9
llvm::Linker::LinkInItems(std::vector<std::pair<std::string, bool>,
std::allocator<std::pair<std::string, bool> > > const&,
std::vector<std::pair<std::string, bool>, std::allocator<std::pair<std::string,
bool> > >&) + 259
18  llvm-ld   0x082980c0 main + 1589
19  libc.so.6 0x00bb66e5 __libc_start_main + 229
20  llvm-ld   0x0828e831
Stack dump:
0.      Program arguments: llvm-ld a.o.bc b.o.bc
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