[llvm-bugs] [Bug 33957] New: clang 5.0 segfaults compiling ghostscript

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 26 16:58:38 PDT 2017


            Bug ID: 33957
           Summary: clang 5.0 segfaults compiling ghostscript
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: raj.khem at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 18855
  --> https://bugs.llvm.org/attachment.cgi?id=18855&action=edit

clang 5.0 when compiled for cross compiling for x86_64 -> armv7-a, it ends up
with a segfault. It works ok with 4.x

here is compiler cmdline to see this error. If -O is removed it works ok. and
secondly if -march=armv7a is removed it works ok again.

/tmp/tmp.jrBJh4IskD/mediasize-36707b.c -c -mlittle-endian -march=armv7a -O

clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see
clang version 5.0.0 (git://github.com/llvm-mirror/clang.git
Target: arm-bec-linux-gnueabi
Thread model: posix
clang-5.0: 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-5.0: 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/20170726/fe42027d/attachment.html>

More information about the llvm-bugs mailing list