xboard issue

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

jdart
Posts: 4402
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: xboard issue

Post by jdart »

I didn't have a number after -keepAlive (for some reason this didn't cause an error - ?). So I tried "-keepAlive 3" - and it worked! In fact it stayed online all day and was still alive when I checked it this evening. So thanks for the fix!

--Jon
User avatar
hgm
Posts: 28356
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: xboard issue

Post by hgm »

This is indeed weird, and error-prone. WinBoard does not check the validity of its option values at all. The generic parser passes them as a string to the code that sets the option values. When the argument is supposed to be in int, it just grinds it through atoi(), without checking if there are any digits in there at all.

Only when -eepAlive without arguments was the last option, it drew a complaint. Otherwise it jsjut eats the following option as argument. And if that was an option without arguments, you are in sync again to tread the rest.

I guess this should be considered a bug!