Bug#796343: clang-3.5: [arm64] segfault in 'Greedy Register Allocator'

Jakub Wilk jwilk at debian.org
Fri Aug 21 12:29:41 UTC 2015


Package: clang-3.5
Version: 1:3.5.2-2
Severity: important
User: debian-arm at lists.debian.org
Usertags: arm64
Control: affects -1 + src:afl

src:afl FTBFS on amd64, because clang-3.5 segfaults:
| clang -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"1.83b\" afl-clang-fast.c -o ../afl-clang-fast -Wl,-z,relro
| 0  libLLVM-3.5.so.1 0x0000007fb1ec6088 llvm::sys::PrintStackTrace(_IO_FILE*) + 48
| Stack dump:
| 0.	Program arguments: /usr/lib/llvm-3.5/bin/clang -cc1 -triple aarch64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name afl-clang-fast.c -mrelocation-model static -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 -g -dwarf-column-info -resource-dir /usr/lib/llvm-3.5/bin/../lib/clang/3.5.2 -D _FORTIFY_SOURCE=2 -D _FORTIFY_SOURCE=2 -D AFL_PATH="/usr/lib/afl" -D BIN_PATH="/usr/bin" -D VERSION="1.83b" -internal-isystem /usr/include/clang/3.5.2/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.5/bin/../lib/clang/3.5.2/include -internal-externc-isystem /usr/bin/../lib/gcc/aarch64-linux-gnu/5.2.1/include -internal-externc-isystem /usr/include/aarch64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wformat -Werror=format-security -Wall -Wno-pointer-sign -fdebug-compilation-dir /home/jwilk/afl-1.83b/llvm_mode -ferror-limit 19 -fmessage-length 179 -stack-protector 2 -mstackrealign -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o /tmp/afl-clang-fast-557f21.o -x c afl-clang-fast.c 
| 1.	<eof> parser at end of file
| 2.	Code generation
| 3.	Running pass 'Function Pass Manager' on module 'afl-clang-fast.c'.
| 4.	Running pass 'Greedy 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.5.2-2 (tags/RELEASE_352/final) (based on LLVM 3.5.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/afl-clang-fast-394195.c
| clang: note: diagnostic msg: /tmp/afl-clang-fast-394195.sh
| clang: note: diagnostic msg:
|
| ********************
| Makefile:72: recipe for target '../afl-clang-fast' failed


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: arm64 (aarch64)

Kernel: Linux 3.16.0-4-arm64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages clang-3.5 depends on:
ii  binutils                 2.25.1-1
ii  libc6                    2.19-19
ii  libc6-dev                2.19-19
ii  libclang-common-3.5-dev  1:3.5.2-2
ii  libclang1-3.5            1:3.5.2-2
ii  libedit2                 3.1-20150325-1
ii  libffi6                  3.2.1-3
ii  libgcc-5-dev             5.2.1-15
ii  libgcc1                  1:5.2.1-15
ii  libllvm3.5v5             1:3.5.2-2
ii  libobjc-5-dev            5.2.1-15
ii  libstdc++-5-dev          5.2.1-15
ii  libstdc++6               5.2.1-15
ii  libtinfo5                6.0+20150810-1
ii  zlib1g                   1:1.2.8.dfsg-2+b1

Versions of packages clang-3.5 recommends:
ii  llvm-3.5-dev  1:3.5.2-2
ii  python        2.7.9-1

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afl-clang-fast-394195.sh
Type: application/x-sh
Size: 775 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150821/1555f269/attachment-0001.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: afl-clang-fast-394195.c.xz
Type: application/x-xz
Size: 91104 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150821/1555f269/attachment-0001.bin>


More information about the Pkg-llvm-team mailing list