gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Current CVS VC build crashes


From: Daniel Bump
Subject: Re: [gnugo-devel] Current CVS VC build crashes
Date: Sat, 23 Feb 2002 22:24:25 -0800

> OK, it started crashing again, and in trying to debug it, I inserted
> the following test code, which, I think isolates a problem.  I'll
> leave it to someone else to fix.

You can get a crash by adding trevor's patch and loading strategy1.tst.

The function owl_substantial() tries to determine if
capturing a string will result in a live group. It places
stones around the string to capture it, then examines the
resulting group of the opposite color. It gets marked
as a goal, then owl_attack is called to see if it can
be killed.

The function compute_owl_escape_values() is then called and
when we hit one of the stones that has been played to
capture the worm being tested, confusion results, because
this stone does not correspond to a dragon. (The dragons
were created with stackp == 0, before these stones were
placed on the board.)

It seems to me that stones of the goal should be
omitted in the loop in compute_owl_escape_values, but
short of making such a change, the following patch 
should fix the problem.

If no problems show up I'll release 3.1.26 in the
morning.

Dan

@@ -4430,7 +4432,7 @@
   for (m = 0; m < board_size; m++) {
     for (n = 0; n < board_size; n++) {
       pos = POS(m, n);
-      if (board[pos] == owl->color) {
+      if (dragon[pos].color == owl->color) {
       if (dragon[pos].status == ALIVE)
         owl->escape_values[pos] = 6;
         else if (dragon[pos].status == UNKNOWN






reply via email to

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