[LLVMbugs] [Bug 3283] New: llc crash on random .bc file

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 6 03:21:25 PST 2009


           Summary: llc crash on random .bc file
           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: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

With SVN r61805 I run:
$ llvm-as <tst.ll >x.bc && llc x.bc -f

I get this:

llc: TargetData.cpp:468: unsigned char llvm::TargetData::getAlignment(const
llvm::Type*, bool) const: Assertion `Ty->isSized() && "
Cannot getTypeInfo() on a type that is unsized!"' failed.
0   llc       0x0000000000c2dd1f
1   libc.so.6 0x00007fd7d0afcf60
2   libc.so.6 0x00007fd7d0afced5 gsignal + 53
3   libc.so.6 0x00007fd7d0afe3f3 abort + 387
4   libc.so.6 0x00007fd7d0af5dc9 __assert_fail + 233
5   llc       0x0000000000b5ee5e llvm::TargetData::getAlignment(llvm::Type
const*, bool) const + 222
6   llc       0x0000000000718e76
7   llc       0x000000000071a4d9
8   llc       0x0000000000bc2ff6 llvm::FunctionPassManager::doFinalization() +
9   llc       0x0000000000500618 main + 4216
10  libc.so.6 0x00007fd7d0ae91a6 __libc_start_main + 230
11  llc       0x00000000004feae9 std::ios_base::Init::~Init() + 57

This is either a bug in llvm-as (for accepting invalid bitcode), or a bug in
llc, this is the .ll file:
hidden thread_local addrspace(39) constant opaque undef

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