[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


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

            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
testcase

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.

arm-bec-linux-gnueabi-clang
--sysroot=/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/ghostscript/9.21-r0/recipe-sysroot
/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
invocation)
clang version 5.0.0 (git://github.com/llvm-mirror/clang.git
4c3e691e191e1bef23ee65d4c8d8a640a51c6733)
(git://github.com/llvm-mirror/llvm.git
d175f9addcfa01156feb0711fabc70e7bb72b7cb)
Target: arm-bec-linux-gnueabi
Thread model: posix
InstalledDir:
/mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-gnueabi/ghostscript/9.21-r0/build/../recipe-sysroot-native/usr/bin/arm-bec-linux-gnueabi
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