[llvm-bugs] [Bug 27302] New: Clang integrated aarch64 assembler crashes with segfault

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 8 15:46:55 PDT 2016


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

            Bug ID: 27302
           Summary: Clang integrated aarch64 assembler crashes with
                    segfault
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM assembly language parser
          Assignee: unassignedbugs at nondot.org
          Reporter: hxy9243 at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16197
  --> https://llvm.org/bugs/attachment.cgi?id=16197&action=edit
The reduced assembly file that causes the clang segfault.

Clang with aarch64 backend crashes when trying to compile CoreMark benchmark,
which has inline ARM assembly. Following is the clang version and stderr
output.

I've attached the reduced main assembly file as attachment.

Clang is trunk version as of 04/07, with revision r265744.


   $CC -cc1as -triple aarch64-sarc-linux-gnu -filetype obj -o main.o
main_reduced.s
0  libLLVMSupport.so  0x00007f46e9076e25
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  libLLVMSupport.so  0x00007f46e9074bc6 llvm::sys::RunSignalHandlers() + 54
2  libLLVMSupport.so  0x00007f46e9074db3
3  libc.so.6          0x00007f46e74ecd40
4  libLLVMMC.so       0x00007f46e98b8ad4
llvm::MCDwarfFrameEmitter::Emit(llvm::MCObjectStreamer&, llvm::MCAsmBackend*,
bool) + 5636
5  libLLVMMC.so       0x00007f46e98be030 llvm::MCELFStreamer::FinishImpl() + 64
6  libLLVMMCParser.so 0x00007f46e965a757
7  clang-3.9          0x0000000000410f11
8  clang-3.9          0x000000000041431b cc1as_main(llvm::ArrayRef<char
const*>, char const*, void*) + 8251
9  clang-3.9          0x000000000040d7c4 main + 8132
10 libc.so.6          0x00007f46e74d7ec5 __libc_start_main + 245
11 clang-3.9          0x000000000040a7d9
Stack dump:
0.      Program arguments:
/sarc-c/compiler_tmp/tools/cross/llvm-3.9/2016-04-07-23-10-14-d11e1a4-master/bin/clang-3.9
-cc1as -triple aarch64-sarc-linux-gnu -filetype obj -o main.o main1.s
1.      Program arguments: -triple aarch64-sarc-linux-gnu -filetype obj -o
main.o main1.s
0  libLLVMSupport.so  0x00007f46e9076e25
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  libLLVMSupport.so  0x00007f46e9074bc6 llvm::sys::RunSignalHandlers() + 54
2  libLLVMSupport.so  0x00007f46e9074db3
3  libc.so.6          0x00007f46e74ecd40
4  libLLVMMC.so       0x00007f46e98b8ad4
llvm::MCDwarfFrameEmitter::Emit(llvm::MCObjectStreamer&, llvm::MCAsmBackend*,
bool) + 5636
5  libLLVMMC.so       0x00007f46e98be030 llvm::MCELFStreamer::FinishImpl() + 64
6  libLLVMMCParser.so 0x00007f46e965a757
7  clang-3.9          0x0000000000410f11
8  clang-3.9          0x000000000041431b cc1as_main(llvm::ArrayRef<char
const*>, char const*, void*) + 8251
9  clang-3.9          0x000000000040d7c4 main + 8132
10 libc.so.6          0x00007f46e74d7ec5 __libc_start_main + 245
11 clang-3.9          0x000000000040a7d9
[1]    11609 segmentation fault (core dumped)  $CC -cc1as -triple
aarch64-sarc-linux-gnu -filetype obj -o main.o main.s

-- 
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/20160408/00316b09/attachment.html>


More information about the llvm-bugs mailing list