From MAILER-DAEMON Tue Jul 05 09:43:51 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qe5uo-0007UI-JK for mharc-gnugo-devel@gnu.org; Tue, 05 Jul 2011 09:43:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhBC-0005Cw-0c for gnugo-devel@gnu.org; Mon, 04 Jul 2011 07:19:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdhB9-0002rr-OA for gnugo-devel@gnu.org; Mon, 04 Jul 2011 07:19:05 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:36336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhB9-0002rg-CP for gnugo-devel@gnu.org; Mon, 04 Jul 2011 07:19:03 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38253) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QdhB8-0002qI-8O for gnugo@gnu.org; Mon, 04 Jul 2011 07:19:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdhB6-0002rD-Ct for gnugo@gnu.org; Mon, 04 Jul 2011 07:19:01 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:59982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdhB5-0002qj-PG for gnugo@gnu.org; Mon, 04 Jul 2011 07:19:00 -0400 Received: by ewy9 with SMTP id 9so1920653ewy.0 for ; Mon, 04 Jul 2011 04:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=xYVrGUWzd2g8IcKwtfHaWoajnWC44q1liugYHyLzFn0=; b=ZoauYyEiu1KQeSu1T0WD+jACfB3UA9hl5GSM7drmzuJsvBlDZdMMTbYn4U2IQiqTvR ArJpMmNQ8gcCxIVZ7dQRt1xtlOsk0tn0cqMwUMGSwCkjLK+9RrCioiplE179+Dhj+D/l BXGJVesVXf5wW70Km34bYcZmji11fU6MvqBc4= Received: by 10.213.106.20 with SMTP id v20mr1798272ebo.121.1309778338357; Mon, 04 Jul 2011 04:18:58 -0700 (PDT) Received: from [137.120.214.40] ([137.120.214.40]) by mx.google.com with ESMTPS id z14sm4531787eef.13.2011.07.04.04.18.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 04:18:57 -0700 (PDT) Message-ID: <4E11A1A5.9010403@gmail.com> Date: Mon, 04 Jul 2011 13:19:01 +0200 From: Hendrik Baier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: gnugo@gnu.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-Mailman-Approved-At: Tue, 05 Jul 2011 09:43:48 -0400 Subject: [gnugo-devel] bug report X-BeenThere: gnugo-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: GNU Go development List-Id: GNU Go development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 11:19:10 -0000 ***assertion failure: board.c:1173 - board[pos] == EMPTY near C2*** (variation 21145) A B C D E F G H J K L M N 13 . O O . . . . . . . . . . 13 12 X X . O . O . . . O X . . 12 11 . X X . . . . . . . X O . 11 10 X O . + O . + O . + X X . 10 9 X O . X . . . . . . . . . 9 8 . X X . . . O . . . . . . 8 7 . O O + . O + . . + X . . 7 6 . . . O . O X . . X . . . 6 5 . . . . O . O . . O X . . 5 WHITE (O) has captured 2 stones 4 . O O X O . O X . + . . . 4 BLACK (X) has captured 2 stones 3 O X X . X O X . X X . . . 3 2 O X O X X O . X . . . . . 2 1 . X O . O . . . . . . . . 1 A B C D E F G H J K L M N (;GM[1]FF[4]SZ[13]KM[7.5]HA[0]GN[GNU Go 3.8 stepped on a bug] ;B[kd];W[hd];B[kg];W[ji];B[jk];W[dh];B[ki];W[fb];B[cf];W[bg];B[bf];W[fk] ;B[cc];W[jb];B[hl];W[be];B[ae];W[bd];B[de];W[bj];B[bc];W[gf];B[jh];W[db] ;B[hj];W[ba];B[ad];W[cg];B[fj];W[fg];B[bb];W[ca];B[ab];W[ed];B[ek];W[ej] ;B[el];W[lc];B[ld];W[gj];B[fi];W[gi];B[gk];W[fl];B[gh];W[dk];B[dl];W[cl] ;B[dj];W[ei];B[ck];W[fh];B[bl];W[cj];B[kc];W[cm];B[bk];W[em];B[bm];W[hk] ;B[ik];W[ak];B[kb];W[al] ) gnugo 3.8 (seed 1309774312): You stepped on a bug. Please mail this message, including the debug output above, to gnugo@gnu.org From MAILER-DAEMON Tue Jul 05 09:43:51 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qe5up-0007UY-1B for mharc-gnugo-devel@gnu.org; Tue, 05 Jul 2011 09:43:51 -0400 Received: from eggs.gnu.org ([140.186.70.92]:36482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdk3d-0006Mz-HV for gnugo-devel@gnu.org; Mon, 04 Jul 2011 10:23:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdk3b-0006HJ-OZ for gnugo-devel@gnu.org; Mon, 04 Jul 2011 10:23:29 -0400 Received: from fencepost.gnu.org ([140.186.70.10]:36788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdk3b-0006HF-7O for gnugo-devel@gnu.org; Mon, 04 Jul 2011 10:23:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52975) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Qdk3b-0001jr-2b for gnugo@gnu.org; Mon, 04 Jul 2011 10:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qdk3Z-0006Gy-1K for gnugo@gnu.org; Mon, 04 Jul 2011 10:23:26 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:32840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qdk3Y-0006Gb-Aw for gnugo@gnu.org; Mon, 04 Jul 2011 10:23:24 -0400 Received: by pzk4 with SMTP id 4so1663027pzk.0 for ; Mon, 04 Jul 2011 07:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=9oiQ18ijRiZ2jNwOl1P05r00jslxv7AY6FGEpXlLYFs=; b=DTMji75Tw4uU25poDouVULLzjeWdP4xDeF2XqD//R+aoWJWXvkohTud8RiODPYiKST 7N1rcpLFDBbVxLkpnl8IEkPsdvNUchOO10WjNIN0aJoK81SzjFCUfmORfVGnAth87B// 1lcVDvqvRkQCzsSEFb0PtriLQmb3XayqudKm0= MIME-Version: 1.0 Received: by 10.68.54.234 with SMTP id m10mr7642395pbp.416.1309789402131; Mon, 04 Jul 2011 07:23:22 -0700 (PDT) Received: by 10.68.51.166 with HTTP; Mon, 4 Jul 2011 07:23:21 -0700 (PDT) Date: Mon, 4 Jul 2011 16:23:21 +0200 Message-ID: From: Francois van Niekerk To: gnugo Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-Mailman-Approved-At: Tue, 05 Jul 2011 09:43:48 -0400 Subject: [gnugo-devel] Bug Report X-BeenThere: gnugo-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: GNU Go development List-Id: GNU Go development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 14:23:31 -0000 Hi I was testing my program against GnuGo, and I ran into the following bug: ***assertion failure: filllib.c:397 - acode != 0 && apos != 0 near PASS*** B:C9 (variation 8822) A B C D E F G H J 9 . X X . O O O X X 9 8 X O . . . O X X . 8 7 X O O . . O X X X 7 6 . X O . O O X . X 6 5 X X O O + . O X X 5 4 X X O O O O O O O 4 3 . . X X O X O X O 3 2 X X X O X X X X X 2 WHITE (O) has captured 3 stones 1 . . . O . . O . . 1 BLACK (X) has captured 7 stones A B C D E F G H J (;GM[1]FF[4]SZ[9]KM[7.5]HA[0]GN[GNU Go 3.8 stepped on a bug] ;B[ee];W[gf];B[cg];W[df];B[dg];W[ef];B[fh];W[ed];B[fe];W[de];B[gd];W[ff] ;B[be];W[fd];B[gc];W[fb];B[gb];W[ge];B[he];W[hf];B[id];W[fc];B[hc];W[ga] ;B[ha];W[ib];B[ic];W[if];B[ie];W[cd];B[bd];W[bc];B[fa];W[ea];B[ac];W[bb] ;B[ab];W[ad];B[ae];W[cc];B[hh];W[eg];B[eh];W[cf];B[bf];W[ga];B[hg];W[ig] ;B[ih];W[gg];B[gh];W[fa];B[ba];W[bg];B[bh];W[ce];B[fg];W[ag];B[ah];W[hb] ;B[ia];W[ib];B[hb];W[dh];B[ch];W[di];B[af];W[gi] ) gnugo 3.8 (seed 1309755934): You stepped on a bug. Please mail this message, including the debug output above, to gnugo@gnu.org Please let me know if you require any more data to reproduce the bug, although the above data dump looks pretty thorough. -- Francois van Niekerk Email: flash.slash@gmail.com | Twitter: @francoisvn Cell: +2784 0350 214 | Website: http://leafcloud.com From MAILER-DAEMON Thu Jul 07 17:09:46 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QevpS-00033x-4F for mharc-gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:09:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QevpP-00033B-JK for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QevpN-0001xf-G7 for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:09:43 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:54526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QevpN-0001xU-5R for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:09:41 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 731B34000D for ; Thu, 7 Jul 2011 23:09:40 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 68F3E4001F; Thu, 7 Jul 2011 23:09:40 +0200 (CEST) Received: from [81.170.148.13] (h-148-13.a163.priv.bahnhof.se [81.170.148.13]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id D148E4000D; Thu, 7 Jul 2011 23:09:38 +0200 (CEST) Message-ID: <4E162092.6050708@lysator.liu.se> Date: Thu, 07 Jul 2011 23:09:38 +0200 From: =?ISO-8859-1?Q?Gunnar_Farneb=E4ck?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: GNU Go development , Francois van Niekerk References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 130.236.254.3 Subject: Re: [gnugo-devel] Bug Report X-BeenThere: gnugo-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: GNU Go development List-Id: GNU Go development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 21:09:44 -0000 On 07/04/11 16:23, Francois van Niekerk wrote: > Hi > > I was testing my program against GnuGo, and I ran into the following bug: > > ***assertion failure: > filllib.c:397 - acode != 0&& apos != 0 near PASS*** > > [...] > > Please let me know if you require any more data to reproduce the bug, > although the above data dump looks pretty thorough. Thanks for the report. Unfortunately I can't reproduce the crash from the dumped information. It would be helpful to know your platform, unusual build options (if any), command line options and circumstances leading up to the assertion failure. If you know a way to reproduce the crash that would of course be ideal. /Gunnar From MAILER-DAEMON Thu Jul 07 17:21:21 2011 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qew0f-0006x0-3U for mharc-gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:21:21 -0400 Received: from eggs.gnu.org ([140.186.70.92]:50986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qew0b-0006vc-5K for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:21:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qew0V-0004Vf-Ki for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:21:16 -0400 Received: from mail.lysator.liu.se ([130.236.254.3]:45155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qew0V-0004VG-6K for gnugo-devel@gnu.org; Thu, 07 Jul 2011 17:21:11 -0400 Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id BD3DB40013 for ; Thu, 7 Jul 2011 22:55:00 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id B14F040006; Thu, 7 Jul 2011 22:55:00 +0200 (CEST) Received: from [81.170.148.13] (h-148-13.a163.priv.bahnhof.se [81.170.148.13]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 6FD8D4000D; Thu, 7 Jul 2011 22:54:59 +0200 (CEST) Message-ID: <4E161D20.5020607@lysator.liu.se> Date: Thu, 07 Jul 2011 22:54:56 +0200 From: =?ISO-8859-1?Q?Gunnar_Farneb=E4ck?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Icedove/3.1.11 MIME-Version: 1.0 To: GNU Go development , Hendrik Baier References: <4E11A1A5.9010403@gmail.com> In-Reply-To: <4E11A1A5.9010403@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 130.236.254.3 Subject: Re: [gnugo-devel] bug report X-BeenThere: gnugo-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: GNU Go development List-Id: GNU Go development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2011 21:21:19 -0000 On 07/04/11 13:19, Hendrik Baier wrote: > ***assertion failure: > board.c:1173 - board[pos] == EMPTY near C2*** > [...] Thanks for the report. I can reproduce the crash and have made a patch to fix it, appended below. It can also be found at http://trac.gnugo.org/gnugo/ticket/229 /Gunnar diff --git a/patterns/helpers.c b/patterns/helpers.c index 9381a61..5e5a0b2 100644 --- a/patterns/helpers.c +++ b/patterns/helpers.c @@ -502,18 +502,27 @@ backfill_helper(int apos, int bpos, int cpos) int color = board[cpos]; int other = OTHER_COLOR(color); int dpos = NO_MOVE; + int move_found = 0; if (TRYMOVE(apos, color)) { if (TRYMOVE(bpos, other)) { if (attack(cpos, NULL) && find_defense(cpos, &dpos)) { - set_minimum_move_value(dpos, 0.1); - TRACE("%o...setting min move value of %1m to 0.1\n", dpos); + move_found = 1; } popgo(); } popgo(); } + /* It might happen that the tried moves changed the board + * significantly. Verify that dpos is playable also without those + * moves. + */ + if (move_found && board[dpos] == EMPTY && is_legal(dpos, color)) { + set_minimum_move_value(dpos, 0.1); + TRACE("%o...setting min move value of %1m to 0.1\n", dpos); + } + return 0; }