Article View: gnu.chess
Article #4097Re: gnuchess and linux (sort of a patch)
From: Nikhil Nair
Date: Sat, 24 Feb 1996 00:00
Date: Sat, 24 Feb 1996 00:00
38 lines
1756 bytes
1756 bytes
On 22 Feb 1996 mbauer@ltec.net wrote:
> In the file search.c on line 595 reads
>
> UTSHORT mv, nxtline[MAXDEPTH+1];
>
> change this to
>
> UTSHORT mv, mxtline[MAXDEPTH+5];
>
> this seems to prevent the crashes but I could not find out where this array
> is indexed out of bounds. I ran the make check on it and it gets does not
> get the correct answer on a few of them. If anyone else has any ideas please
> post them.
Either you or I has missed something here. I'm using gnuchess 4.0pl75 on
Linux, with a bugfix posted quite a while back (January, I think) by
Kong Sian. I t;hink it's in the FAQ, but here's a patch:
$ diff -u gnuchess-4.0.75.orig/src/search.c gnuchess-4.0.75/src/search.c
--- gnuchess-4.0.75.orig/src/search.c Sun Jul 2 04:51:07 1995
+++ gnuchess-4.0.75/src/search.c Tue Jan 9 21:14:29 1996
@@ -964,7 +964,7 @@
epsquare = -1;
TOsquare = -1;
g->Game50 = Game50;
- g->gmove = -1;
+ g->gmove = 0;
g->flags = 0;
g->piece = 0;
g->color = neutral;
Had you already applied this patch, and still had trouble? The crashes I
had (when gnuchess tried to think for itself) disappeared with this.
Hope this helps,
Nikhil.
Technical Details
Message-ID:
<Pine.SOL.3.91.960224231324.14970A-100000@ursa.cus.cam.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4ghsrf$1s8@iac2.ltec.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,80f4350449a30651 X-Google-Attributes: gid10d71d,public From: Nikhil Nair <nn201@cus.cam.ac.uk> Subject: Re: gnuchess and linux (sort of a patch) Date: 1996/02/24 Message-ID: <Pine.SOL.3.91.960224231324.14970A-100000@ursa.cus.cam.ac.uk> X-Deja-AN: 140968478 references: <4ghsrf$1s8@iac2.ltec.net> content-type: TEXT/PLAIN; charset=US-ASCII organization: University of Cambridge, England mime-version: 1.0 newsgroups: gnu.chess