[LLVMbugs] [Bug 19300] New: clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379: llvm::VNInfo* llvm::SplitEditor::defValue(unsigned int, const llvm::VNInfo*, llvm::SlotIndex): Assertion `Edit->getParent().getVNInfoAt(Idx) == ParentVNI && "Bad Parent VNI"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 1 11:36:31 PDT 2014


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

            Bug ID: 19300
           Summary: clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379:
                    llvm::VNInfo* llvm::SplitEditor::defValue(unsigned
                    int, const llvm::VNInfo*, llvm::SlotIndex): Assertion
                    `Edit->getParent().getVNInfoAt(Idx) == ParentVNI &&
                    "Bad Parent VNI"' failed.
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: clusty1 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12315
  --> http://llvm.org/bugs/attachment.cgi?id=12315&action=edit
suggested posting file1

Tried compiling clang with gcc 4.1.2.
The compile line was:
CC=gcc CXX=g++ ../llvm/configure
--with-gcc-toolchain=/usr/lib/gcc/x86_64-redhat-linux/4.1.2 --enable-optimized

The error message was:
  COMPILE:   clang_linux/full-x86_64/x86_64:
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c
clang: /mnt/p4/longueuil/clang-llvm/llvm/lib/CodeGen/SplitKit.cpp:379:
llvm::VNInfo* llvm::SplitEditor::defValue(unsigned int, const llvm::VNInfo*,
llvm::SlotIndex): Assertion `Edit->getParent().getVNInfoAt(Idx) == ParentVNI &&
"Bad Parent VNI"' failed.
0  clang           0x0000000002d14b52 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000002d15877
2  libpthread.so.0 0x00000034e5e0e4c0
3  libc.so.6       0x00000034e5230215 gsignal + 53
4  libc.so.6       0x00000034e5231cc0 abort + 272
5  libc.so.6       0x00000034e5229696 __assert_fail + 246
6  clang           0x00000000026aacaf llvm::SplitEditor::defValue(unsigned int,
llvm::VNInfo const*, llvm::SlotIndex) + 703
7  clang           0x00000000026ab260 llvm::SplitEditor::defFromParent(unsigned
int, llvm::VNInfo*, llvm::SlotIndex, llvm::MachineBasicBlock&,
llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >) + 688
8  clang           0x00000000026ab6fc
llvm::SplitEditor::leaveIntvAfter(llvm::SlotIndex) + 780
9  clang           0x00000000026b07be
llvm::SplitEditor::splitRegInBlock(llvm::SplitAnalysis::BlockInfo const&,
unsigned int, llvm::SlotIndex) + 1006
10 clang           0x000000000266a5cc
11 clang           0x000000000266b539
12 clang           0x000000000266e7aa
13 clang           0x000000000266ec72
14 clang           0x000000000277748b llvm::RegAllocBase::allocatePhysRegs() +
299
15 clang           0x00000000026663f7
16 clang           0x00000000025e2dc5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 53
17 clang           0x0000000002c8b7c5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 677
18 clang           0x0000000002c8b85b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
19 clang           0x0000000002c8b2bf
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1087
20 clang           0x0000000002c8b50d
llvm::legacy::PassManager::run(llvm::Module&) + 13
21 clang           0x0000000000951909
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1961
22 clang           0x000000000094e183
23 clang           0x0000000000b91167 clang::ParseAST(clang::Sema&, bool, bool)
+ 391
24 clang           0x000000000094beac clang::CodeGenAction::ExecuteAction() +
60
25 clang           0x000000000071e4e9 clang::FrontendAction::Execute() + 297
26 clang           0x00000000006f4a2e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 350
27 clang           0x00000000006cb65a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 890
28 clang           0x00000000006c2bf4 cc1_main(char const**, char const**, char
const*, void*) + 1284
29 clang           0x00000000006c9977 main + 5303
30 libc.so.6       0x00000034e521d974 __libc_start_main + 244
31 clang           0x00000000006c18a9
Stack dump:
0.      Program arguments:
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name muldc3.c
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.17.50.0.6 -momit-leaf-frame-pointer -coverage-file
/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o
-resource-dir
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/../lib/clang/3.4
-isysroot /mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux
-internal-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/usr/local/include
-internal-isystem
/mnt/p4/longueuil/clang-llvm/build/Release+Asserts/bin/../lib/clang/3.4/include
-internal-externc-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/include
-internal-externc-isystem
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/SDKs/linux/usr/include
-O3 -Wall -Werror -fdebug-compilation-dir
/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt -ferror-limit 19
-fmessage-length 162 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o
/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o
-x c /mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt/lib/muldc3.c'.
4.      Running pass 'Greedy Register Allocator' on function '@__muldc3'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/muldc3-776a4c.c
clang: note: diagnostic msg: /tmp/muldc3-776a4c.sh
clang: note: diagnostic msg:

********************
make[5]: ***
[/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt/clang_linux/full-x86_64/x86_64/SubDir.lib/muldc3.o]
Error 254
make[5]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/llvm/projects/compiler-rt'
make[4]: *** [BuildRuntimeLibraries] Error 2
make[4]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime/compiler-rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory
`/mnt/p4/longueuil/clang-llvm/build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/mnt/p4/longueuil/clang-llvm/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/mnt/p4/longueuil/clang-llvm/build/tools'
make: *** [all] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140401/9ff08e9f/attachment.html>


More information about the llvm-bugs mailing list