Skip to content
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

Fix a data race for NNUE build - App crash for the bmi version #2963

Closed
Coolchessguykevin opened this issue Aug 9, 2020 · 5 comments
Closed

Comments

@Coolchessguykevin
Copy link

Latest build from abrok.eu (BMI2 version), terminal engine window works well, but when trying to start analisys in any GUI (checked at Fritz and Aquarium), engine is crashing. NNUE=true, default net used.

Yesterday's build worked well at the same conditions.

Some info from windows event log:

P1: stockfish_20080923_x64_bmi2.exe
P2: 0.0.0.0
P3: 00000000
P4: stockfish_20080923_x64_bmi2.exe
P5: 0.0.0.0
P6: 00000000
P7: c0000005
P8: 00000000000eaaca
P9:
P10:

@Coolchessguykevin
Copy link
Author

It happens ONLY when NNUE=true. With classic evaluation engine works without crashes.

@Coolchessguykevin
Copy link
Author

From the engine log file before its crashes:

setoption name Contempt value 0
setoption name Threads value 7
<< info string Hash table allocation: Windows large pages not used.
setoption name Use NNUE value true
setoption name EvalFile value C:\NNUE\nn-9931db908a9b.nnue
quit

@crossbr
Copy link

crossbr commented Aug 10, 2020

I have the same problem, both with bmi and with avx2, in Arena GUI. It works if I uncheck the "Use NNUE" box, but not if I check that box. I have the same problem with the "Avoid special casing for MinGW" commit (also named 20080923). But Viz's 20080921 works fine for me.

@rooklift
Copy link

I have what seems to be this crash - I agree the relevant commit is the previous one, a6e8929 ("Avoid special casing for MinGW")

@vondele
Copy link
Member

vondele commented Aug 10, 2020

OK, compiler issue identified with gcc 7.3, I'll revert the offending commit.

lucabrivio pushed a commit to lucabrivio/Stockfish that referenced this issue Aug 10, 2020
This reverts commit a6e8929.

The offending setup has been found as gcc/mingw 7.3 (on Ubuntu 18.04).

fixes official-stockfish/Stockfish#2963

closes official-stockfish/Stockfish#2968

No functional change.
noobpwnftw pushed a commit to noobpwnftw/Stockfish that referenced this issue Aug 15, 2020
This reverts commit a6e8929.

The offending setup has been found as gcc/mingw 7.3 (on Ubuntu 18.04).

fixes official-stockfish#2963

closes official-stockfish#2968

No functional change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants