[llvm-bugs] [Bug 26052] New: clang crashes on x86_64-linux-gnu
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 6 15:22:44 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26052
Bug ID: 26052
Summary: clang crashes on x86_64-linux-gnu
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: helloqirun at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The current clang trunk crashes when compiling the following test case on
x86_64-linux-gnu in both 32-bit and 64-bit modes.
$ clang-trunk -v
clang version 3.8.0 (trunk 256926) (llvm/trunk 256925)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
clang-trunk -c abc.c
clang:
/home/absozero/trunk/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1494: void
(anonymous
namespace)::TwoAddressInstructionPass::processTiedPairs(llvm::MachineInstr *,
TiedPairList &, unsigned int &): Assertion `i == DstIdx ||
!MI->getOperand(i).isReg() || MI->getOperand(i).getReg() != RegA' failed.
#0 0x0000000003041a98 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/absozero/trunk/root-clang/bin/clang+0x3041a98)
#1 0x0000000003042207 (/home/absozero/trunk/root-clang/bin/clang+0x3042207)
#2 0x00007fb7ee64a340 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10340)
#3 0x00007fb7ed42ecc9 gsignal
/build/buildd/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#4 0x00007fb7ed4320d8 abort /build/buildd/eglibc-2.19/stdlib/abort.c:91:0
#5 0x00007fb7ed427b86 __assert_fail_base
/build/buildd/eglibc-2.19/assert/assert.c:92:0
#6 0x00007fb7ed427c32 (/lib/x86_64-linux-gnu/libc.so.6+0x2fc32)
#7 0x00000000027f81bc (/home/absozero/trunk/root-clang/bin/clang+0x27f81bc)
#8 0x00000000026ec569 llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang+0x26ec569)
#9 0x0000000002f87d14 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/absozero/trunk/root-clang/bin/clang+0x2f87d14)
#10 0x0000000002f87f5b llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang+0x2f87f5b)
#11 0x0000000002f88425 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/absozero/trunk/root-clang/bin/clang+0x2f88425)
#12 0x0000000000a078ed clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*, std::unique_ptr<llvm::FunctionInfoIndex,
std::default_delete<llvm::FunctionInfoIndex> >)
(/home/absozero/trunk/root-clang/bin/clang+0xa078ed)
#13 0x00000000009e834b (/home/absozero/trunk/root-clang/bin/clang+0x9e834b)
#14 0x0000000000c96046 clang::ParseAST(clang::Sema&, bool, bool)
(/home/absozero/trunk/root-clang/bin/clang+0xc96046)
#15 0x000000000077c875 clang::FrontendAction::Execute()
(/home/absozero/trunk/root-clang/bin/clang+0x77c875)
#16 0x0000000000745a91
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/absozero/trunk/root-clang/bin/clang+0x745a91)
#17 0x0000000000724bcc
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/absozero/trunk/root-clang/bin/clang+0x724bcc)
#18 0x000000000071aa88 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/absozero/trunk/root-clang/bin/clang+0x71aa88)
#19 0x0000000000723273 main
(/home/absozero/trunk/root-clang/bin/clang+0x723273)
#20 0x00007fb7ed419ec5 __libc_start_main
/build/buildd/eglibc-2.19/csu/libc-start.c:321:0
#21 0x000000000071a524 _start
(/home/absozero/trunk/root-clang/bin/clang+0x71a524)
Stack dump:
0. Program arguments: /home/absozero/trunk/root-clang/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
abc.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 -target-linker-version 2.24
-dwarf-column-info -debugger-tuning=gdb -coverage-file
/home/absozero/compiler/reduction/abc.c -resource-dir
/home/absozero/trunk/root-clang/bin/../lib/clang/3.8.0 -internal-isystem
/usr/local/include -internal-isystem
/home/absozero/trunk/root-clang/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir /home/absozero/compiler/reduction -ferror-limit 19
-fmessage-length 172 -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o abc.o -x c abc.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'abc.c'.
4. Running pass 'Two-Address instruction pass' on function '@foollb'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (trunk 256926) (llvm/trunk 256925)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
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/abc-9e951c.c
clang: note: diagnostic msg: /tmp/abc-9e951c.sh
clang: note: diagnostic msg:
********************
-------------------------
int foollb (long long llp)
{
register long long ll asm ("rax") = llp;
asm ("foo1b %0" : "=r" (ll) : "0" (llp) : "rax");
return ll;
}
--
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/20160106/3258ab9c/attachment.html>
More information about the llvm-bugs
mailing list