Adam-Kulju / Patricia

Extremely aggressive chess engine, written in C++
MIT License
51 stars 6 forks source link

Engine crashing on multiple stop commands. #15

Closed R-Goc closed 1 month ago

R-Goc commented 2 months ago

Using windows v3 binary. Steps to reproduce: position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 go infinite stop stop

I don't know if sending multiple stop commands is UCI compliant. However, I saw it in the log and tested it, and the engine crashes.

Adam-Kulju commented 2 months ago

Thank you for reaching out. This is a bug I became aware of a couple days ago, it occurs because I force join on stop so when you send stop again it tries to join a thread that's already joined and crashes. A fix for it (along with other bugs) will be forthcoming next commit.