[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] gnubg overwriting memory
From: |
Jim Segrave |
Subject: |
Re: [Bug-gnubg] gnubg overwriting memory |
Date: |
Wed, 5 Feb 2003 15:05:50 +0100 |
User-agent: |
Mutt/1.4i |
On Tue 04 Feb 2003 (21:52 -0500), Paul Selick wrote:
> 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
This problem was fixed around the first week of December.
--
Jim Segrave address@hidden