Bug#801695: clang segfaults on hello world on arm64

Riku Voipio riku.voipio at iki.fi
Tue Oct 13 14:27:19 UTC 2015


Package: clang-3.6
Version: 1:3.6.2-1
Severity: important

It looks like clang-3.6 is broken on arm64:

A simple hello world:

-cut-
#include <stdio.h>

int main(void)
{
        printf("Hello, world!\n");
        return 0;
}
-cut-

Blows up:
clang -c hello.c
0  libLLVM-3.6.so.1 0x0000007fade10130 llvm::sys::PrintStackTrace(_IO_FILE*) + 48
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.6/bin/clang -cc1 -triple aarch64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name hello.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -target-linker-version 2.25.1 -dwarf-column-info -coverage-file /home/riku/hello.c -resource-dir /usr/lib/llvm-3.6/bin/../lib/clang/3.6.2 -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.6/bin/../lib/clang/3.6.2/include -internal-externc-isystem /usr/include/aarch64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /home/riku -ferror-limit 19 -fmessage-length 125 -mstackrealign -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o hello.o -x c hello.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'hello.c'.
4.      Running pass 'Fast Register Allocator' on function '@main'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Debian clang version 3.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
Target: aarch64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ 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/hello-8a3602.c
clang: note: diagnostic msg: /tmp/hello-8a3602.sh
clang: note: diagnostic msg:

********************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello-8a3602.c
Type: text/x-csrc
Size: 165999 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20151013/dc3514ab/attachment-0001.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hello-8a3602.sh
Type: application/x-sh
Size: 663 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20151013/dc3514ab/attachment-0001.sh>


More information about the Pkg-llvm-team mailing list