[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] --score estimate crashes
From: |
bump |
Subject: |
Re: [gnugo-devel] --score estimate crashes |
Date: |
Wed, 17 Apr 2002 21:10:05 -0700 |
Arend wrote:
> I tried to reproduce the misscored game Dan had reported (in an e-mail with
> subject "500 games") and got a crash running
> gnugo --score estimate -l misscored.sgf.
>
> The crash report is below. I got an identical crash for every other sgf-file
> I've tried to load with --score estimate.
We need to add a call to reset_engine() before the examine_position()
in load_and_score_sgf_file.
If you run 'gnugo --score aftermath -l misscored.sgf' the function
writesgf is inappropriately called at line 274 of play_solo.c.
Dan
Index: interface/play_solo.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/play_solo.c,v
retrieving revision 1.12
diff -u -r1.12 play_solo.c
--- interface/play_solo.c 11 Apr 2002 19:52:05 -0000 1.12
+++ interface/play_solo.c 18 Apr 2002 04:02:51 -0000
@@ -271,13 +271,15 @@
if (!strcmp(scoringmode, "aftermath")) {
- writesgf(score_tree.root, gameinfo->outfilename);
+ if (gameinfo->outfile)
+ writesgf(score_tree.root, gameinfo->outfilename);
return;
}
/* Before we call estimate_score() we must make sure that the dragon
* status is computed. Therefore the call to examine_position().
*/
+ reset_engine();
examine_position(next, EXAMINE_ALL);
score = estimate_score(NULL, NULL);