Bug 199765 - arm64: Clang consumes all memory and aborts when compiling with -g
Summary: arm64: Clang consumes all memory and aborts when compiling with -g
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: arm Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 19:27 UTC by Ed Maste
Modified: 2015-08-04 20:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer freebsd_triage 2015-04-28 19:27:39 UTC
-- hello.c --
#include <stdio.h>

int
main(int argc, char *argv[])
{
        puts("hi!");
}
--

root@:~ # clang --version
FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225
Target: aarch64-unknown-freebsd11.0
Thread model: posix

root@:~ # time clang -g hello.c
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple aarch64-unknown-freebsd11.0 -emit-obj -mrelax-all -disable-free -main-file-name hello.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -gdwarf-2 -dwarf-column-info -resource-dir /usr/bin/../lib/clang/3.6.0 -fdebug-compilation-dir /root -ferror-limit 19 -fmessage-length 0 -mstackrealign -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -o /tmp/hello-1af8b6.o -x c hello.c 
1.      <eof> parser at end of file
2.      hello.c:4:1: LLVM IR generation of declaration 'main'
3.      hello.c:4:1: Generating code for declaration 'main'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225
Target: aarch64-unknown-freebsd11.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ 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-233970.c
clang: note: diagnostic msg: /tmp/hello-233970.sh
clang: note: diagnostic msg: 

********************
130.454u 0.000s 2:27.73 88.3%   28980+279k 41+13468io 0pf+0w
root@:~ #
Comment 1 Ed Maste freebsd_committer freebsd_triage 2015-08-04 20:30:00 UTC
Fixed by r284707