[LLVMbugs] [Bug 10697] New: assertion failure in ~MCDataFragment()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 18 00:46:46 PDT 2011


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

           Summary: assertion failure in ~MCDataFragment()
           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


Created an attachment (id=7095)
 --> (http://llvm.org/bugs/attachment.cgi?id=7095)
test case

With ToT, if I run:

% llc bugpoint-reduced-simplified.bc  -mattr=+avx  -filetype=obj -o /dev/null 

on the attached, I get the following crash.  Note that the crash only happens
with object file output--generating assembly seems fine.  Also, if I remove the
-mattr=+avx, it is also fine.


Assertion failed: (begin() + idx < end()), function operator[], file
/Users/mmp/llvm-dev-src/include/llvm/ADT/SmallVector.h, line 154.
0  llc               0x000000010287c8b2
llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6494
1  llc               0x000000010287ceb9
llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 8037
2  libsystem_c.dylib 0x00007fff86a09cfa _sigtramp + 26
3  libsystem_c.dylib 0x0000000102f0cb80 _sigtramp + 18446603342601793184
4  llc               0x000000010287c816
llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6338
5  llc               0x000000010287c868
llvm::PrettyStackTraceProgram::~PrettyStackTraceProgram() + 6420
6  llc               0x0000000102317a1f void
llvm::cl::ValuesClass<int>::apply<llvm::cl::opt<AsmWriterFlavorTy, false,
llvm::cl::parser<AsmWriterFlavorTy> > >(llvm::cl::opt<AsmWriterFlavorTy, false,
llvm::cl::parser<AsmWriterFlavorTy> >&) const + 10049
7  llc               0x000000010282becf llvm::operator<<(llvm::raw_ostream&,
llvm::Twine const&) + 4303
8  llc               0x000000010282ecbe llvm::MCDataFragment::~MCDataFragment()
+ 9246
9  llc               0x00000001023019bb llvm::X86JITInfo::~X86JITInfo() + 15749
10 llc               0x00000001024b0e81
llvm::SmallVectorTemplateBase<llvm::ISD::OutputArg, false>::grow(unsigned long)
+ 26063
11 llc               0x000000010226173e
llvm::df_iterator<llvm::MachineBasicBlock*,
llvm::SmallPtrSet<llvm::MachineBasicBlock*, 16u>, true,
llvm::GraphTraits<llvm::MachineBasicBlock*> >::toNext() + 552
12 llc               0x0000000102561c64
llvm::MachineFunctionAnalysis::getPassName() const + 458
13 llc               0x00000001027e37cd llvm::cl::parser<llvm::PassInfo
const*>::~parser() + 26355
14 llc               0x00000001027df1ab llvm::cl::parser<llvm::PassInfo
const*>::~parser() + 8401
15 llc               0x00000001027e34ca llvm::cl::parser<llvm::PassInfo
const*>::~parser() + 25584
16 llc               0x00000001027e48f1 llvm::cl::parser<llvm::PassInfo
const*>::~parser() + 30743
17 llc               0x00000001027e4971 llvm::cl::parser<llvm::PassInfo
const*>::~parser() + 30871
18 llc               0x0000000101f4e6e3
19 llc               0x0000000101f4cf34
20 llc               0x0000000000000006
Stack dump:
0.    Program arguments: /Users/mmp/llvm-dev/bin/llc -mattr=+avx
bugpoint-reduced-simplified.bc -filetype=obj -o /dev/null 
1.    Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2.    Running pass 'X86 AT&T-Style Assembly Printer' on function
'@"SHEvaluate___Cf<3>UiREFf[]"'
[1]    93126 illegal hardware instruction  ~/llvm-dev/bin/llc -mattr=+avx
bugpoint-reduced-simplified.bc -filetype=obj -

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