#7179·Stockfish

Stockfish struggles with some 4-ply mates

Author: robertnurnbergCreated Sep 19, 2026Updated Sep 27, 2026

Describe the issue

We have recent CI failures for the go mate tests. One is https://github.com/official-stockfish/Stockfish/pull/7178, so this falls clearly on current master. The issue may have been hidden for quite some time.

Expected behavior

Solve any 4-ply mate in reasonable time.

Steps to reproduce

bash
python advancepvs.py --targetMate -2 --outFile mates2all.epd > /dev/null
head -n 1003 mates2all.epd > mates2head.epd
python matecheck.py --engine ./stockfish --epdFile mates2head.epd --mate 0 --threads 4

The above will at times take more than 30min, which is our CI cut-off.

Anything else?

Opening this as an issue so we have a common place to discuss diagnostics and possible fixes.

Operating system

All

Stockfish version

17a6c8f1eb0da45c2ca405321919519bf4e211ba

Source: official-stockfish/Stockfish