[LLVMbugs] [Bug 15028] New: clang crash: inserted value must match indexed type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 21 23:48:24 PST 2013


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

             Bug #: 15028
           Summary: clang crash: inserted value must match indexed type
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dirkjan at ochtman.nl
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


My IR: %15 = insertvalue { i8*, i64, %range* } undef, i1 1, 0

Assertion failed: (ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
Val->getType() && "Inserted value must match indexed type!"), function init,
file Instructions.cpp, line 1645.
0  clang             0x00000001047013c1
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
769
1  clang             0x0000000104701753
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1683
2  libsystem_c.dylib 0x00007fff8b8728ea _sigtramp + 26
3  clang             0x00000001046516e0 llvm::hash_code
llvm::hash_combine<llvm::Type*, llvm::APInt>(llvm::Type* const&, llvm::APInt
const&) + 93
4  clang             0x00000001047015d6
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1302
5  clang             0x00000001047015a4
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1252
6  clang             0x00000001046a9826
std::_Rb_tree<std::pair<llvm::PointerType*, llvm::InlineAsmKeyType>,
std::pair<std::pair<llvm::PointerType*, llvm::InlineAsmKeyType> const,
llvm::InlineAsm*>, std::_Select1st<std::pair<std::pair<llvm::PointerType*,
llvm::InlineAsmKeyType> const, llvm::InlineAsm*> >,
std::less<std::pair<llvm::PointerType*, llvm::InlineAsmKeyType> >,
std::allocator<std::pair<std::pair<llvm::PointerType*, llvm::InlineAsmKeyType>
const, llvm::InlineAsm*> >
>::_M_insert_unique(std::pair<std::pair<llvm::PointerType*,
llvm::InlineAsmKeyType> const, llvm::InlineAsm*> const&) + 27912
7  clang             0x0000000103afc17b std::vector<std::pair<llvm::WeakVH,
llvm::Constant*>, std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> >
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::WeakVH,
llvm::Constant*>*, std::vector<std::pair<llvm::WeakVH, llvm::Constant*>,
std::allocator<std::pair<llvm::WeakVH, llvm::Constant*> > > >,
std::pair<llvm::WeakVH, llvm::Constant*> const&) + 17809
8  clang             0x00000001041a518b void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 82823
9  clang             0x00000001041a0f6a void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 65894
10 clang             0x00000001041a09cc void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 64456
11 clang             0x0000000104198853 void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 31311
12 clang             0x0000000104195cdc void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 20184
13 clang             0x00000001041949e9 void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 15333
14 clang             0x0000000104194891 void
std::__uninitialized_fill_n_aux<llvm::WeakVH*, unsigned long,
llvm::WeakVH>(llvm::WeakVH*, unsigned long, llvm::WeakVH const&,
std::__false_type) + 14989
15 clang             0x00000001041a8b70 std::vector<std::pair<llvm::Type*,
llvm::SMLoc>, std::allocator<std::pair<llvm::Type*, llvm::SMLoc> >
>::_M_fill_insert(__gnu_cxx::__normal_iterator<std::pair<llvm::Type*,
llvm::SMLoc>*, std::vector<std::pair<llvm::Type*, llvm::SMLoc>,
std::allocator<std::pair<llvm::Type*, llvm::SMLoc> > > >, unsigned long,
std::pair<llvm::Type*, llvm::SMLoc> const&) + 1310
16 clang             0x0000000103b68cdf llvm::ParseIR(llvm::MemoryBuffer*,
llvm::SMDiagnostic&, llvm::LLVMContext&) + 85
17 clang             0x0000000103b68708 std::vector<clang::CXXRecordDecl
const*, std::allocator<clang::CXXRecordDecl const*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CXXRecordDecl const**,
std::vector<clang::CXXRecordDecl const*, std::allocator<clang::CXXRecordDecl
const*> > >, clang::CXXRecordDecl const* const&) + 5096
18 clang             0x00000001039e36c4 std::vector<clang::CompilerInstance*,
std::allocator<clang::CompilerInstance*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CompilerInstance**,
std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*>
> >, clang::CompilerInstance* const&) + 11042
19 clang             0x00000001039d1137 std::basic_string<char,
std::char_traits<char>, std::allocator<char> > std::operator+<char,
std::char_traits<char>, std::allocator<char> >(char, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&) + 3151
20 clang             0x00000001039ca444
21 clang             0x00000001039ce4a4 std::vector<std::string,
std::allocator<std::string>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<std::string*,
std::vector<std::string, std::allocator<std::string> > >, std::string const&) +
1350
22 libdyld.dylib     0x00007fff82ed27e1 start + 0
Stack dump:
0.    Program arguments: /usr/local/Cellar/llvm/3.1/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -main-file-name
for.ll -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu
core2 -target-linker-version 134.9 -resource-dir
/usr/local/Cellar/llvm/3.1/bin/../lib/clang/3.1 -fdebug-compilation-dir
/Users/djc/src/runa -ferror-limit 19 -fmessage-length 100 -stack-protector 1
-mstackrealign -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/kx/r0q_5lzx0jj0v8rkt8xq1qd40000gn/T/for-WNPOaw.o -x ir for.ll 
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.

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