Thanks for the report.

Analysis below for other maintainers.

On Monday, 25 October 2021 23:02:48 BST Saba Gogichaishvili wrote:
> When killing a pawn with "ed" or similar input it says "Error (unknown
> command): ed" and lets you make a move for the opponent.
> 
> Steps to reproduce:
> 1. e4 Nf6
> 2. Nc3 Nc6
> 3. Bc4 e6
> 4. d3 Bb4
> 5. Nge2 d5
> 6. ed ?ErRoR?

Reproduced with 6.2.7 (to hand).

Quickest is likely
./gnuchess
force
e4
d5
ed

It is triggering the last "unknown command" in adapter/adapter.cpp just before 
engine_step function is declared.

I noted in reproducing, after the first move, then "Ctrl-D" is also problematic 
here.

./gnuchess
force
e4
ctrl-D

I couldn't immediately see how the code produces this output for "ed", I 
suspect thus memory corruption or similar. The move is being completed, which 
is in a different branch of the "if/elseif/else" statement.

$ gnuchess xboard
Chess
force
e4
1. e4
d5
1. d5
ed
2. ed
Error (unknown command): ed
show board

black  KQkq

r n b q k b n r 
p p p . p p p p 
. . . . . . . . 
. . . P . . . . 
. . . . . . . . 
. . . . . . . . 
P P P P . P P P 
R N B Q K B N R 




  • 6.2.9 Saba Gogichaishvili
    • Re: 6.2.9 Simon Waters

Reply via email to