Article View: gnu.chess
Article #4872Re: gnuchess/Linux woes
From: Tim Mann
Date: Thu, 15 Sep 1994 16:50
Date: Thu, 15 Sep 1994 16:50
29 lines
2320 bytes
2320 bytes
I booted up linux on my home PC last night and tried building gnuchess pl71 for it to see what would happen. I get similar problems to what others have reported: gnuchess exits in the middle of the game. I have a position where gnuchessr will reproducibly exit during search ply 7. (I didn't bring it with me, but it was easy to find; it came in the first game I played.) Interesting points: (1) The problem is easily reproducible. (2) When the program exits on me, it prints the message "Time Control Error" first. This message is completely bogus. It is printed only by some code in main() that parses command-line arguments! Therefore I'm guessing the problem is that an array on the stack is overflowing and trashing the return address to a function call, causing a jump to a garbage address. In the case I have, the address happens to be in the middle of main(). (3) As another poster reported, the bug seems to go away when -DKILLT is removed from the Makefile OPTS string. This doesn't necessarily mean the bug is in the KILLT code, unfortunately, but that would be a good place to start looking. I will try to find time to look at this further later on, or perhaps Mike or Kong Sian will be able to find it with these hints. On another topic mentioned in this thread: The bug where gnuchess plays on despite being checkmated or stalemated was not fixed in pl71. The patch for it was left out by mistake. It ought to be fixed in pl72. You might be able to find the patch in a recent version of the gnu.chess FAQ posting (but not the latest one). --Tim
Technical Details
Message-ID:
<359u06$3qt@src-news.pa.dec.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!decwrl!pa.dec.com!src.dec.com!mannReferences:
<1994Sep10.131209.19641@midway.uchicago.edu> <1994Sep12.185641.23151@nessie.mcc.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,9047a92267d257eb X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-09-16 07:43:06 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!decwrl!pa.dec.com!src.dec.com!mann From: mann@src.dec.com (Tim Mann) Newsgroups: gnu.chess Subject: Re: gnuchess/Linux woes Date: 15 Sep 1994 16:50:14 GMT Organization: DEC Systems Research Center Lines: 29 Message-ID: <359u06$3qt@src-news.pa.dec.com> References: <1994Sep10.131209.19641@midway.uchicago.edu> <1994Sep12.185641.23151@nessie.mcc.ac.uk> NNTP-Posting-Host: src-mail.pa.dec.com