Date: Mon, 01 Apr 2024 07:15:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278089] Crash with clang++ 16 building stockfish-official Message-ID: <bug-278089-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278089 Bug ID: 278089 Summary: Crash with clang++ 16 building stockfish-official Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pjfloyd@wanadoo.fr I wanted to try to reproduce a Valgrind issue=20 https://bugs.kde.org/show_bug.cgi?id=3D484742 The steps that I took were git clone https://github.com/official-stockfish/Stockfish.git cd Stockfish/ cd src gmake profile-build ARCH=3Darmv8-dotprod MAKE=3Dgmake CC=3Dclang CXX=3Dclan= g++ -j 4 Here is the terminal output clang++ -Wall -Wcast-qual -fno-exceptions -std=3Dc++17 -fprofile-instr-use=3Dstockfish.profdata -pedantic -Wextra -Wshadow -Wmissing-declarations -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=3D8 -march=3Darmv8.2-a+dotprod -DUSE_NEON_DOTPROD -DGIT_SHA=3Dc964942d -DGIT_DATE=3D20240330 -DARCH=3Darmv8-dotprod -flto=3Df= ull -c -o main.o main.cpp 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: clang++ -Wall -Wcast-qual -fno-exceptions -std= =3Dc++17 -fprofile-instr-use=3Dstockfish.profdata -pedantic -Wextra -Wshadow -Wmissing-declarations -DUSE_PTHREADS -DNDEBUG -O3 -fExpected<T> must be checked before access or destruction. unroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=3D8 -march=3Darmv8.2-a+dotp= rod -DUSE_NEON_DOTPROD -DGIT_SHA=3Dc964942d -DGIT_DATE=3D20240330 -DARCH=3Darmv= 8-dotprod -flto=3Dfull -c -o benchmark.o benchmark.cpp 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: clang++ -Wall -Wcast-qual -fno-exceptions -std= =3Dc++17 -fprofile-instr-use=3Dstockfish.profdata -pedantic -Wextra -Wshadow -Wmissing-declarations -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=3D8 -march=3Darmv8.2-a+dotprod -DUSE_NEON_DOTPROD -DGIT_SHA=3Dc964942d -DGIT_DATE=3D20240330 -DARCH=3Darmv8-dotprod -flto=3Df= ull -c -o bitboard.o bitboard.cpp 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: clang++ -Wall -Wcast-qual -fno-exceptions -std= =3Dc++17 -fprofile-instr-use=3Dstockfish.profdata -pedantic -Wextra -Wshadow -Wmissing-declarations -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=3D8 -march=3Darmv8.2-a+dotprod -DUSE_NEON_DOTPROD -DGIT_SHA=3Dc964942d -DGIT_DATE=3D20240330 -DARCH=3Darmv8-dotprod -flto=3Df= ull -c -o evaluate.o evaluate.cpp 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: clang++ -Wall -Wcast-qual -fno-exceptions -std= =3Dc++17 -fprofile-instr-use=3Dstockfish.profdata -pedantic -Wextra -Wshadow -Wmissing-declarations -DUSE_PTHREADS -DNDEBUG -O3 -funroll-loops -DIS_64BIT -DUSE_POPCNT -DUSE_NEON=3D8 -march=3Darmv8.2-a+dotprod -DUSE_NEON_DOTPROD -DGIT_SHA=3Dc964942d -DGIT_DATE=3D20240330 -DARCH=3Darmv8-dotprod -flto=3Df= ull -c -o main.o main.cpp #0 #0 #0#00x0000000004a3a0e80x0000000004a3a0e8=20=20 0x0000000004a3a0e8PrintStackTrace=20 PrintStackTrace/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.= inc:567:13=20 PrintStackTrace /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:567:13#1 /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:567:13#1 0x0000000004a384c4 #1__cxx_atomic_store<CallbackAndCookie::Status> 0x0000000004a3a0e8=20 /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:50x0000000= 004a384c4 __cxx_atomic_store<CallbackAndCookie::Status> /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:5 #20x0000000004a384c4=20 0x0000000004a384c4__cxx_atomic_store<CallbackAndCookie::Status>=20 store/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:5=20 /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:1543:10#2#2=20 0x0000000004a384c40x0000000004a384c4 storestore=20 /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:1543:10/usr/ob= j/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:1543:10 PrintStackTrace#3 /usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.inc:567:13=20 #1 0x0000000004a384c4#3=20 __cxx_atomic_store<CallbackAndCookie::Status>0x0000000004a384c4=20 /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:5RunSignal= Handlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:106:16#2 #30x0000000004a384c4#4 RunSignalHandlers 0x00000000049e99f4 0x0000000004a384c4/usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cp= p:106:16=20 RunSignalHandlers /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:106:16#4 0x00000000049e99f4 HandleCrash#40x0000000004a384c4=20 store0x00000000049e99f4HandleCrash=20=20 HandleCrash/usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:154= 3:10 /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73= :5 #3 0x0000000004a384c4 /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:= 5=20 /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:= 5RunSignalHandlers#5 #5 #50x00000000049e99f4 0x00000000049e99f4CrashRecoverySignalHandler=20 CrashRecoverySignalHandler/usr/src/contrib/llvm-project/llvm/lib/Support/Cr= ashRecoveryContext.cpp:390:51=20 /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390= :51 #6 #60x000000008af85034 0x00000000049e99f40x000000008a3b0034=20 CrashRecoverySignalHandlerhandle_signal=20 /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390= :51/usr/src/lib/libthr/thread/thr_sig.c:0:3 #6handle_signal 0x0000000089be3034/usr/src/lib/libthr/thread/thr_sig.c:0:= 3=20 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3 /usr/src/contrib/llvm-project/llvm/lib/Support/Signals.cpp:106:16 #4 0x00000000049e99f4 HandleCrash /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:73:5 #5 0x00000000049e99f4 CrashRecoverySignalHandler /usr/src/contrib/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:390= :51 #6 0x000000008aa0e034 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3 clang++clang++: clang++error: clang++: : error: error: clang frontend comma= nd failed with exit code 134 (use -v to see invocation)clang frontend command failed with exit code 134 (use -v to see invocation) : error: clang frontend command failed with exit code 134 (use -v to see invocation) FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)Target:=20 aarch64-unknown-freebsd14.0clang frontend command failed with exit code 134 (use -v to see invocation) Target:=20 Thread model: posix aarch64-unknown-freebsd14.0Target:=20 aarch64-unknown-freebsd14.0 Thread model: posix InstalledDir: /usr/binInstalledDir: FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152) Target: /usr/binThread model: aarch64-unknown-freebsd14.0 posix Thread model:=20 posix InstalledDir: /usr/bin InstalledDir: /usr/bin clang++: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/bitboard-8d5a24.cpp clang++: note: diagnostic msg: /tmp/bitboard-8d5a24.sh clang++: note: diagnostic msg:=20 ******************** gmake[2]: *** [<builtin>: bitboard.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... clang++: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/benchmark-d729e3.cpp clang++: note: diagnostic msg: /tmp/benchmark-d729e3.sh clang++: note: diagnostic msg:=20 ******************** gmake[2]: *** [<builtin>: benchmark.o] Error 1 clang++: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/main-ba395b.cpp clang++: note: diagnostic msg: /tmp/main-ba395b.sh clang++: note: diagnostic msg:=20 ******************** clang++: note: diagnostic msg:=20 ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /tmp/evaluate-d100a2.cpp clang++: note: diagnostic msg: /tmp/evaluate-d100a2.sh clang++: note: diagnostic msg:=20 ******************** gmake[2]: *** [<builtin>: main.o] Error 1 gmake[2]: *** [<builtin>: evaluate.o] Error 1 gmake[2]: Leaving directory '/home/paulf/scratch/Stockfish/src' gmake[1]: *** [Makefile:1065: clang-profile-use] Error 2 gmake[1]: Leaving directory '/home/paulf/scratch/Stockfish/src' gmake: *** [Makefile:894: profile-build] Error 2 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278089-227>