FYI: A main-n259064-f83db6441a2f-dirty non-reproducing crash of system clang

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 07 Nov 2022 05:47:38 UTC
This is after having upgraded to and booted into (long output
line manually split for readability):

# uname -apKU
FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #65
main-n259064-f83db6441a2f-dirty: Sun Nov  6 17:08:00 PST 2022
root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA72
arm64 aarch64 1400073 1400073

I then started doing more builds and got the failure
indicated later. /var/log/messages and dmesg -a output
show no messages about the failure and no messages near
the time of the failure.

Unfortunately, the error did not reproduce via either:

A) The reproducer materials in /tmp/ .
or:
B) Restarting the build that failed.

Nor was a core file left behind to look at.

The system has been stable for a long time prior to this (hours,
days, weeks, months, . . .). The only new environmental thing
has been I've starting using dpni0 (via the new DPAA2 support)
instead of using an Ethernet dongle. This does not have a long
history yet but I had been using it since after my prior FreeBSD
update as well.

It was a -j16 buildworld that got the failure. The failure
messages look like:

. . .

PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: cc -O2 -pipe -fno-common -I. -I/usr/main-src/usr.sbin/config -DNDEBUG -g -gz=zlib -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable -mcpu=cortex-a53 -Qunused-arguments -I/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/include -c lang.c -o lang.o
. . .
#0 0x00000000038fa404 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/main-src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
#1 0x00000000038f8720 llvm::sys::RunSignalHandlers() /usr/main-src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:98:18
#2 0x00000000038acb8c HandleCrash /usr/main-src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:79:5
#3 0x00000000038acb8c CrashRecoverySignalHandler(int) /usr/main-src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:392:51
#4 0x0000000089f2ba58 handle_signal /usr/main-src/lib/libthr/thread/thr_sig.c:0:3
cc: error: clang frontend command failed with exit code 139 (use -v to see invocation)
FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
Target: aarch64-unknown-freebsd14.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg:  ********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/lang-0c2772.c
cc: note: diagnostic msg: /tmp/lang-0c2772.sh
cc: note: diagnostic msg:  
********************
*** [lang.o] Error code 139

make[3]: stopped in /usr/main-src/usr.sbin/config
.ERROR_TARGET='lang.o'
.ERROR_META_FILE='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools/usr.sbin/config/lang.o.meta'
.MAKE.LEVEL='3'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
_ERROR_CMD='cc  -O2 -pipe -fno-common -I. -I/usr/main-src/usr.sbin/config  -DNDEBUG  -g -gz=zlib -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -mcpu=cortex-a53 -Qunused-arguments    -I/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/include -c lang.c -o lang.o; ;'
.CURDIR='/usr/main-src/usr.sbin/config'
.MAKE='make'
.OBJDIR='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools/usr.sbin/config'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='arm64'
MACHINE_ARCH='aarch64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/main-src/share/mk'
MAKE_VERSION='20220726'
PATH='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/bin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/main-src'
OBJTOP='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools'
.MAKE.MAKEFILES='/usr/main-src/share/mk/sys.mk /usr/main-src/share/mk/local.sys.env.mk /usr/main-src/share/mk/src.sys.env.mk /usr/home/root/src.configs/src.conf.CA53-nodbg-clang.aarch64-host /usr/main-src/share/mk/bsd.mkopt.mk /usr/main-src/share/mk/src.sys.obj.mk /usr/main-src/share/mk/auto.obj.mk /usr/main-src/share/mk/bsd.suffixes.mk /usr/home/root/src.configs/make.conf /usr/main-src/share/mk/local.sys.mk /usr/main-src/share/mk/src.sys.mk /dev/null /usr/main-src/usr.sbin/config/Makefile /usr/main-src/tools/build/mk/bsd.prog.mk /usr/main-src/tools/build/mk/Makefile.boot.pre /usr/main-src/share/mk/bsd.prog.mk /usr/main-src/share/mk/bsd.init.mk /usr/main-src/share/mk/bsd.opts.mk /usr/main-src/share/mk/bsd.cpu.mk /usr/main-src/share/mk/local.init.mk /usr/main-src/share/mk/src.init.mk /usr/main-src/usr.sbin/config/../Makefile.inc /usr/main-src/share/mk/bsd.own.mk /usr/main-src/share/mk/bsd.compiler.mk /usr/main-src/share/mk/bsd.endian.mk /usr/main-src/share/mk/bsd.linker.mk /usr/main-src/share/mk/bsd.sanitizer.mk /usr/main-src/share/mk/bsd.libnames.mk /usr/main-src/share/mk/src.libnames.mk /usr/main-src/share/mk/src.opts.mk /usr/main-src/share/mk/bsd.nls.mk /usr/main-src/share/mk/bsd.confs.mk /usr/main-src/share/mk/bsd.files.mk /usr/main-src/share/mk/bsd.dirs.mk /usr/main-src/share/mk/bsd.incs.mk /usr/main-src/share/mk/bsd.links.mk /usr/main-src/share/mk/bsd.dep.mk /usr/main-src/share/mk/bsd.clang-analyze.mk /usr/main-src/share/mk/bsd.obj.mk /usr/main-src/share/mk/bsd.subdir.mk /usr/main-src/share/mk/bsd.sys.mk /usr/main-src/tools/build/mk/Makefile.boot'
.PATH='. /usr/main-src/usr.sbin/config'
1 error

make[3]: stopped in /usr/main-src/usr.sbin/config
.ERROR_TARGET='lang.o'
.ERROR_META_FILE='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools/usr.sbin/config/lang.o.meta'
.MAKE.LEVEL='3'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
_ERROR_CMD='cc  -O2 -pipe -fno-common -I. -I/usr/main-src/usr.sbin/config  -DNDEBUG  -g -gz=zlib -std=gnu99 -Wno-format-zero-length -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-error=unused-but-set-variable  -mcpu=cortex-a53 -Qunused-arguments    -I/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/include -c lang.c -o lang.o; ;'
.CURDIR='/usr/main-src/usr.sbin/config'
.MAKE='make'
.OBJDIR='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools/usr.sbin/config'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='arm64'
MACHINE_ARCH='aarch64'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/usr/main-src/share/mk'
MAKE_VERSION='20220726'
PATH='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/sbin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/bin:/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/main-src'
OBJTOP='/usr/obj/BUILDs/main-CA53-nodbg-clang/usr/main-src/arm64.aarch64/tmp/obj-tools'
.MAKE.MAKEFILES='/usr/main-src/share/mk/sys.mk /usr/main-src/share/mk/local.sys.env.mk /usr/main-src/share/mk/src.sys.env.mk /usr/home/root/src.configs/src.conf.CA53-nodbg-clang.aarch64-host /usr/main-src/share/mk/bsd.mkopt.mk /usr/main-src/share/mk/src.sys.obj.mk /usr/main-src/share/mk/auto.obj.mk /usr/main-src/share/mk/bsd.suffixes.mk /usr/home/root/src.configs/make.conf /usr/main-src/share/mk/local.sys.mk /usr/main-src/share/mk/src.sys.mk /dev/null /usr/main-src/usr.sbin/config/Makefile /usr/main-src/tools/build/mk/bsd.prog.mk /usr/main-src/tools/build/mk/Makefile.boot.pre /usr/main-src/share/mk/bsd.prog.mk /usr/main-src/share/mk/bsd.init.mk /usr/main-src/share/mk/bsd.opts.mk /usr/main-src/share/mk/bsd.cpu.mk /usr/main-src/share/mk/local.init.mk /usr/main-src/share/mk/src.init.mk /usr/main-src/usr.sbin/config/../Makefile.inc /usr/main-src/share/mk/bsd.own.mk /usr/main-src/share/mk/bsd.compiler.mk /usr/main-src/share/mk/bsd.endian.mk /usr/main-src/share/mk/bsd.linker.mk /usr/main-src/share/mk/bsd.sanitizer.mk /usr/main-src/share/mk/bsd.libnames.mk /usr/main-src/share/mk/src.libnames.mk /usr/main-src/share/mk/src.opts.mk /usr/main-src/share/mk/bsd.nls.mk /usr/main-src/share/mk/bsd.confs.mk /usr/main-src/share/mk/bsd.files.mk /usr/main-src/share/mk/bsd.dirs.mk /usr/main-src/share/mk/bsd.incs.mk /usr/main-src/share/mk/bsd.links.mk /usr/main-src/share/mk/bsd.dep.mk /usr/main-src/share/mk/bsd.clang-analyze.mk /usr/main-src/share/mk/bsd.obj.mk /usr/main-src/share/mk/bsd.subdir.mk /usr/main-src/share/mk/bsd.sys.mk /usr/main-src/tools/build/mk/Makefile.boot'
.PATH='. /usr/main-src/usr.sbin/config'

make[2]: stopped in /usr/main-src

make[2]: stopped in /usr/main-src

make[2]: stopped in /usr/main-src
        6.42 real        26.37 user         5.47 sys

make[1]: stopped in /usr/main-src

make: stopped in /usr/main-src




===
Mark Millard
marklmi at yahoo.com