-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rare crashes with -fno-trapping-math #585
Comments
This was the crash @Aloril reported on discord: |
@Aloril can you check the binutils version installed, and whether you can reproduce the issue using |
binutils: 2.26.1-1ubuntu1~16.04.7 |
Happened to me as well with gcc 5.5 and fixed node tests, while gcc 8.1 works fine. Made #625 to disable lto builds for now. Also under Ubuntu 16.04 with the same binutils version. |
Native C++ compiler: c++ (gcc 5.4.0 "c++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609") |
The root cause is |
Is there any known issue with any gcc/clang compiler we still support since we switched to C++17? |
The underlying issue is still there. I've changed the title to reflect the real issue. |
Issue still active? @borg323 |
Works fine:
CC=clang-6.0 CXX=clang++-6.0 ./build.sh
Crashes (uses gcc 5.4.0):
./build.sh
./build/release/lc0 --weights=networks/weights_test35b10-35001.pb.gz
position fen rnbqkb1r/1ppppppp/5n2/p7/8/3PB3/PPP1PPPP/RN1QKBNR w KQkq - 0 1 moves g1f3 d7d6 b1c3 e7e5 g2g3 b8c6 f1g2 d6d5 e1g1 d5d4 a2a3 d4e3 f1e1 a5a4 h2h4 e5e4 b2b4 e4f3 d1d2 e3d2 e2e3 b7b6 g3g4 b6b5 g1h1 g7g6 e1d1 g6g5 h4h5 h7h6 h1g1 f3g2 f2f3 c6d4
go movetime 1000000000 nodes 1
Another test case:
./build/release/lc0 --weights=networks/weights_test35b10-35081.pb.gz
position fen r1bqkbnr/pppppp1p/n5p1/8/6P1/5N2/PPPPPP1P/RNBQKB1R w KQkq - 0 1 moves d2d4 d7d5 h1g1
go movetime 1000000000 nodes 1
Also works fine if build.sh modified as following when using GCC:${INSTALL_PREFIX:-/usr/local} "$ @"${INSTALL_PREFIX:-/usr/local} "$ @"
if [ -f ${BUILDDIR}/build.ninja ]
then
meson configure ${BUILDDIR} -Db_lto=false --buildtype ${BUILDTYPE} --prefix
else
meson ${BUILDDIR} -Db_lto=false --buildtype ${BUILDTYPE} --prefix
fi
The text was updated successfully, but these errors were encountered: