Bug 246865 - c++: error: unable to execute command: Killed
Summary: c++: error: unable to execute command: Killed
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 12.1-STABLE
Hardware: arm Any
: --- Affects Some People
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 10:09 UTC by tschweikle
Modified: 2020-05-30 10:18 UTC (History)
1 user (show)

See Also:


Attachments
llvm-file the compiler crashed on (974.14 KB, application/x-xz)
2020-05-30 10:18 UTC, tschweikle
no flags Details
Crash reproducer script (5.47 KB, text/plain)
2020-05-30 10:18 UTC, tschweikle
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description tschweikle 2020-05-30 10:09:36 UTC
Seeing this on two systems, both arm. Both where installed with 13.0-CURRENT, one downgraded to 12.1-STABLE

# uname -a
FreeBSD nc400 13.0-CURRENT FreeBSD 13.0-CURRENT r347896 GENERIC  arm
FreeBSD nc401 12.1-STABLE FreeBSD 12.1-STABLE r361362 GENERIC  arm

I wanted to install them both with current 12.1-STABLE and checked out sources to compile them on arm (Raspberry Pi 3b). Both failed with the very same error. A swapfile on an NFS-Volume was activated and got used.

# cat /etc/fstab
# Custom /etc/fstab for FreeBSD embedded images
/dev/ufs/rootfs   /       ufs     rw      1       1
/dev/msdosfs/MSDOSBOOT /boot/msdos msdosfs rw,noatime 0 0
tmpfs /tmp tmpfs rw,mode=1777,size=50m 0 0
nc158:/data/tftp /mnt nfs rw 0 0
md99 none swap sw,file=/mnt/swapfile,late 0 0

top reported swap usage after the compiler crashed:
# top
[...]
Mem: 35M Active, 38M Inact, 108K Laundry, 165M Wired, 98M Buf, 675M Free
Swap: 2048M Total, 40M Used, 2008M Free, 1% Inuse
[...]

The sources where checked out at:
# cd /usr/src; svnlite info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/stable/12
Relative URL: ^/stable/12
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 361626
Node Kind: directory
Schedule: normal
Last Changed Author: avg
Last Changed Rev: 361619
Last Changed Date: 2020-05-29 09:38:57 +0200 (Fr., 29 Mai 2020)

# cd /usr/src; make -j4 buildworld
[...]
--- CodeGen/SelectionDAG/SelectionDAGTargetInfo.o ---
c++ -mlong-calls -O -pipe -fno-common -I/usr/obj/usr/src/arm.armv7/tmp/obj-tools/lib/clang/libllvm -I/usr/src/contrib/llvm-project/l
lvm/lib/Target/ARM -I/usr/src/lib/clang/include -I/usr/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMA
T_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG -DLLVM_DEFAULT_TARGET_TRIPLE=\"armv7-unknown-freebsd12.1-gnueabihf\"
-DLLVM_HOST_TRIPLE=\"armv7-unknown-freebsd12.1\" -DDEFAULT_SYSROOT=\"/usr/obj/usr/src/arm.armv7/tmp\" -DLLVM_TARGET_ENABLE_ARM -DLLV
M_NATIVE_ASMPARSER=LLVMInitializeARMAsmParser -DLLVM_NATIVE_ASMPRINTER=LLVMInitializeARMAsmPrinter -DLLVM_NATIVE_DISASSEMBLER=LLVMIn
itializeARMDisassembler -DLLVM_NATIVE_TARGET=LLVMInitializeARMTarget -DLLVM_NATIVE_TARGETINFO=LLVMInitializeARMTargetInfo -DLLVM_NAT
IVE_TARGETMC=LLVMInitializeARMTargetMC -ffunction-sections -fdata-sections -gline-tables-only -MD -MF.depend.CodeGen_SelectionDAG_Se
lectionDAGTargetInfo.o -MTCodeGen/SelectionDAG/SelectionDAGTargetInfo.o -Qunused-arguments -I/usr/obj/usr/src/arm.armv7/tmp/legacy/u
sr/include  -fno-exceptions -fno-rtti -gline-tables-only -std=c++14 -stdlib=libc++ -Wno-c++11-extensions  -c /usr/src/contrib/llvm-p
roject/llvm/lib/CodeGen/SelectionDAG/SelectionDAGTargetInfo.cpp -o CodeGen/SelectionDAG/SelectionDAGTargetInfo.o
--- CodeGen/SelectionDAG/SelectionDAG.o ---
c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLVM 8.0.0)
Target: armv7-unknown-freebsd12.1-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preproces
sed source, and associated run script.
c++: note: diagnostic msg:
********************

/tmp/SelectionDAG-7b2af2.cpp
/tmp/SelectionDAG-7b2af2.sh

*** [CodeGen/SelectionDAG/SelectionDAG.o] Error code 254

make[4]: stopped in /usr/src/lib/clang/libllvm
1 error
Comment 1 tschweikle 2020-05-30 10:18:02 UTC
Created attachment 215050 [details]
llvm-file the compiler crashed on

The uncompressed file is 8 MiByte
Comment 2 tschweikle 2020-05-30 10:18:48 UTC
Created attachment 215051 [details]
Crash reproducer script