[llvm-bugs] [Bug 24677] New: Assertion failure in X86RegisterInfo.cpp:560

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 2 05:54:03 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24677

            Bug ID: 24677
           Summary: Assertion failure in X86RegisterInfo.cpp:560
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: nickc at redhat.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14812
  --> https://llvm.org/bugs/attachment.cgi?id=14812&action=edit
Preprocessed source file

Compiling the gcc testsuite test gcc.c-torture/compile/20031023-4.c at -O0
gives:

clang-3.8: /work/sources/llvm/current/lib/Target/X86/X86RegisterInfo.cpp:560:
virtual void
llvm::X86RegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::iterator,
int, unsigned int, llvm::RegScavenger*) const: Assertion `(!Is64Bit ||
isInt<32>((long long)FIOffset + Imm)) && "Requesting 64-bit offset in 32-bit
immediate!"' failed.
0  clang-3.8       0x00000000029083d5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 44
1  clang-3.8       0x0000000002908752
2  clang-3.8       0x000000000290701b llvm::sys::RunSignalHandlers() + 138
3  clang-3.8       0x0000000002907430
4  libpthread.so.0 0x00007f1802a68430
5  libc.so.6       0x00007f1801c159c8 gsignal + 56
6  libc.so.6       0x00007f1801c1765a abort + 362
7  libc.so.6       0x00007f1801c0e187
8  libc.so.6       0x00007f1801c0e232
9  clang-3.8       0x0000000001cce13f
llvm::X86RegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator<llvm::MachineInstr,
llvm::ilist_iterator<llvm::MachineInstr> >, int, unsigned int,
llvm::RegScavenger*) const + 1199
10 clang-3.8       0x00000000021bd1e4
11 clang-3.8       0x00000000021bca36
12 clang-3.8       0x00000000021ba388
13 clang-3.8       0x000000000212c5c7
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
14 clang-3.8       0x00000000024e8a51
llvm::FPPassManager::runOnFunction(llvm::Function&) + 315
15 clang-3.8       0x00000000024e8bc8
llvm::FPPassManager::runOnModule(llvm::Module&) + 118
16 clang-3.8       0x00000000024e8ef7
17 clang-3.8       0x00000000024e9572
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 264
18 clang-3.8       0x00000000024e9777
llvm::legacy::PassManager::run(llvm::Module&) + 39
19 clang-3.8       0x0000000002a56e18
20 clang-3.8       0x0000000002a56ecc
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_pwrite_stream*)
+ 127
21 clang-3.8       0x0000000003215b5e
22 clang-3.8       0x0000000003aaf828 clang::ParseAST(clang::Sema&, bool, bool)
+ 812
23 clang-3.8       0x0000000002eaa0c3 clang::ASTFrontendAction::ExecuteAction()
+ 321
24 clang-3.8       0x0000000003214fc0 clang::CodeGenAction::ExecuteAction() +
1326
25 clang-3.8       0x0000000002ea9b67 clang::FrontendAction::Execute() + 135
26 clang-3.8       0x0000000002e693ca
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 782
27 clang-3.8       0x0000000002fa6ec3
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1120
28 clang-3.8       0x0000000001403e12 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 989
29 clang-3.8       0x00000000013fa9ae
30 clang-3.8       0x00000000013fafdf main + 1309
31 libc.so.6       0x00007f1801c01700 __libc_start_main + 240
32 clang-3.8       0x00000000013f91e9 _start + 41
Stack dump:
0.    Program arguments:
/home/nickc/work/builds/llvm/current/native/bin/clang-3.8 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
20031023-4.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -dwarf-column-info -coverage-file
/home/nickc/work/builds/gcc/current/x86_64-pc-linux-gnu/gcc/testsuite/gcc/20031023-4.o
-resource-dir
/home/nickc/work/builds/llvm/current/native/bin/../lib/clang/3.8.0
-internal-isystem /usr/local/include -internal-isystem
/home/nickc/work/builds/llvm/current/native/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-w -fdebug-compilation-dir
/home/nickc/work/builds/gcc/current/x86_64-pc-linux-gnu/gcc/testsuite/gcc
-ferror-limit 19 -fmessage-length 74 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -o 20031023-4.o -x c
/work/sources/gcc/current/gcc/testsuite/gcc.c-torture/compile/20031023-4.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module
'/work/sources/gcc/current/gcc/testsuite/gcc.c-torture/compile/20031023-4.c'.
4.    Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on
function '@baz'
clang-3.8: error: unable to execute command: Aborted (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 246619)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /work/builds/llvm/current/native/bin

-- 
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/20150902/dc0cbf63/attachment-0001.html>


More information about the llvm-bugs mailing list