bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] gnubg overwriting memory


From: Paul Selick
Subject: [Bug-gnubg] gnubg overwriting memory
Date: Tue, 4 Feb 2003 21:52:15 -0500 (EST)

Hi.  Me again, but this time about overwriting memory
at line 3810 of eval.c

       memcpy(amCandidates, ml.amMoves, ml.cMoves * sizeof(move));


I've got Redhat7.2 Linux, which means  __GNUC__  defined at line 3740
so the space allocated is given by

move amCandidates[ pec->nSearchCandidates ];

but in a rollout I tried  (with  nPlies  set to 3) it could never get
through 100 games without some SEGMENTATION  FAULT, so I printed some
variables and found that at the time they were:

nSearchCandidates = 8    and   ml.Moves = 10

so that memory was getting overwritten at line 3810 causing havoc.


Note:  I haven't downloaded any later version of  gnubg  since I last
wrote in November about the sign error in the evaluation of TooGood
so my version of eval.c might not be up-to-date.
My apologies if my line numbers don't match the latest version of the
file.

Yours sincerely,
Paul Selick






reply via email to

[Prev in Thread] Current Thread [Next in Thread]