ddugovic / Stockfish

Retired multi-variant fork of popular UCI chess engine; please use Fairy-Stockfish instead
https://github.com/ianfab/Fairy-Stockfish
GNU General Public License v3.0
132 stars 44 forks source link

Infinite loop #587

Closed ddugovic closed 3 years ago

ddugovic commented 3 years ago
$ ./stockfish bench chess 16 1 1 test.fen depth classical
Stockfish 2020-11-22 Multi-Variant by D. Dugovic, F. Fichter et al.
info string variant chess startpos rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1

Position: 1/1 (1qqqkqqq/qqqqqqqq/qqqqqqqq/qqqqqqqq/QQQQQQQQ/QQQQQQQQ/QQQQQQQQ/1QQQKQQQ w - - 0 1)
ddugovic commented 3 years ago

I'm guessing that somehow depth running negative is the root cause: https://github.com/ddugovic/Stockfish/blob/6739ab2af2de791c2415222f862c1c45bb55b932/src/search.cpp#L1899-L1901

ddugovic commented 3 years ago

This issue is no longer reproducible.