Computer Chess Club Archives


Search

Terms

Messages

Subject: My bug of the year...

Author: Severi Salminen

Date: 01:17:05 12/29/00


Hi!

I made a bug in my program. It was a very stupid bug which I tried to find for
at least 4-6 days. When I played games against other winboard engines my program
freezed at some point (not in every game) reporting an error in MVV/LVA sorting
algorithm. Well, apparently there was nothing wrong in there. Then after a few
days I managed to find out that something was corrupting my precompiled attack
tables for bishops - strange. Then after a few hours of debugging I managed to
isolate the problem to history heuristics table and there it was (at the
beginning of my source file):

int History[MAX_PLY][MAX_PLY];

Did you see that: MAX_PLY!! Of course it should have been [64][64]. MAX_PLY was
set to 60 so it crashed not too often. Boy, I was happy to find that one. Now it
is working smooth and fine!

You learn by mistakes.

Severi



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.