https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287678
Bug ID: 287678
Summary: buildworld i386 14.3-STABLE clang frontend command
failed with exit code 139
Product: Base System
Version: 14.3-STABLE
Hardware: i386
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Created attachment 261436
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261436&action=edit
Crash reproducer for FreeBSD clang
Trying to upgrade to 14.3-STABLE from 14.2-STABLE on i386 system via
buildworld.
System has VIA C7 1.0GHz CPU, 1GB RAM, 2GB swap partition, 4GB swapfile. Same
hardware has successfully upgraded with buildworld && buildkernel since 14.0.
Have tried with new empty /usr/obj/ just in case, same fail. Takes a couple
days to reproduce, updating /usr/src/ each time as well, but seems consistent.
If this is a wontfix situation, e.g. due to 32-bit i386 support dropping from
forthcoming 15.0, that's okay -- please advise and I'll move on to a different
OS (e.g. NetBSD).
----
c++ -target i386-unknown-freebsd14.3 --sysroot=/usr/obj/usr/src/i386.i386/tmp
-
B/usr/obj/usr/src/i386.i386/tmp/usr/bin -fpic -DPIC -UPIC -O2 -pipe -fno-common
-I/usr/obj/usr/src/i386.i386/lib/clang/libclang
-I/usr/obj/usr/src/i386.i386/lib
/clang/libllvm -I/usr/src/contrib/llvm-project/clang/lib/Basic
-I/usr/src/contri
b/llvm-project/clang/lib/Driver
-I/usr/src/contrib/llvm-project/clang/lib/CodeGe
n -I/usr/src/contrib/llvm-project/clang/include -DCLANG_ENABLE_ARCMT
-DCLANG_ENA
BLE_STATIC_ANALYZER -I/usr/src/lib/clang/include
-I/usr/src/contrib/llvm-project
/llvm/include -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MAC
ROS -DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TARGET_TRIPLE=\"i386-unknown-
freebsd14.3\" -DLLVM_HOST_TRIPLE=\"i386-unknown-freebsd14.3\"
-DDEFAULT_SYSROOT=
\"\" -DLLVM_TARGET_ENABLE_AARCH64 -DLLVM_TARGET_ENABLE_ARM
-DLLVM_TARGET_ENABLE_
POWERPC -DLLVM_TARGET_ENABLE_RISCV -DLLVM_TARGET_ENABLE_X86
-DLLVM_NATIVE_ASMPAR
SER=LLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrin
ter -DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler
-DLLVM_NATIVE_TARGE
T=LLVMInitializeX86Target -DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo
-
DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC -ffunction-sections
-fdata-secti
ons -gline-tables-only -MD -MF.depend.CodeGen_CGObjC.pico
-MTCodeGen/CGObjC.pico
-Wno-format-zero-length -fstack-protector-strong -Wdate-time -Wno-empty-body
-W
no-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-paramete
r -Wno-error=cast-function-type-mismatch -Wno-tautological-compare
-Wno-unused-v
alue -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
-Wno-un
used-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum
-W
no-knr-promoted-parameter -Wno-parentheses -Qunused-arguments -fno-exceptions
-
fno-rtti -gline-tables-only -std=c++17 -stdlib=libc++ -Wno-c++11-extensions
-c /usr/src/contrib/llvm-project/clang/lib/CodeGen/CGObjC.cpp -o
CodeGen/CGObjC
.pico
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
c
rash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: c++ -target i386-unknown-freebsd14.3
--sysroot=/usr/o
bj/usr/src/i386.i386/tmp -B/usr/obj/usr/src/i386.i386/tmp/usr/bin -fpic -DPIC
-U
PIC -O2 -pipe -fno-common -I/usr/obj/usr/src/i386.i386/lib/clang/libclang
-I/usr
/obj/usr/src/i386.i386/lib/clang/libllvm
-I/usr/src/contrib/llvm-project/clang/l
ib/Basic -I/usr/src/contrib/llvm-project/clang/lib/Driver
-I/usr/src/contrib/llv
m-project/clang/lib/CodeGen -I/usr/src/contrib/llvm-project/clang/include
-DCLAN
G_ENABLE_ARCMT -DCLANG_ENABLE_STATIC_ANALYZER -I/usr/src/lib/clang/include
-I/us
r/src/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT
_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC -DNDEBUG
-DLLVM_DEFAULT_TAR
GET_TRIPLE=\"i386-unknown-freebsd14.3\"
-DLLVM_HOST_TRIPLE=\"i386-unknown-freebs
d14.3\" -DDEFAULT_SYSROOT=\"\" -DLLVM_TARGET_ENABLE_AARCH64
-DLLVM_TARGET_ENABLE
_ARM -DLLVM_TARGET_ENABLE_POWERPC -DLLVM_TARGET_ENABLE_RISCV
-DLLVM_TARGET_ENABL
E_X86 -DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser
-DLLVM_NATIVE_ASMPRINTE
R=LLVMInitializeX86AsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disass
embler -DLLVM_NATIVE_TARGET=LLVMInitializeX86Target
-DLLVM_NATIVE_TARGETINFO=LLV
MInitializeX86TargetInfo -DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC
-ffunc
tion-sections -fdata-sections -gline-tables-only -MD
-MF.depend.CodeGen_CGObjC.p
ico -MTCodeGen/CGObjC.pico -Wno-format-zero-length -fstack-protector-strong
-Wda
te-time -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
-Wno-err
or=unused-but-set-parameter -Wno-error=cast-function-type-mismatch
-Wno-tautolog
ical-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function
-W
no-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member
-Wno-
switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses
-Qunused-ar
guments -fno-exceptions -fno-rtti -gline-tables-only -std=c++17 -stdlib=libc++
-
Wno-c++11-extensions -c
/usr/src/contrib/llvm-project/clang/lib/CodeGen/CGObjC.c
pp -o CodeGen/CGObjC.pico
1. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:659:2:
current
parser token ';'
2. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:285:1
<Spellin
g=/usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/__config:617:39>: parsing
na
mespace 'std'
3. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:285:1
<Spellin
g=/usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/__config:618:39>: parsing
na
mespace 'std::__1'
4. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:424:1:
parsing
namespace 'std::__variant_detail'
5. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:495:1:
parsing
namespace 'std::__variant_detail::__visitation'
6. /usr/obj/usr/src/i386.i386/tmp/usr/include/c++/v1/variant:584:1:
parsing
struct/union/class body 'std::__variant_detail::__visitation::__variant'
#0 0x0520acd4 PrintStackTrace
/usr/src/contrib/llvm-project/llvm/lib/Support/Uni
x/Signals.inc:723:13
#1 0x0520b1a0
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:79
7:3
#2 0x05208bde RunSignalHandlers
/usr/src/contrib/llvm-project/llvm/lib/Support/S
ignals.cpp:104:5
#3 0x051d48eb HandleCrash
/usr/src/contrib/llvm-project/llvm/lib/Support/CrashRe
coveryContext.cpp:71:7
#4 0x051d48eb CrashRecoverySignalHandler
/usr/src/contrib/llvm-project/llvm/lib/
Support/CrashRecoveryContext.cpp:390:51
#5 0x26b91d09 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:299:3
c++: error: clang frontend command failed with exit code 139 (use -v to see
invo
cation)
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git
llvmorg-1
9.1.7-0-gcd708029e0b2)
Target: i386-unknown-freebsd14.3
Thread model: posix
InstalledDir: /usr/bin
c++: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/CGObjC-ae3912.cpp
c++: note: diagnostic msg: /tmp/CGObjC-ae3912.sh
c++: note: diagnostic msg:
********************
*** Error code 1
Stop.
make[6]: stopped in /usr/src/lib/clang/libclang
*** Error code 1
Stop.
make[5]: stopped in /usr/src/lib/clang
*** Error code 1
Stop.
make[4]: stopped in /usr/src/lib
*** Error code 1
Stop.
make[3]: stopped in /usr/src
*** Error code 1
Stop.
make[2]: stopped in /usr/src
154725.18 real 147768.34 user 5883.95 sys
*** Error code 1
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
----
Can not attach the 24MB clang .cpp file due to size limit. The .sh file is
attached.
--
You are receiving this mail because:
You are the assignee for the bug.