[LLVMbugs] [Bug 22628] New: Assembly crash, linux kernel compilation, clang integrated assembler command failed due to signal

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 18 12:33:10 PST 2015


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

            Bug ID: 22628
           Summary: Assembly crash, linux  kernel compilation, clang
                    integrated assembler command failed due to signal
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: LLVM assembly language parser
          Assignee: unassignedbugs at nondot.org
          Reporter: jmp at safe.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13900
  --> http://llvm.org/bugs/attachment.cgi?id=13900&action=edit
As requested

Unable to compile linux Kernel, 3.19.0-rc4 (extracted from via
git clone git://git.linuxfoundation.org/llvmlinux/kernel.git, compiled 
on FC20 openvz VPS, (shouldn't matter)).

make defconfig
make HOSTCC=clang CC=clang

CHK     include/generated/compile.h
AS      arch/x86/realmode/rm/trampoline_64.o
invalid fixup kind!
UNREACHABLE executed at
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:160!
#0 0x4303cd0 llvm::sys::PrintStackTrace(_IO_FILE*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:423:0
#1 0x4303f6b PrintStackTraceSignalHandler(void*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:481:0
#2 0x4302c2c SignalHandler(int)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:198:0
#3 0x7fd4a6bd16d0 __restore_rt (/lib64/libpthread.so.0+0xf6d0)
#4 0x7fd4a5e10877 __GI_raise (/lib64/libc.so.6+0x35877)
#5 0x7fd4a5e11f68 __GI_abort (/lib64/libc.so.6+0x36f68)
#6 0x42e8e49 bindingsErrorHandler(void*, std::string const&, bool)
/var/tmp/llvm/lib/Support/ErrorHandling.cpp:126:0
#7 0x3fa910a (anonymous
namespace)::X86ELFObjectWriter::GetRelocType(llvm::MCValue const&,
llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:163:0
#8 0x406ddc1 (anonymous namespace)::ELFObjectWriter::GetRelocType(llvm::MCValue
const&, llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:185:0
#9 0x406f93e (anonymous
namespace)::ELFObjectWriter::RecordRelocation(llvm::MCAssembler&,
llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&,
llvm::MCValue, bool&, unsigned long&)
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:843:0
#10 0x408a30c llvm::MCAssembler::handleFixup(llvm::MCAsmLayout const&,
llvm::MCFragment&, llvm::MCFixup const&)
/var/tmp/llvm/lib/MC/MCAssembler.cpp:900:0
#11 0x408a7a7 llvm::MCAssembler::Finish()
/var/tmp/llvm/lib/MC/MCAssembler.cpp:966:0
#12 0x40b7e71 llvm::MCObjectStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCObjectStreamer.cpp:424:0
#13 0x40a7b2a llvm::MCELFStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCELFStreamer.cpp:561:0
#14 0x40bdd9a llvm::MCStreamer::Finish()
/var/tmp/llvm/lib/MC/MCStreamer.cpp:582:0
#15 0x3ffb9f6 (anonymous namespace)::AsmParser::Run(bool, bool)
/var/tmp/llvm/lib/MC/MCParser/AsmParser.cpp:687:0
#16 0x1243efa ExecuteAssembler((anonymous namespace)::AssemblerInvocation&,
clang::DiagnosticsEngine&)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:401:0
#17 0x1244546 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:482:0
#18 0x124b99f ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/var/tmp/llvm/tools/clang/tools/driver/driver.cpp:371:0
#19 0x124beda main /var/tmp/llvm/tools/clang/tools/driver/driver.cpp:415:0
#20 0x7fd4a5dfcd65 __libc_start_main (/lib64/libc.so.6+0x21d65)
#21 0x123cab9 _start (/usr/local/bin/clang+0x123cab9)
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1as -triple
i386-unknown-linux-code16 -filetype obj -main-file-name trampoline_64.S
-target-cpu i386 -target-feature -mmx -target-feature -sse -g
-fdebug-compilation-dir /var/tmp/kernel -dwarf-debug-producer clang version
3.7.0 (trunk 229714) -o arch/x86/realmode/rm/trampoline_64.o
/tmp/trampoline_64-0aaa37.s 
1.    Program arguments: -triple i386-unknown-linux-code16 -filetype obj
-main-file-name trampoline_64.S -target-cpu i386 -target-feature -mmx
-target-feature -sse -g -fdebug-compilation-dir /var/tmp/kernel
-dwarf-debug-producer clang version 3.7.0 (trunk 229714) -o
arch/x86/realmode/rm/trampoline_64.o /tmp/trampoline_64-0aaa37.s 
#0 0x4303cd0 llvm::sys::PrintStackTrace(_IO_FILE*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:423:0
#1 0x4303f6b PrintStackTraceSignalHandler(void*)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:481:0
#2 0x4302c2c SignalHandler(int)
/var/tmp/llvm/lib/Support/Unix/Signals.inc:198:0
#3 0x7fd4a6bd16d0 __restore_rt (/lib64/libpthread.so.0+0xf6d0)
#4 0x7fd4a5e10877 __GI_raise (/lib64/libc.so.6+0x35877)
#5 0x7fd4a5e11f68 __GI_abort (/lib64/libc.so.6+0x36f68)
#6 0x42e8e49 bindingsErrorHandler(void*, std::string const&, bool)
/var/tmp/llvm/lib/Support/ErrorHandling.cpp:126:0
#7 0x3fa910a (anonymous
namespace)::X86ELFObjectWriter::GetRelocType(llvm::MCValue const&,
llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp:163:0
#8 0x406ddc1 (anonymous namespace)::ELFObjectWriter::GetRelocType(llvm::MCValue
const&, llvm::MCFixup const&, bool) const
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:185:0
#9 0x406f93e (anonymous
namespace)::ELFObjectWriter::RecordRelocation(llvm::MCAssembler&,
llvm::MCAsmLayout const&, llvm::MCFragment const*, llvm::MCFixup const&,
llvm::MCValue, bool&, unsigned long&)
/var/tmp/llvm/lib/MC/ELFObjectWriter.cpp:843:0
#10 0x408a30c llvm::MCAssembler::handleFixup(llvm::MCAsmLayout const&,
llvm::MCFragment&, llvm::MCFixup const&)
/var/tmp/llvm/lib/MC/MCAssembler.cpp:900:0
#11 0x408a7a7 llvm::MCAssembler::Finish()
/var/tmp/llvm/lib/MC/MCAssembler.cpp:966:0
#12 0x40b7e71 llvm::MCObjectStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCObjectStreamer.cpp:424:0
#13 0x40a7b2a llvm::MCELFStreamer::FinishImpl()
/var/tmp/llvm/lib/MC/MCELFStreamer.cpp:561:0
#14 0x40bdd9a llvm::MCStreamer::Finish()
/var/tmp/llvm/lib/MC/MCStreamer.cpp:582:0
#15 0x3ffb9f6 (anonymous namespace)::AsmParser::Run(bool, bool)
/var/tmp/llvm/lib/MC/MCParser/AsmParser.cpp:687:0
#16 0x1243efa ExecuteAssembler((anonymous namespace)::AssemblerInvocation&,
clang::DiagnosticsEngine&)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:401:0
#17 0x1244546 cc1as_main(llvm::ArrayRef<char const*>, char const*, void*)
/var/tmp/llvm/tools/clang/tools/driver/cc1as_main.cpp:482:0
#18 0x124b99f ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef)
/var/tmp/llvm/tools/clang/tools/driver/driver.cpp:371:0
#19 0x124beda main /var/tmp/llvm/tools/clang/tools/driver/driver.cpp:415:0
#20 0x7fd4a5dfcd65 __libc_start_main (/lib64/libc.so.6+0x21d65)
#21 0x123cab9 _start (/usr/local/bin/clang+0x123cab9)
clang: error: unable to execute command: Aborted
clang: error: clang integrated assembler command failed due to signal (use -v
to see invocation)
clang version 3.7.0 (trunk 229714)
Target: i386-unknown-linux-code16
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/trampoline_64-bac34d.S
clang: note: diagnostic msg: /tmp/trampoline_64-bac34d.sh
clang: note: diagnostic msg:

-- 
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/20150218/febf78fb/attachment.html>


More information about the llvm-bugs mailing list