[LLVMbugs] [Bug 9329] New: llc crashes when given invalid command line arguments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 25 17:52:41 PST 2011


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

           Summary: llc crashes when given invalid command line arguments
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu


I accidentally tried to add a CPU attribute as part of the -mcpu argument
rather than using -mattr, and with the attached trivial program, got the
following crash:

% llc -mcpu=core2+sse41 -march=x86-64 bugpoint-reduced-simplified.bc
'core2+sse41' is not a recognized processor for this target (ignoring
processor)
Assertion failed: (TLI.isTypeLegal(Op.getValueType()) && "Intrinsic uses a
non-legal type?"), function visitTargetIntrinsic, file SelectionDAGBuilder.cpp,
line 3149.
0  llc               0x0000000100b411b2
llvm::PrettyStackTraceString::~PrettyStackTraceString() + 11298
1  llc               0x0000000100b42003
llvm::PrettyStackTraceString::~PrettyStackTraceString() + 14963
2  libSystem.B.dylib 0x00007fff8385567a _sigtramp + 26
3  libSystem.B.dylib 0x0000000101075000 _sigtramp + 2105670048
4  llc               0x0000000100021a32
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 3394
5  llc               0x00000001005f99af llvm::APInt::getHighBitsSet(unsigned
int, unsigned int) + 179023
6  llc               0x00000001005fa510 llvm::APInt::getHighBitsSet(unsigned
int, unsigned int) + 181936
7  llc               0x0000000100602e81 llvm::APInt::getHighBitsSet(unsigned
int, unsigned int) + 217121
8  llc               0x00000001005e317d llvm::APInt::getHighBitsSet(unsigned
int, unsigned int) + 86813
9  llc               0x0000000100618703 llvm::APInt::getHighBitsSet(unsigned
int, unsigned int) + 305315
10 llc               0x000000010062cb38
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
58696
11 llc               0x000000010062d231
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
60481
12 llc               0x000000010062de5a
llvm::TargetLowering::getNumRegisters(llvm::LLVMContext&, llvm::EVT) const +
63594
13 llc               0x000000010073e343
llvm::MachineFunctionAnalysis::getPassName() const + 627
14 llc               0x0000000100a750b0 llvm::BasicBlockPass::~BasicBlockPass()
+ 32240
15 llc               0x0000000100a751cb llvm::BasicBlockPass::~BasicBlockPass()
+ 32523
16 llc               0x0000000100a76d4f llvm::BasicBlockPass::~BasicBlockPass()
+ 39567
17 llc               0x0000000100a77043 llvm::BasicBlockPass::~BasicBlockPass()
+ 40323
18 llc               0x0000000100a7711d llvm::BasicBlockPass::~BasicBlockPass()
+ 40541
19 llc               0x00000001000240ff
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 13327
20 llc               0x0000000100022964
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 7284
Stack dump:
0.    Program arguments: llc -mcpu=core2+sse41 -march=x86-64
bugpoint-reduced-simplified.bc 
1.    Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function '@simple'
[1]    74409 illegal hardware instruction  llc -mcpu=core2+sse41 -march=x86-64
bugpoint-reduced-simplified.bc

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