[LLVMbugs] [Bug 15027] New: clang crash: only phi nodes may reference their own value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 21 23:46:53 PST 2013


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

             Bug #: 15027
           Summary: clang crash: only phi nodes may reference their own
                    value
           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


djc at djc-mbp runa $ ./runa com tests/print-var.rns 
Only PHI nodes may reference their own value!
  %7 = add i64 8, %7
Broken module found, compilation aborted!
0  clang             0x0000000106a523c1
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
769
1  clang             0x0000000106a52753
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1683
2  libsystem_c.dylib 0x00007fff8b8728ea _sigtramp + 26
3  libsystem_c.dylib 0x00007f9d00000001 _sigtramp + 18446743650461865777
4  clang             0x0000000106a525d6
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
1302
5  clang             0x0000000106a1d608 std::basic_string<char,
std::char_traits<char>, std::allocator<char> > std::operator+<char,
std::char_traits<char>, std::allocator<char> >(char const*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
+ 6032
6  clang             0x0000000106a1c4aa std::basic_string<char,
std::char_traits<char>, std::allocator<char> > std::operator+<char,
std::char_traits<char>, std::allocator<char> >(char const*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
+ 1586
7  clang             0x0000000106a0daaf std::vector<llvm::StructType*,
std::allocator<llvm::StructType*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::StructType**,
std::vector<llvm::StructType*, std::allocator<llvm::StructType*> > >,
llvm::StructType* const&) + 16861
8  clang             0x0000000106a0d5b6 std::vector<llvm::StructType*,
std::allocator<llvm::StructType*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::StructType**,
std::vector<llvm::StructType*, std::allocator<llvm::StructType*> > >,
llvm::StructType* const&) + 15588
9  clang             0x0000000106a0d503 std::vector<llvm::StructType*,
std::allocator<llvm::StructType*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::StructType**,
std::vector<llvm::StructType*, std::allocator<llvm::StructType*> > >,
llvm::StructType* const&) + 15409
10 clang             0x0000000105e0a4c8
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::serialization::ModuleFile**,
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*> > >,
clang::serialization::ModuleFile* const&) + 5878
11 clang             0x0000000105eb98f8 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&) + 5592
12 clang             0x0000000105d346c4 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
13 clang             0x0000000105d22137 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
14 clang             0x0000000105d1b444
15 clang             0x0000000105d1f4a4 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
16 libdyld.dylib     0x00007fff82ed27e1 start + 0
17 libdyld.dylib     0x0000000000000029 start + 18446603338319583304
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
print-var.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/print-var-ow6lqN.o -x ir
print-var.ll 
1.    Per-function optimization
2.    Running pass 'Module Verifier' on function '@main'
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