gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Crash: GNU Go 3.6 pre 2


From: Trevor Morris
Subject: Re: [gnugo-devel] Crash: GNU Go 3.6 pre 2
Date: Thu, 23 Sep 2004 22:38:09 -0400

Gunnar wrote:
> Trevor wrote:
> > perl regress.pl --goprog "..\\interface\\gnugo.exe --mode gtp --quiet
> > -t -w -d0x1000" --verbose 1 -a 1
> 
> This runs fine for me on Linux, at least up to trevora.tst. As a minor
> note "--quiet" is redundant nowadays.

Don't trust DRAGON2 accesses (i.e. in the code, the #if is 1, not 0 as below):
[ glad I remembered this little helper I wrote quite a while back when a very 
similar problem happened! ]


#if 0 /* Trust DRAGON2 accesses */
#define DRAGON2(pos) dragon2[dragon[pos].id]
#else
struct dragon_data2 * dragon2_func(int pos);
#define DRAGON2(pos) (*dragon2_func(pos))
#endif



Here's the new crash info, near filllib:25  

Can you reproduce it now, or shall I dig deeper?

***assertion failure:
C:\Temp\1\4\gnugo-3.6-pre2\engine\dragon.c:89 - ON_BOARD1(pos) && dragon[pos].id
 >= 0 && dragon[pos].id < number_of_dragons near H1***

 (variation 16769)
   A B C D E F G H J
 9 . X X X . . . . . 9
 8 O O X O X X X . . 8
 7 O X O O X . X . . 7
 6 . X X O X X O X . 6
 5 X X O O O X O X . 5
 4 . X X X O X O X O 4
 3 X X X O O O O O . 3
 2 X O O O . O X X O 2     WHITE (O) has captured 5 stones
 1 O O O . O O X . X 1     BLACK (X) has captured 6 stones
   A B C D E F G H J
(;GM[1]FF[4]SZ[9]KM[0.5]GN[GNU Go 3.6-pre2 stepped on a bug]
AB[gc][cg]
;W[gf];B[eg];W[dc];B[gh];W[dg];B[df];W[fg];B[dh];W[fh];B[he];W[ge];B[hh]
;W[ee];B[hf];W[fc];B[fb];W[gd];B[gb];W[de];B[hd];W[ce];B[ca];W[bh];B[eh]
;W[ei];B[bg];W[ci];B[di];W[fi];B[bc];W[bf];B[ag];W[ef];B[cd];W[cc];B[bd]
;W[bb];B[cf];W[ch];B[be];W[dg];B[cb];W[ab];B[eb];W[db];B[da];W[af];B[ae]
;W[ac];B[ec];W[dd];B[ah];W[af];B[ba];W[bi];B[fd];W[ai];B[bf];W[dh];B[fe]
;W[gg];B[ff];W[eg];B[ed];W[hg];B[ig];W[ih];B[ii];W[if];B[gi];W[ih]
)
gnugo 3.6-pre2 (seed 0): You stepped on a bug.
Please mail this message, including the debug output above, to address@hidden




reply via email to

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