Article View: gnu.chess
Article #5530A bug?
From: Rory Molinari - DAIS project
Date: Sun, 04 Jul 1993 01:54
Date: Sun, 04 Jul 1993 01:54
38 lines
1836 bytes
1836 bytes
Hi, I just downloaded gnuchess4.0 patch 62 and compiled it on a Sun 3/80 running SunOS 4.1. I got a crash (segmentation fault) while playing a game. My command line was: gnuchess 1 :20 1 :20 I then turned the book off with "book", and the following moves took place (no rude comments about my chess skills please :) I was white) : 1 d4 Nf6 2 c4 d5 3 Nc3 dc 4 e4 Be6 5 b3 >crash< and after thinking about it for about 15 seconds, gnuchess crashed out with a segmentation violation. The fault was reproducible. Using a debugger I think I have traced the problem to the file genmoves.c line 331 in which the variable TrP has taken on a value that cannot be dereferenced. Not knowing the gnuchess code at all I guess it's being stomped on by something. My Makefile options were: BOOKTYPE=small.book.data LCURSES=-lcurses -ltermcap OPT= -DCACHE -DGDX -DHASGETTIMEOFDAY -DHISTORY -DNULLMOVE \ -DOLDTIME -DQUIETBACKGROUND -DSEMIQUIETBOOKGEN #[note: the previous was not broken into two lines in the Makefile] CC= gcc -g -W $(OPT) CFLAGS= -g -O2 -funroll-loops -traditional-cpp # gnu cc 2.00 on SunOS Is this a well known bug? If so, is there a patch.
Technical Details
Message-ID:
<RBM.93Jul4015420@algol.cs.anu.edu.au>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uunet!munnari.oz.au!newshost.anu.edu.au!dubhe.anu.edu.au!dubhe!rbmShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,bd5366452ce7769f,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1993-07-03 09:45:19 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!uunet!munnari.oz.au!newshost.anu.edu.au!dubhe.anu.edu.au!dubhe!rbm From: rbm@algol.cs.anu.edu.au (Rory Molinari - DAIS project) Newsgroups: gnu.chess Subject: A bug? Date: 4 Jul 93 01:54:20 Organization: Computer Science Department, ANU, Australia Lines: 38 Distribution: world Message-ID: <RBM.93Jul4015420@algol.cs.anu.edu.au> NNTP-Posting-Host: algol.anu.edu.au