[llvm-bugs] [Bug 28085] New: clang-3.8 frontend w/ -flto Segmentation fault (AArch64 target & host)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 10 13:37:29 PDT 2016


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

            Bug ID: 28085
           Summary: clang-3.8 frontend w/ -flto Segmentation fault
                    (AArch64 target & host)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: anthony.louis.eden at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

While compiling QEMU 2.6.0 with -flto on AArch64 (debian jessie), the clang
frontend segfaults. Note that this same build configuration has been tested and
working on X86 host & target.

#0 0x0000002001155fec llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/local/bin/../lib/libLLVM-3.8.so+0x1127fec)
Stack dump:
0.      Program arguments: /usr/local/bin/clang-3.8 -cc1 -triple
aarch64-unknown-linux-gnu -emit-llvm-bc -flto -disable-free -main-file-name
io.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim
-relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-file /home/aeden/qemu-2.6.0-build/block/io.o
-resource-dir /usr/local/bin/../lib/clang/3.8.0 -dependency-file block/io.d -MP
-MT block/io.o -I /home/aeden/qemu-2.6.0/tcg -I
/home/aeden/qemu-2.6.0/tcg/aarch64 -I /home/aeden/qemu-2.6.0/linux-headers -I
/home/aeden/qemu-2.6.0-build/linux-headers -I . -I /home/aeden/qemu-2.6.0 -I
/home/aeden/qemu-2.6.0/include -I /home/aeden/qemu-2.6.0/block -I block -I
/usr/include/pixman-1 -D _GNU_SOURCE -D _FILE_OFFSET_BITS=64 -D
_LARGEFILE_SOURCE -I /home/aeden/qemu-2.6.0/tests -I /usr/include/glib-2.0 -I
/usr/lib/aarch64-linux-gnu/glib-2.0/include -internal-isystem
/usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /usr/include/aarch64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings
-Wmissing-prototypes -Wno-string-plus-int -Wno-initializer-overrides
-Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs
-Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers
-Wold-style-definition -Wtype-limits -fconst-strings -fdebug-compilation-dir
/home/aeden/qemu-2.6.0-build -ferror-limit 19 -fmessage-length
239 -pthread -stack-protector 2 -fallow-half-arguments-and-returns
-fno-signed-char -fno-inline -fobjc-runtime=gcc -fno-common
-fdiagnostics-show-option -fcolor-diagnostics -o block/io.o -x c
/home/aeden/qemu-2.6.0/block/io.c
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      /home/aeden/qemu-2.6.0/block/io.c:2077:24: Generating code for
declaration 'bdrv_em_aiocb_info'
clang-3.8: error: unable to execute command: Segmentation fault
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-3.8: 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-3.8: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/io-0acadc.c
clang-3.8: note: diagnostic msg: /tmp/io-0acadc.sh
clang-3.8: 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/20160610/feebe4e7/attachment-0001.html>


More information about the llvm-bugs mailing list