Closed TomFryers closed 3 years ago
Seems this "issue" is popular again :) http://talkchess.com/forum3/viewtopic.php?f=7&t=76026
This topic has been discussed many times for official Stockfish and the maintainers' conclusion always was that crashing on invalid input is expected, because in UCI it is the GUIs responsibility to validate input, not the engine's. I think in CECP it is not that clear cut, but I still do not see it as a major issue, since GUIs are not expected to send invalid input. Since however this is not specific to a certain position but rather in general whether FENs should be validated when using the XBoard protocol, I am closing this in favor of https://github.com/ianfab/Fairy-Stockfish/issues/87.
If one side has their king removed, but the FEN says they can still castle, a segmentation fault occurs.
Presumably depth 16 (or 17?) is when it considers castling.
These are obviously invalid FENs, but a more graceful mechanism is probably still a good idea.