-
Bug
-
Resolution: Done
-
Undefined
-
None
-
rhel-9.5
-
None
-
No
-
None
-
rhel-sst-pt-llvm-rust-go
-
ssg_platform_tools
-
None
-
False
-
False
-
-
No
-
None
-
None
-
None
-
Unspecified Release Note Type - Unknown
-
Unspecified
-
Unspecified
-
Unspecified
-
-
x86_64
-
None
When building chromium clang crashes on x86_64
Steps to reproduce
build chromium-136.0.7103.59 in epel9 on x86_64
Expected results
chromium should build fine like it build on aarch64
Actual results
it crashes with following errors:
clang -MD -MF obj/third_party/xnnpack/f16-vapproxgelu_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16/f16-vapproxgelu-avx512fp16-rational-6
-4-div.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_S
OURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_INSTRUMENTED
WITH_ASAN=0 -DCR_LIBCXX_REVISION=449310fe2e37834a7e62972d2a690cade2ef596b -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DCHROMIUM -DXNN_ENABLE
ASSEMBLY=1 -DXNN_ENABLE_GEMM_M_SPECIALIZATION=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_CPUINFO=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -DXNN_LOG_TO_STDIO=0 -DXNN_ENABLE_AVX5
12BF16=0 -DXNN_ENABLE_AVXVNNI=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DPTHREADPOOL_USE_EVENT=0 -DPTHREADPOOL_USE_FUTE
X=0 -DPTHREADPOOL_USE_GCD=0 -DPTHREADPOOL_USE_CONDVAR=0 -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/pthreadpool/src/include -I../../third_party
/xnnpack/src/deps/clog/include -I../../third_party/xnnpack/src/include -I../../third_party/xnnpack/src/src -I../../third_party/xnnpack/src -I../../third_party/perfetto/inc
lude -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/double_conversion_shim -I../../third_party/cpuinfo/src/include -I../../third_par
ty/cpuinfo/src/src -I../../third_party/cpuinfo/src/deps/clog/include -I../../third_party/fp16/src/include -I../../third_party/fxdiv/src/include -I../../third_party/pthread
pool/src/src mavx512bw -mavx512cd -mavx512dq -mavx512f -mavx512fp16 -mavx512vl -mavx512vnni -mf16c -mfma -mgfni -fno-delete-null-pointer-checks -fno-strict-overflow -fno
ident -fno-strict-aliasing -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnost
ics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -fcomple
te-member-pointers m64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section
names -fno-math-errno -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c
++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-inte
rnal-declaration -Wno-cast-function-type -Wno-thread-safety-reference-return -Wno-nontrivial-memcall -Wno-unused-function -Wno-deprecated-comma-subscript -isystem/usr/incl
ude/glib-2.0 -isystem/usr/lib64/glib-2.0/include -isystem/usr/include/sysprof-4 -std=c11 -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-unused-command-line
-argument -Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable -Wno-unused-const-variable -Wno-unneeded-internal-declaration -Wno-unkn
own-attributes -Wno-unknown-pragmas -c ../../third_party/xnnpack/src/src/f16-vapproxgelu/gen/f16-vapproxgelu-avx512fp16-rational-6-4-div.c -o obj/third_party/xnnpack/f16-v
approxgelu_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16/f16-vapproxgelu-avx512fp16-rational-6-4-div.o
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -MD -MF obj/third_party/xnnpack/f16-vapproxgelu_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16/f16-vapproxgelu
-avx512fp16-rational-6-4-div.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_
UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS
-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0 -DCR_LIBCXX_REVISION=449310fe2e37834a7e62972d2a690cade2ef596b -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D
CHROMIUM -DXNN_ENABLE_ASSEMBLY=1 -DXNN_ENABLE_GEMM_M_SPECIALIZATION=1 -DXNN_ENABLE_MEMOPT=1 -DXNN_ENABLE_CPUINFO=1 -DXNN_ENABLE_SPARSE=1 -DXNN_LOG_LEVEL=0 -DXNN_LOG_TO_STD
IO=0 -DXNN_ENABLE_AVX512BF16=0 -DXNN_ENABLE_AVXVNNI=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DPTHREADPOOL_USE_EVENT=0
-DPTHREADPOOL_USE_FUTEX=0 -DPTHREADPOOL_USE_GCD=0 -DPTHREADPOOL_USE_CONDVAR=0 -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../third_party/pthreadpool/src/inclu
de -I../../third_party/xnnpack/src/deps/clog/include -I../../third_party/xnnpack/src/include -I../../third_party/xnnpack/src/src -I../../third_party/xnnpack/src -I../../th
ird_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/double_conversion_shim -I../../third_party/cpuinfo/src/inc
lude -I../../third_party/cpuinfo/src/src -I../../third_party/cpuinfo/src/deps/clog/include -I../../third_party/fp16/src/include -I../../third_party/fxdiv/src/include -I../
../third_party/pthreadpool/src/src -mavx512bw -mavx512cd -mavx512dq -mavx512f -mavx512fp16 -mavx512vl -mavx512vnni -mf16c -mfma -mgfni -fno-delete-null-pointer-checks -fno
-strict-overflow -fno-ident -fno-strict-aliasing -fstack-protector-strong -ftrivial-auto-var-init=zero -fwrapv -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pt
hread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp
-contract=off -fcomplete-member-pointers -m64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-section
s fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno
unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analy
sis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-thread-safety-reference-return -Wno-nontrivial-memcall -Wno-unused-function -Wno-deprecated-comma-subsc
ript -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -isystem/usr/include/sysprof-4 -std=c11 -Wno-deprecated-declarations -Wno-unknown-warning-option -Wn
o-unused-command-line-argument Wno-unused-but-set-variable -Wno-unused-result -Wno-unused-function -Wno-unused-variable -Wno-unused-const-variable -Wno-unneeded-internal
declaration -Wno-unknown-attributes -Wno-unknown-pragmas -c ../../third_party/xnnpack/src/src/f16-vapproxgelu/gen/f16-vapproxgelu-avx512fp16-rational-6-4-div.c -o obj/thir
d_party/xnnpack/f16-vapproxgelu_f16c-fma-avx512f-avx512cd-avx512bw-avx512dq-avx512vl-avx512vnni-gfni-avx512fp16/f16-vapproxgelu-avx512fp16-rational-6-4-div.o
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '../../third_party/xnnpack/src/src/f16-vapproxgelu/gen/f16-vapproxgelu-avx512fp16-rational-6-4-div.c'.
4. Running pass 'Early Machine Loop Invariant Code Motion' on function '@xnn_f16_vapproxgelu_ukernel__avx512fp16_rational_6_4_div_u32'
Notes: it only crashes on x86_64. On aarch64 it just built fine.
clang-18.1.8-3.el9.x86_64 and llvm-18.1.8-3.el9.x86_64 are used to build chromium on epel9/x86_64. For more infos you can have a look at the build/root log
https://koji.fedoraproject.org/koji/taskinfo?taskID=132136498
The clang (same version) also crashes when compiling chromium in on x86_64 in Fedora 40
https://koji.fedoraproject.org/koji/taskinfo?taskID=132137141
Build fine with -O0