Hi,

When using xboard with gnuchess the gnuchess program seems to consistently
crash after 2 moves using the xboard program.

Tested on -current on amd64.
I asked on #openbsd on IRC and another user could reproduce it on -current too.


Snippet from xboard -debug log output:

[...]
41193 <first : 12 -13 195 2245050 (Nc3) Nf6 Nf3 Nc6 Bb5 Bb4 d3 O-O O-O d6 Be3 
Be6 Qe2
Interrupting first
44137 >first : time 28076
44137 >first : otim 29511
book hit = (NULL)
44159 >first : g1e2
44356 <first : stty: TIOCGETD: Inappropriate ioctl for device
GameEnds(27, Error: first chess program (gnuchess) exited unexpectedly, 2)
Interrupting first
45840 >first : result 0-1 {Error: first chess program (gnuchess) exited 
unexpectedly}
45840 >first : force
45840 >first : quit

Reading through this debug log there are lots of messages like "Invalid move:",
"command not supported" and "(NULL)" messages also. My guess is there is maybe
some protocol mismatch or some misconfiguration?

Another issue I noticed is when I copy the example file from
/usr/local/share/examples/xboard/xboard.conf to ~/.xboardrc the xboard program
immediately causes a segmentation fault on startup.

I also noticed gnuchess is out-of-date, the latest version is 6.2.7 (from
2020), while OpenBSD still uses 6.2.5 (from 2017):
http://ftp.gnu.org/gnu/chess/ . But using the latest version didn't help
either.


Below is (not fully-tested) diff to bump gnuchess:


diff --git games/gnuchess/Makefile games/gnuchess/Makefile
index dd04c04a21d..51e64acc1e9 100644
--- games/gnuchess/Makefile
+++ games/gnuchess/Makefile
@@ -2,9 +2,8 @@
 
 COMMENT=       chess program
 
-DISTNAME=      gnuchess-6.2.5
+DISTNAME=      gnuchess-6.2.7
 DISTFILES=     ${DISTNAME}.tar.gz book_1.02.pgn.gz
-REVISION=      2
 
 CATEGORIES=    games
 HOMEPAGE=      http://www.gnu.org/software/chess/
diff --git games/gnuchess/distinfo games/gnuchess/distinfo
index 0a28b386882..76f8cb01b8a 100644
--- games/gnuchess/distinfo
+++ games/gnuchess/distinfo
@@ -1,4 +1,4 @@
 SHA256 (book_1.02.pgn.gz) = 3qx37bBhpZJJoZ3rA9o0nK4FHlJSemy1r4CNk5jTLUQ=
-SHA256 (gnuchess-6.2.5.tar.gz) = mpnpYzVXBsqzIJnRQLaY7aneFk685ApUILG5dy3QSAI=
+SHA256 (gnuchess-6.2.7.tar.gz) = 5TZnWmGr6C5huRn2t4Z1VEHZ/NTCHhyC+55TQN0imEY=
 SIZE (book_1.02.pgn.gz) = 26265281
-SIZE (gnuchess-6.2.5.tar.gz) = 782359
+SIZE (gnuchess-6.2.7.tar.gz) = 802863

-- 
Kind regards,
Hiltjo

Reply via email to