[Top][All Lists]

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

Re: [Bug-gnubg] BUG: Crash when reviewing sgf file

From: Øystein Johansen
Subject: Re: [Bug-gnubg] BUG: Crash when reviewing sgf file
Date: Wed, 06 Oct 2004 14:44:20 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707

Hash: SHA1

Jon Kinsey wrote:

| Øystein Johansen wrote:
|> BTW Jon? Have you ever experienced bug #9586?
|> http://savannah.gnu.org/bugs/?func=detailitem&item_id=9586
|> I really scratch my head on that one, and when I run it through the
|> debugger, I can't recreate the bug.
| I've not been able to recreate this bug, can you get it to go wrong
| outside the debugger?

The problem is that this bug appears some times and some times not. It
happes when a player dance from the bar, but not everytime a player
dances. The assert error comes from line 1793 in play.c. It says


in the beginning of NextTurn()

The funny thing is that a message window pop up first and says:

player cannot move
player cannot move

(Look at the screenshots in the bugtracker.)

The only function I can imagine creates this message is ShowAutoMove(),
also located in play.c.

It also looks like a new game is started in the game record list, if it
is open.

What I'm trying to find, is the reason ShowAutoMove is called, which
call it is, and what happens from that point on untill NextTurn() is

There is a call to ShowAutoMove() in line 1440. This call is in
ComputerTurn(), so I don't believe it's this call.

There is also a call to ShowAutoMove() in line 1782. This is in
TryBearoff(), so I don't think it's this call either.

Now what about the call to ShowAutoMove() in line 3072? This is in a
function called CommandMove(). This can be it!

Yes! Now I see. I don't remember why, but last time I looked at the bug,
I concluded that this bug happens when ml.cMoves = -1. Can that be
right? Can it be appearing when....

if (!*sz ) line 3006 is true _and_ GenerateMoves return a ml.cMoves that
is -1?


If so, What happens to fComputing until NextTurn is called?

- -Øystein

Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


reply via email to

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