Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] (PR#6816) Re: Re: (PR#6819) server crashes when loaded tri
Home

[Freeciv-Dev] (PR#6816) Re: Re: (PR#6819) server crashes when loaded tri

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ggracian@xxxxxxx
Subject: [Freeciv-Dev] (PR#6816) Re: Re: (PR#6819) server crashes when loaded trireme is lost
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Nov 2003 12:40:09 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6816 >

Raimar Falke wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=6819 >
> 
> On Mon, Nov 10, 2003 at 07:09:54AM -0800, Genevieve Gracian wrote:
> 
>><URL: http://rt.freeciv.org/Ticket/Display.html?id=6819 >
>>
>>
>>In recent head cvs, when a loaded trireme is lost in high sea, 
>>the server crashes. It seems that it only occurs when the unit in 
>>the trireme has been built by a city (no problem with explorers of 
>>the begining even if they've been assigned to a homecity).

When I disband the tririeme, nothing unusual happens.  But when it is 
"lost at seas" I get the following valgrind error (or random memory 
corruption if valgrind isn't used).

jason

==4336== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==4336== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==4336== Using valgrind-20031012, a program supervision framework for x86-linux.
==4336== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==4336== Estimated CPU clock rate is 697 MHz
==4336== For more details, rerun with: -v
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058CD3: player_restore_units (unittools.c:419)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41583C18 is 8 bytes inside a block of size 12 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x809C0AD: genlist_unlink (genlist.c:111)
==4336==    by 0x80AE389: unit_list_unlink (speclist_c.h:60)
==4336==    by 0x809B192: game_remove_unit (game.c:157)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80588CE: player_restore_units (unittools.c:419)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41583C18 is 8 bytes inside a block of size 12 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x809C0AD: genlist_unlink (genlist.c:111)
==4336==    by 0x80AE389: unit_list_unlink (speclist_c.h:60)
==4336==    by 0x809B192: game_remove_unit (game.c:157)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80588D1: player_restore_units (unittools.c:419)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41583C10 is 0 bytes inside a block of size 12 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x809C0AD: genlist_unlink (genlist.c:111)
==4336==    by 0x80AE389: unit_list_unlink (speclist_c.h:60)
==4336==    by 0x809B192: game_remove_unit (game.c:157)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x8058DD1: unit_restore_hitpoints (unittools.c:519)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058DD5: unit_restore_hitpoints (unittools.c:519)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 1
==4336==    at 0x8058DE2: unit_restore_hitpoints (unittools.c:521)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878ABA is 118 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8098CFB: unit_on_fortress (combat.c:322)
==4336==    by 0x8058FA8: hp_gain_coord (unittools.c:580)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A54 is 16 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8098CFE: unit_on_fortress (combat.c:322)
==4336==    by 0x8058FA8: hp_gain_coord (unittools.c:580)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A50 is 12 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058FD8: hp_gain_coord (unittools.c:584)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A54 is 16 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058FDB: hp_gain_coord (unittools.c:584)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A50 is 12 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x80AEC50: is_heli_unit (unit.c:338)
==4336==    by 0x80590CE: hp_gain_coord (unittools.c:595)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80590D7: hp_gain_coord (unittools.c:598)
==4336==    by 0x8058DF0: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A98 is 84 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058DF1: unit_restore_hitpoints (unittools.c:522)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x80AEC50: is_heli_unit (unit.c:338)
==4336==    by 0x8058E17: unit_restore_hitpoints (unittools.c:528)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x8058E7C: unit_restore_hitpoints (unittools.c:536)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058E80: unit_restore_hitpoints (unittools.c:536)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x8058E93: unit_restore_hitpoints (unittools.c:537)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid write of size 4
==4336==    at 0x8058E9A: unit_restore_hitpoints (unittools.c:537)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x8058EBA: unit_restore_hitpoints (unittools.c:541)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid write of size 1
==4336==    at 0x8058EC7: unit_restore_hitpoints (unittools.c:544)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878ABA is 118 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid write of size 1
==4336==    at 0x8058ECB: unit_restore_hitpoints (unittools.c:545)
==4336==    by 0x80588E1: player_restore_units (unittools.c:422)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878ABB is 119 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80588E5: player_restore_units (unittools.c:425)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A64 is 32 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0B2C: unit_flag (unittype.c:181)
==4336==    by 0x8058964: player_restore_units (unittools.c:440)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== 
==4336== Invalid read of size 4
==4336==    at 0x80B0992: unit_type (unittype.c:96)
==4336==    by 0x80AEC30: is_air_unit (unit.c:330)
==4336==    by 0x8058A6D: player_restore_units (unittools.c:452)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336==    Address 0x41878A44 is 0 bytes inside a block of size 136 free'd
==4336==    at 0x4002990D: free (vg_replace_malloc.c:231)
==4336==    by 0x80B08BA: destroy_unit_virtual (unit.c:1500)
==4336==    by 0x809B1BD: game_remove_unit (game.c:164)
==4336==    by 0x805B2CD: server_remove_unit (unittools.c:1598)
==4336==    by 0x805B599: wipe_unit_spec_safe (unittools.c:1665)
==4336==    by 0x805B896: wipe_unit (unittools.c:1728)
==4336==    by 0x8058A00: player_restore_units (unittools.c:447)
==4336==    by 0x804D601: end_turn (srv_main.c:504)
==4336==    by 0x804EC46: main_loop (srv_main.c:1540)
==4336==    by 0x804F360: srv_loop (srv_main.c:1837)
==4336==    by 0x804EDE8: srv_main (srv_main.c:1624)
==4336==    by 0x804A1B6: main (civserver.c:154)
==4336==    by 0x402E5A46: __libc_start_main (in /lib/libc-2.3.2.so)
==4336==    by 0x8049C14: ??? (start.S:81)
==4336== discard syms in /lib/libnss_files-2.3.2.so due to munmap()
==4336== 
==4336== ERROR SUMMARY: 25 errors from 24 contexts (suppressed: 2 from 1)
==4336== malloc/free: in use at exit: 67117 bytes in 403 blocks.
==4336== malloc/free: 21260 allocs, 20857 frees, 7620908 bytes allocated.
==4336== For a detailed leak analysis,  rerun with: --leak-check=yes
==4336== For counts of detected errors, rerun with: -v

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