Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11824) Crashing bug
Home

[Freeciv-Dev] (PR#11824) Crashing bug

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: neil@xxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#11824) Crashing bug
From: "James Canete" <use_less@xxxxxxxxxxx>
Date: Thu, 13 Jan 2005 01:07:39 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11824 >

Well, this bug is a lot more complicated than it looks. :)

Basically, the function ai_manage_explorer() is going into an infinite
recursive loop, which eventually crashes the server.  This is caused by
the fact that the unit exploring tries to get to its exploration
destination, but its goto fails without using all its moves.  This
causes the function to try to explore again, but it runs into the same
situation again, and loops around.

I talked about it with Jason on IRC and he suggested this patch, and
also to ask Greg about it.  Greg?

-James Canete

Attachment: fixrecursiveexplorer.diff
Description: Binary data


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