Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: Barbarian unleashing hanging server?
Home

[Freeciv-Dev] Re: Barbarian unleashing hanging server?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Barbarian unleashing hanging server?
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Tue, 11 Jan 2000 13:10:25 -0500

At 2000/01/10 14:16 , Falk Hueffner wrote:
>I've had the server hang after entering a hut in the loop on line 265
>in barbarian.c. Either the stack was corrupted and this is wrong
>anyway (some variables have broken values, but this could be a bug of
>gdb), but it seems the problem might be that the barbarians are being
>moved out of the hut with handle_unit_move_request(), which check
>ZOCs, and just aren't allowed to leave so it loops forever. Could
>please somebody with some more knowledge on this part check that?

Yup, that's the problem.

And, well, this is an awfully klugey fix for this problem -- it does seem
to get rid of the server hang.  Perhaps someone who has more knowledge of
how movement works could supply a better solution?

Attachment: barb-serv-hang-fix-0.diff.gz
Description: Binary data

jjm

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