ProDeo
Would you like to react to this message? Create an account in a few clicks or log in to continue.
ProDeo

Computer Chess
 
HomeHome  CalendarCalendar  Latest imagesLatest images  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  

 

 FYI Stockfish bug fix.

Go down 
2 posters
AuthorMessage
mwyoung

mwyoung


Posts : 814
Join date : 2020-11-25
Location : USA

FYI Stockfish bug fix.  Empty
PostSubject: FYI Stockfish bug fix.    FYI Stockfish bug fix.  EmptySun Jan 08, 2023 2:50 am

If you are using Stockfish 15.1 for your analysis or games. Make sure you are using the latest DEV of Stockfish of January 4 2023 or later.

Stockfish has improved much since then. This maybe in part to a Stockfish bug that has been found and fixed. Full testing results will come.

Maybe the chess engine programmers can explain this bug. I can only measure gains.

Author: mstembera
Date: Wed Jan 4 09:37:02 2023 +0100
Timestamp: 1672821422

Fix stack initialization

This fixes a bug where on line 278 the Stack::staticEvals are
initialized to 0. However VALUE_NONE is defined to be 32002 so
this is a bug in master. It is probably due to the calculation
of improvement, where staticEval prior to rootPos can be accessed.

Back to top Go down
Chris Whittington
Admin



Posts : 839
Join date : 2020-11-17
Location : France

FYI Stockfish bug fix.  Empty
PostSubject: Re: FYI Stockfish bug fix.    FYI Stockfish bug fix.  EmptySun Jan 08, 2023 9:22 am

mwyoung wrote:
If you are using Stockfish 15.1 for your analysis or games. Make sure you are using the latest DEV of Stockfish of January 4 2023 or later.

Stockfish has improved much since then. This maybe in part to a Stockfish bug that has been found and fixed.  Full testing results will come.

Maybe the chess engine programmers can explain this bug. I can only measure gains.

Author: mstembera
Date: Wed Jan 4 09:37:02 2023 +0100
Timestamp: 1672821422

Fix stack initialization

This fixes a bug where on line 278 the Stack::staticEvals are
initialized to 0. However VALUE_NONE is defined to be 32002 so
this is a bug in master. It is probably due to the calculation
of improvement, where staticEval prior to rootPos can be accessed.


On the basis of the explanation above and what I know of SF ….

There’s a variable that hold the evaluation “improvement” in going from one ply to the next (it can be negative of course).

This works fine in the tree because the evaluations are serially saved and always available. There may not be a correct evaluation below the root, so to use this incorrect eval at the root would yield a nonsense improvement variable.
To detect it (no root eval) the SF method is to test for VALUE_NONE, if found, it will set improvement to zero.
The bug was that 0 eval was being initialised below the root, and this broke the test.
Back to top Go down
 
FYI Stockfish bug fix.
Back to top 
Page 1 of 1
 Similar topics
-
» Testing the New Stockfish Net of 45 Mb, Stockfish 190521 vs Stockfish 13 (TC = 5m+5s) (32 Threads)
» Testing the New Stockfish Net of 45 Mb vs 20 Mb, Stockfish 190521 vs Stockfish 13 (TC = 1m+1s)
» Stockfish 110221 Vs. Stockfish 12, Ratings Gain Test, 5000 Games.
» How much Progress? Stockfish 14 vs Stockfish 22/11/21 (NUMA issue fixed version)
» Stockfish NNUE 310121 (1 Core) vs Stockfish 11 (32 Threads) (5m game)

Permissions in this forum:You cannot reply to topics in this forum
ProDeo :: Computer Chess-
Jump to: