From nobody Mon Apr 01 07:15:36 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V7Mjj0KZcz5FndQ for ; Mon, 1 Apr 2024 07:15:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V7Mjh3gWhz4h4G for ; Mon, 1 Apr 2024 07:15:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711955736; a=rsa-sha256; cv=none; b=lJxe87aCdI5Zg6IAKZeqtLLwkredauSK5RnqEG4wX0xDGf2SYgAZwoKAPWSoq8AB3r3f4Q q5Pck2rhw8ijTl6XjVK2gljdBLyQvv58KEc/LcosWkktRXEdD+XnAW1snjppbyj1W7Rrgj /drW+ZBIYOadlmuW8JBDWQu7NJ5MQyhA0s/hjLnxC9HbhESfUYxLvKJwUV9fjgp8Nf/kRi 1bmTL8EbiXgTp6SrlieFdgB8cyDkGdsb2Hx4uscMRMij5AKc2e9HP1964oiraNgW3cqk7P X7RrbxS/0tcMvW9hnsOAHNzK+hfD6iv6eMPPOvaWw/nmsJ3tXi1cFTQMfcytjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711955736; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7AFDXOLhOU31ORvOELUb/Wa0xmTWXyHJ9SEgO0G9tn4=; b=LGJa/s2S7u3UZhDn8t04oha8M/nBpvXSW9AfNKs7lqU4hjfZ/tA1Dcx+4M7egeUl6XAcDT shMdYLV6VbqxnbhiC8lMDcTvQzbagkBxKo3chccgyocDLbHEXfNfjU+HEOJFhH37O99JjD TIW6htEs6bkns4SnFfgzWztTmH4KGDKhx6cDMNlmb0fU3MdSnLFkrJeFV6bHHWc1y7BUl6 tkTl8EUL+mVwQ2zbg5bFEcoes8b1mq0Pr001zbW2isG906j78RVRLYJIIY7hjaw/3Cj1yP LnidfWKtf+c2jOON1MtuuMp6oIOARYB1YnGblC+r4Mna5Zog1KJgxx4vRjFb4A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V7Mjh3H70z1BZ0 for ; Mon, 1 Apr 2024 07:15:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4317Fa3g072797 for ; Mon, 1 Apr 2024 07:15:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4317Fa9Y072796 for bugs@FreeBSD.org; Mon, 1 Apr 2024 07:15:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278089] Crash with clang++ 16 building stockfish-official Date: Mon, 01 Apr 2024 07:15:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 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 must be checked before access or destruction. Expected value was in success state. (Note: Expected 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 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 value was in success state. (Note: Expected 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 must be checked before access or destruction. Expected value was in success state. (Note: Expected 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 must be checked before access or destruction. Expected value was in success state. (Note: Expected 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 0x0000000004a3a0e8=20 /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:50x0000000= 004a384c4 __cxx_atomic_store /usr/obj/usr/src/arm64.aarch64/tmp/usr/include/c++/v1/atomic:950:5 #20x0000000004a384c4=20 0x0000000004a384c4__cxx_atomic_store=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_store0x0000000004a384c4=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]: *** [: 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]: *** [: 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]: *** [: main.o] Error 1 gmake[2]: *** [: 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.=