[Top][All Lists]

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

[gnugo-devel] cvs of 12-10-2004: mkpat crash for mingw version

From: a.rburgers
Subject: [gnugo-devel] cvs of 12-10-2004: mkpat crash for mingw version
Date: Tue, 12 Oct 2004 21:55:53 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804

mingw mkpat.exe crashes when generating owl_attackpat.c.
The command line is the following:

run -D -m -b -t ../../patterns/owl_attackpats.dtr owl_attackpat -i ../../patterns/owl_attackpats.db -o owl_attackpat.c

When I apply the patch at the end of this message, the following
is printed:

member_att: att is -1414812757.
Program exited with code 01

The cygwin version does not suffer from this problem.
I wonder if this might have anything to do with
the ChangeLog entry "- DFA micro optimization". Up to quite
recently it build without problems.


diff -u -r1.38 dfa.c
--- dfa.c       13 Sep 2004 09:24:13 -0000      1.38
+++ dfa.c       12 Oct 2004 19:48:46 -0000
@@ -95,6 +95,10 @@
member_att(dfa_t *pdfa, int att, int val)
  while (att != 0) {
+    if (att < 0) {
+       fprintf(stderr, "member_att: att is %d\n", att);
+       exit(EXIT_FAILURE);
+    }
    if (pdfa->indexes[att].val == val)
      return 1;

reply via email to

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