gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Error report for cvs gnugo


From: Paul Pogonyshev
Subject: Re: [gnugo-devel] Error report for cvs gnugo
Date: Tue, 22 Oct 2002 23:01:42 +0300

> Playing with gnugo I encoutered the following:
> [board]

> gnugo 3.3.10 (seed 1035314730): You stepped on a bug.
> Please save this game as an sgf file and mail it to address@hidden
> If you can, please also include the debug output above this message.

i really think we should move the TRACE in abortgo() to the end of
function. people using systems with non-scrollable consoles (like
windows) surely have problems copying and even noticing that message.
the patch below places the TRACE just above the "you stepped on a bug"
message. i bet it has no impact on the regression pack ;)

Paul


Index: engine/printutils.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/printutils.c,v
retrieving revision 1.27
diff -u -r1.27 printutils.c
--- engine/printutils.c 25 Sep 2002 19:39:01 -0000      1.27
+++ engine/printutils.c 22 Oct 2002 19:53:17 -0000
@@ -238,8 +238,7 @@
 abortgo(const char *file, int line, const char *msg, int x, int y)
 {
   verbose = 4;
-  TRACE("%o\n\n***assertion failure:\n%s:%d - %s near %m***\n\n",
-       file, line, msg, x, y);
+
   dump_stack();
 
   /* Dump the stack as board images. */
@@ -248,6 +247,9 @@
     popgo();
     showboard(0);
   }
+
+  TRACE("%o\n\n***assertion failure:\n%s:%d - %s near %m***\n\n",
+       file, line, msg, x, y);
 
 #if 0
   if (sgf_root) {





reply via email to

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