[Computer-go] Gnugo built by Visual Studio problem

Hiroshi Yamashita yss at bd.mbn.or.jp
Thu Nov 11 12:58:30 PST 2010


I run Gnugo-3.7.10-a1 on cgos 19x19, this gnugo is built by VC++6.0.
And this gnugo crushes in rare cases, maybe once in 3000 games.

I found a gnugo problem.

gnugo3.7.10\engine\reading.c
line :2487

#define MAX_LIBERTIES 8

superstring_moves(int str, struct reading_moves *moves, int liberty_cap, int does_attack)
{
  int ss_liberties;
  int ss_libs[MAX_LIBERTIES + 4];

  find_superstring_liberties(str, &ss_liberties, ss_libs, liberty_cap);
  ...

'ss_liberties' is from 12 to 14 sometimes.
I changed from ss_libs[MAX_LIBERTIES + 4] to ss_libs[MAX_LIBERTIES + 40].

gnugo 3.8 built by VC 2008 also crushes.
gnugo 3.7.10 that built by gcc 4.1.2 on Linux, and gnugo 3.7.12 built
 by gcc 3.4.4 on Cygwin don't crush.

These 5 sgf files make same problem.
http://yss-aya.com/gnugo3710_err_sgf.zip

/gnugo-3.8/interface$ ./gnugo -l c14 at 0041.sgf
Err! ss_liberties=14,str=201
black (X) move E1

Regards,
Hiroshi Yamashita




More information about the Computer-go mailing list