[Bug 276170] LLVM bug prevents from enabling PGO optimization for Python 3.11+

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 07 Jan 2024 15:12:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276170

--- Comment #12 from dmilith <dmilith@me.com> ---
Also, it's 100% reproducible. Even from the sh file:

#16:11:12 vks5-14-0 /tmp λ cp
/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1/code.profclangd ./
#16:11:37 vks5-14-0 /tmp λ sh ./pegen_errors-927930.sh
Expected<T> must be checked before access or destruction.
Expected<T> value was in success state. (Note: Expected<T> values in success
mode must still be checked prior to being destroyed).
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: /usr/bin/clang -cc1 -triple
aarch64-unknown-freebsd14.0 -emit-llvm-bc -flto=thin -flto-unit -disable-free
-clear-ast-before-backend -disable-llvm-verifier -discard-value-names
-main-file-name pegen_errors.c -mrelocation-model pic -pic-level 2
-fhalf-no-semantic-interposition -mframe-pointer=non-leaf -ffp-contract=on
-fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu generic
-target-feature +neon -target-feature +v8a -target-abi aapcs -mllvm
-treat-scalable-fixed-error-as-warning -debug-info-kind=standalone
-dwarf-version=5 -debugger-tuning=gdb
-fprofile-instrument-use-path=code.profclangd
-fcoverage-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1
-D NDEBUG -D Py_BUILD_CORE -O3 -Wformat -Wformat-security -Wformat
-Wformat-security -Werror=implicit-function-declaration -w -std=c11
-fdebug-compilation-dir=/Software/Python312/.src_34340eab1ef9bee6/Python-3.12.1
-ferror-limit 1 -fvisibility=hidden -ftrapv -fwrapv -pthread -stack-protector 1
-stack-protector-buffer-size 4 -stack-protector-buffer-size 4 -fno-signed-char
-fgnuc-version=4.2.1 -vectorize-loops -vectorize-slp -faddrsig
-D__GCC_HAVE_DWARF2_CFI_ASM=1 -x c pegen_errors-927930.c
#0 0x0000000004a3a0e8 (/usr/bin/clang+0x4a3a0e8)
#1 0x0000000004a384c4 (/usr/bin/clang+0x4a384c4)
#2 0x0000000004a3a7c8 (/usr/bin/clang+0x4a3a7c8)
#3 0x0000000045e67034 (/lib/libthr.so.3+0x2b034)
zsh: exit 134   sh ./pegen_errors-927930.sh

-- 
You are receiving this mail because:
You are the assignee for the bug.