Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Server loop (PR#1001)
Home

[Freeciv-Dev] Server loop (PR#1001)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Server loop (PR#1001)
From: Roman Fiedler <halfdog@xxxxxx>
Date: Wed, 10 Oct 2001 02:49:57 -0700 (PDT)

I've discovered a situation that causes the server to loop. I hope you can
reproduce the bug with the test.civ.gz saved game. The bug occurs only in a
very strange situation so that a bugfix for exactly that kind of bug has a low
priority, but perhaps will this bug affact "normal" games too. This is the
reason for this bugreport.




I've installed freeciv version 1.11.4. In one game the server got
into an unbreakable loop at end of turn, so I used kill -SEGV to
get the core. The core contained a stacktrace:

(gdb) bt
#0  0x808cf05 in map_get_tile ()
#1  0x807ddf2 in update_unit_activity ()
#2  0x807d230 in update_unit_activities ()
#3  0x8065b2c in update_player_activities ()
#4  0x8053d0a in end_turn ()
#5  0x8053132 in main ()
#6  0x400bdbaf in ?? ()


Also the backtrace contains no line numbers, a look at the source
tree showed that the problem occurs when transforming swamp to ocean.
With this knowlege I created a demo map, which reproduced the bug.

I think the problem is in the list_iterator, which loops across
all units, but I couldn't locate the bug.



Questions?

Is anyone interrested in this bug (it seems to occur only when
transforming arctic land at border of the map)



Is there documentation available how the server basics work
(like the list iterator, etc...) so that I could try fix it
myself?


Regards,
  halfdog@xxxxxx



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Attachment: test.civ.gz
Description: application/gzip-compressed


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