Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2525) Server memory leaks
Home

[Freeciv-Dev] Re: (PR#2525) Server memory leaks

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] Re: (PR#2525) Server memory leaks
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Mon, 9 Dec 2002 11:08:10 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, Dec 09, 2002 at 10:04:56AM -0800, Mike Kaufman via RT wrote:
> On Mon, Dec 09, 2002 at 09:28:06AM -0800, Raimar Falke via RT wrote:
> > On Mon, Dec 09, 2002 at 08:45:48AM -0800, Mike Kaufman via RT wrote:
> > > > The difference is very small (200 bytes) but the absulute number is
> > > > quite large (600k).
> > > 
> > > how are you measuring the memory leak?
> > 
> > Valgrind (first hit in google).
> 
> then the change that made it was recent, because, when I first made the
> memleak patch, valgrind wasn't returning any leaks that could be fixed.
> (readline has an issue or two if I remember...) At least that's what I
> recall.
> 
> Do you have the same problem on the stable branch? what about prior to your
> attribute_v2 fix (I don't know if that required allocation of any memory...)

Attached is the same run with 1.14.0-beta2. 

Summary: 1 access to uninitialized memory, 210k lost.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Your mail could not be delivered to the following Address:
  VTCMC.VTLPR@xxxxxxxxxxxxx        ** Unassigned error message **"

==25058== valgrind-1.0.4, a memory error detector for x86 GNU/Linux.
==25058== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==25058== Startup, with flags:
==25058==    --suppressions=/usr/local/lib/valgrind/default.supp
==25058==    -v
==25058==    --logfile-fd=9
==25058==    --leak-check=yes
==25058==    --show-reachable=yes
==25058==    --leak-resolution=med
==25058== Reading suppressions file: /usr/local/lib/valgrind/default.supp
==25058== Reading syms from 
/mnt/hdb7/hawk/freeciv/releases/freeciv-1.14.0-beta2/server/civserver
==25058== Reading syms from /lib/ld-2.2.5.so
==25058==    object doesn't have any debug info
==25058== Reading syms from /usr/local/lib/valgrind/valgrind.so
==25058== Reading syms from /usr/lib/libreadline.so.4.2
==25058==    object doesn't have any debug info
==25058== Reading syms from /usr/lib/libncurses.so.5.2
==25058==    object doesn't have any debug info
==25058== Reading syms from /lib/libm-2.2.5.so
==25058==    object doesn't have any debug info
==25058== Reading syms from /usr/lib/libz.so.1.1.3
==25058==    object doesn't have any debug info
==25058== Reading syms from /lib/libc-2.2.5.so
==25058==    object doesn't have any debug info
==25058== Reading syms from /usr/local/lib/libgcc_s.so.1
==25058== Estimated CPU clock rate is 399 MHz
==25058== 
==25058== Reading syms from /usr/lib/gconv/ISO8859-15.so
==25058==    object doesn't have any debug info
==25058== Reading syms from /usr/lib/gconv/ISO8859-1.so
==25058==    object doesn't have any debug info
==25058== Conditional jump or move depends on uninitialised value(s)
==25058==    at 0x80AA70A: contemplate_new_city (settlers.c:1585)
==25058==    by 0x80DDE05: ai_manage_cities (aicity.c:502)
==25058==    by 0x80E0DEB: ai_do_last_activities (aihand.c:373)
==25058==    by 0x804ED9D: end_turn (srv_main.c:422)
==25058== 
==25058== Invalid read of size 4
==25058==    at 0x403B0A56: trecurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B09B1: __twalk (in /lib/libc-2.2.5.so)
==25058==    by 0x402F5914: __gconv_release_shlib (in /lib/libc-2.2.5.so)
==25058==    by 0x402EF2CC: __gconv_close_transform (in /lib/libc-2.2.5.so)
==25058==    Address 0x40C93BFC is 4 bytes inside a block of size 16 free'd
==25058==    at 0x4003BC72: free (vg_clientfuncs.c:180)
==25058==    by 0x403B0B02: tdestroy_recurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B0A21: __tdestroy (in /lib/libc-2.2.5.so)
==25058==    by 0x402F59B2: free_mem (in /lib/libc-2.2.5.so)
==25058== 
==25058== Invalid read of size 4
==25058==    at 0x403B0AB0: trecurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B09B1: __twalk (in /lib/libc-2.2.5.so)
==25058==    by 0x402F5914: __gconv_release_shlib (in /lib/libc-2.2.5.so)
==25058==    by 0x402EF2CC: __gconv_close_transform (in /lib/libc-2.2.5.so)
==25058==    Address 0x40C93C00 is 8 bytes inside a block of size 16 free'd
==25058==    at 0x4003BC72: free (vg_clientfuncs.c:180)
==25058==    by 0x403B0B02: tdestroy_recurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B0A21: __tdestroy (in /lib/libc-2.2.5.so)
==25058==    by 0x402F59B2: free_mem (in /lib/libc-2.2.5.so)
==25058== 
==25058== ERROR SUMMARY: 8 errors from 3 contexts (suppressed: 26 from 4)
==25058== 
==25058== 2 errors in context 1 of 3:
==25058== Invalid read of size 4
==25058==    at 0x403B0AB0: trecurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B09B1: __twalk (in /lib/libc-2.2.5.so)
==25058==    by 0x402F5914: __gconv_release_shlib (in /lib/libc-2.2.5.so)
==25058==    by 0x402EF2CC: __gconv_close_transform (in /lib/libc-2.2.5.so)
==25058==    Address 0x40C93C00 is 8 bytes inside a block of size 16 free'd
==25058==    at 0x4003BC72: free (vg_clientfuncs.c:180)
==25058==    by 0x403B0B02: tdestroy_recurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B0A21: __tdestroy (in /lib/libc-2.2.5.so)
==25058==    by 0x402F59B2: free_mem (in /lib/libc-2.2.5.so)
==25058== 
==25058== 2 errors in context 2 of 3:
==25058== Invalid read of size 4
==25058==    at 0x403B0A56: trecurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B09B1: __twalk (in /lib/libc-2.2.5.so)
==25058==    by 0x402F5914: __gconv_release_shlib (in /lib/libc-2.2.5.so)
==25058==    by 0x402EF2CC: __gconv_close_transform (in /lib/libc-2.2.5.so)
==25058==    Address 0x40C93BFC is 4 bytes inside a block of size 16 free'd
==25058==    at 0x4003BC72: free (vg_clientfuncs.c:180)
==25058==    by 0x403B0B02: tdestroy_recurse (in /lib/libc-2.2.5.so)
==25058==    by 0x403B0A21: __tdestroy (in /lib/libc-2.2.5.so)
==25058==    by 0x402F59B2: free_mem (in /lib/libc-2.2.5.so)
==25058== 
==25058== 4 errors in context 3 of 3:
==25058== Conditional jump or move depends on uninitialised value(s)
==25058==    at 0x80AA70A: contemplate_new_city (settlers.c:1585)
==25058==    by 0x80DDE05: ai_manage_cities (aicity.c:502)
==25058==    by 0x80E0DEB: ai_do_last_activities (aihand.c:373)
==25058==    by 0x804ED9D: end_turn (srv_main.c:422)
--25058-- 
--25058-- supp:    6 _dl_relocate_object*/dl_open_worker/_dl_catch_error*(Cond)
--25058-- supp:    9 do_release_shlib/__twalk(Addr4)
--25058-- supp:    6 __twalk/*(Addr4)
--25058-- supp:    5 do_release_shlib/trecurse(Addr4)
==25058== 
==25058== IN SUMMARY: 8 errors from 3 contexts (suppressed: 26 from 4)
==25058== 
==25058== malloc/free: in use at exit: 209250 bytes in 889 blocks.
==25058== malloc/free: 43597 allocs, 42708 frees, 10718665 bytes allocated.
==25058== 
==25058== searching for pointers to 889 not-freed blocks.
==25058== checked 6032728 bytes.
==25058== 
==25058== definitely lost: 92 bytes in 5 blocks.
==25058== possibly lost:   0 bytes in 0 blocks.
==25058== still reachable: 209158 bytes in 884 blocks.
==25058== 
==25058== 2 bytes in 1 blocks are still reachable in loss record 1 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B229: real_mystrdup (mem.c:122)
==25058==    by 0x804CD6E: init_nls (shared.c:1093)
==25058== 
==25058== 3 bytes in 1 blocks are still reachable in loss record 2 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x402599C3: expand_prompt (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40259BA7: rl_expand_prompt (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 3 bytes in 1 blocks are still reachable in loss record 3 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4024D51A: rl_set_prompt (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025E6BF: rl_callback_handler_install (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 3 bytes in 1 blocks are still reachable in loss record 4 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804CD25: init_nls (shared.c:1089)
==25058==    by 0x804E519: srv_init (srv_main.c:161)
==25058== 
==25058== 6 bytes in 1 blocks are still reachable in loss record 5 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4034FC5F: __strdup (in /lib/libc-2.2.5.so)
==25058==    by 0x40292837: set_attribute_9 (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40292A68: tgetent (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 6 bytes in 1 blocks are still reachable in loss record 6 of 63
==25058==    at 0x4003BFA3: realloc (vg_clientfuncs.c:270)
==25058==    by 0x40290DDC: _nc_doalloc (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x4029339E: really_get_space (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40293C11: tparm (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 11 bytes in 1 blocks are still reachable in loss record 7 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B229: real_mystrdup (mem.c:122)
==25058==    by 0x804C0AD: user_home_dir (shared.c:665)
==25058== 
==25058== 13 bytes in 1 blocks are still reachable in loss record 8 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40256E34: _rl_read_init_file (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40256D95: rl_read_init_file (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 16 bytes in 2 blocks are still reachable in loss record 9 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025F8A5: add_history (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x80A366D: handle_readline_input_callback (sernet.c:155)
==25058== 
==25058== 19 bytes in 1 blocks are definitely lost in loss record 10 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4026260E: sh_set_lines_and_columns (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4025E933: _rl_get_screen_size (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 20 bytes in 1 blocks are still reachable in loss record 11 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80B3AEA: build_landarea_map_new (game.c:196)
==25058==    by 0x80B4363: build_landarea_map (game.c:359)
==25058== 
==25058== 20 bytes in 2 blocks are still reachable in loss record 12 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025F8B9: add_history (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x80A366D: handle_readline_input_callback (sernet.c:155)
==25058== 
==25058== 20 bytes in 2 blocks are definitely lost in loss record 13 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4024D798: readline_internal_teardown (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4025E73E: rl_callback_read_char (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 20 bytes in 1 blocks are still reachable in loss record 14 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40256FB6: parser_if (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40257371: handle_parser_directive (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 20 bytes in 1 blocks are still reachable in loss record 15 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80B3B3B: build_landarea_map_new (game.c:200)
==25058==    by 0x80B4363: build_landarea_map (game.c:359)
==25058== 
==25058== 20 bytes in 1 blocks are still reachable in loss record 16 of 63
==25058==    at 0x4003BFA3: realloc (vg_clientfuncs.c:270)
==25058==    by 0x804B174: fc_real_realloc (mem.c:87)
==25058==    by 0x804C582: get_data_dirs (shared.c:819)
==25058==    by 0x804C96B: datafilename (shared.c:941)
==25058== 
==25058== 21 bytes in 1 blocks are definitely lost in loss record 17 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40262635: sh_set_lines_and_columns (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4025E933: _rl_get_screen_size (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 23 bytes in 1 blocks are still reachable in loss record 18 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x40290FD4: _nc_home_terminfo (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40298129: _nc_read_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40292381: grab_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 28 bytes in 1 blocks are still reachable in loss record 19 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x402978A0: read_termtype (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297F5D: _nc_read_file_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297FDE: _nc_read_tic_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 30 bytes in 1 blocks are still reachable in loss record 20 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80A3BBF: sniff_packets (sernet.c:328)
==25058==    by 0x8051D90: srv_main (srv_main.c:1859)
==25058== 
==25058== 32 bytes in 1 blocks are definitely lost in loss record 21 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80CE822: renew_timer (timing.c:183)
==25058==    by 0x80CE865: renew_timer_start (timing.c:200)
==25058== 
==25058== 32 bytes in 1 blocks are still reachable in loss record 22 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80CE822: renew_timer (timing.c:183)
==25058==    by 0x80CE7CE: new_timer (timing.c:154)
==25058== 
==25058== 44 bytes in 1 blocks are still reachable in loss record 23 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x4029790C: read_termtype (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297F5D: _nc_read_file_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297FDE: _nc_read_tic_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 48 bytes in 1 blocks are still reachable in loss record 24 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B110: fc_real_realloc (mem.c:79)
==25058==    by 0x80B672C: genlist_sort (genlist.c:243)
==25058== 
==25058== 51 bytes in 1 blocks are still reachable in loss record 25 of 63
==25058==    at 0x4003BFA3: realloc (vg_clientfuncs.c:270)
==25058==    by 0x804B174: fc_real_realloc (mem.c:87)
==25058==    by 0x804D6AC: astr_minsize (astring.c:78)
==25058==    by 0x804CADA: datafilename (shared.c:968)
==25058== 
==25058== 52 bytes in 4 blocks are still reachable in loss record 26 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B229: real_mystrdup (mem.c:122)
==25058==    by 0x804C4EE: get_data_dirs (shared.c:807)
==25058== 
==25058== 56 bytes in 2 blocks are still reachable in loss record 27 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x400098AA: _dl_map_object_deps_internal (in /lib/ld-2.2.5.so)
==25058==    by 0x403DA84E: dl_open_worker (in /lib/libc-2.2.5.so)
==25058==    by 0x4000A931: _dl_catch_error_internal (in /lib/ld-2.2.5.so)
==25058== 
==25058== 57 bytes in 2 blocks are still reachable in loss record 28 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x40008191: _dl_new_object (in /lib/ld-2.2.5.so)
==25058==    by 0x40004152: _dl_map_object_from_fd (in /lib/ld-2.2.5.so)
==25058==    by 0x400053FB: _dl_map_object_internal (in /lib/ld-2.2.5.so)
==25058== 
==25058== 57 bytes in 2 blocks are still reachable in loss record 29 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x400054E1: _dl_map_object_internal (in /lib/ld-2.2.5.so)
==25058==    by 0x403DA7AC: dl_open_worker (in /lib/libc-2.2.5.so)
==25058==    by 0x4000A931: _dl_catch_error_internal (in /lib/ld-2.2.5.so)
==25058== 
==25058== 78 bytes in 1 blocks are still reachable in loss record 30 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x40297983: read_termtype (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297F5D: _nc_read_file_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297FDE: _nc_read_tic_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 84 bytes in 1 blocks are still reachable in loss record 31 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x40290E09: _nc_doalloc (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40293463: tparm (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40292821: set_attribute_9 (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 96 bytes in 3 blocks are still reachable in loss record 32 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80CE822: renew_timer (timing.c:183)
==25058==    by 0x80CE865: renew_timer_start (timing.c:200)
==25058== 
==25058== 100 bytes in 1 blocks are still reachable in loss record 33 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B110: fc_real_realloc (mem.c:79)
==25058==    by 0x80EAECE: ai_manage_units (aiunit.c:2425)
==25058== 
==25058== 160 bytes in 2 blocks are still reachable in loss record 34 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x4000BACA: _dl_check_map_versions_internal (in 
/lib/ld-2.2.5.so)
==25058==    by 0x403DAB31: dl_open_worker (in /lib/libc-2.2.5.so)
==25058==    by 0x4000A931: _dl_catch_error_internal (in /lib/ld-2.2.5.so)
==25058== 
==25058== 168 bytes in 1 blocks are still reachable in loss record 35 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x402924C0: setupterm (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40292965: tgetent (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x4025EBE2: _rl_init_terminal_io (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 224 bytes in 18 blocks are still reachable in loss record 36 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80D2B32: precalc_one (unittype.c:489)
==25058==    by 0x80D2C8C: role_unit_precalcs (unittype.c:521)
==25058== 
==25058== 244 bytes in 1 blocks are still reachable in loss record 37 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B1D8: fc_real_calloc (mem.c:110)
==25058==    by 0x8051DE1: srv_main (srv_main.c:1868)
==25058== 
==25058== 244 bytes in 1 blocks are still reachable in loss record 38 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x804B1D8: fc_real_calloc (mem.c:110)
==25058==    by 0x8051E13: srv_main (srv_main.c:1869)
==25058== 
==25058== 256 bytes in 1 blocks are still reachable in loss record 39 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4024DE25: readline_initialize_everything (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4024DD48: rl_initialize (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 260 bytes in 28 blocks are still reachable in loss record 40 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80D2B32: precalc_one (unittype.c:489)
==25058==    by 0x80D2C63: role_unit_precalcs (unittype.c:518)
==25058== 
==25058== 384 bytes in 32 blocks are still reachable in loss record 41 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80B648C: genlist_insert (genlist.c:122)
==25058==    by 0x80B1634: conn_list_insert (speclist_c.h:60)
==25058== 
==25058== 512 bytes in 1 blocks are still reachable in loss record 42 of 63
==25058==    at 0x4003BFA3: realloc (vg_clientfuncs.c:270)
==25058==    by 0x4025F444: xrealloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40252225: rl_add_funmap_entry (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x402522C6: rl_initialize_funmap (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 600 bytes in 1 blocks are still reachable in loss record 43 of 63
==25058==    at 0x4003BFA3: realloc (vg_clientfuncs.c:270)
==25058==    by 0x4025F444: xrealloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025F88B: add_history (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40261ECA: read_history_range (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 651 bytes in 100 blocks are still reachable in loss record 44 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025F8B9: add_history (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40261ECA: read_history_range (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 800 bytes in 100 blocks are still reachable in loss record 45 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025F8A5: add_history (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40261ECA: read_history_range (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 936 bytes in 117 blocks are still reachable in loss record 46 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40252234: rl_add_funmap_entry (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x402522C6: rl_initialize_funmap (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 951 bytes in 1 blocks are still reachable in loss record 47 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4029781D: read_termtype (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297F5D: _nc_read_file_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297FDE: _nc_read_tic_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 1024 bytes in 1 blocks are still reachable in loss record 48 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40259D3A: init_line_structures (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x40259DCC: rl_redisplay (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 1024 bytes in 1 blocks are still reachable in loss record 49 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40259D51: init_line_structures (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x40259DCC: rl_redisplay (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 1024 bytes in 1 blocks are still reachable in loss record 50 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40259C6D: init_line_structures (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x40259DCC: rl_redisplay (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 1024 bytes in 1 blocks are still reachable in loss record 51 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40259C5A: init_line_structures (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x40259DCC: rl_redisplay (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 1129 bytes in 2 blocks are still reachable in loss record 52 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x40007F7B: _dl_new_object (in /lib/ld-2.2.5.so)
==25058==    by 0x40004152: _dl_map_object_from_fd (in /lib/ld-2.2.5.so)
==25058==    by 0x400053FB: _dl_map_object_internal (in /lib/ld-2.2.5.so)
==25058== 
==25058== 1656 bytes in 1 blocks are still reachable in loss record 53 of 63
==25058==    at 0x4003BE90: calloc (vg_clientfuncs.c:239)
==25058==    by 0x402979E8: read_termtype (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297F5D: _nc_read_file_entry (in /usr/lib/libncurses.so.5.2)
==25058==    by 0x40297FDE: _nc_read_tic_entry (in /usr/lib/libncurses.so.5.2)
==25058== 
==25058== 2032 bytes in 1 blocks are still reachable in loss record 54 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025EBA0: _rl_init_terminal_io (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4024DE55: readline_initialize_everything (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 3312 bytes in 36 blocks are still reachable in loss record 55 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x8077B98: get_empty_array (gotohand.c:132)
==25058==    by 0x8077C2E: add_to_mapqueue (gotohand.c:151)
==25058== 
==25058== 4000 bytes in 80 blocks are still reachable in loss record 56 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x8077E43: init_warmap (gotohand.c:209)
==25058==    by 0x8078047: really_generate_warmap (gotohand.c:306)
==25058== 
==25058== 4000 bytes in 80 blocks are still reachable in loss record 57 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x8077EA1: init_warmap (gotohand.c:211)
==25058==    by 0x8078047: really_generate_warmap (gotohand.c:306)
==25058== 
==25058== 4000 bytes in 80 blocks are still reachable in loss record 58 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x8077E72: init_warmap (gotohand.c:210)
==25058==    by 0x8078047: really_generate_warmap (gotohand.c:306)
==25058== 
==25058== 4080 bytes in 1 blocks are still reachable in loss record 59 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x4025EBC0: _rl_init_terminal_io (in 
/usr/lib/libreadline.so.4.2)
==25058==    by 0x4024DE55: readline_initialize_everything (in 
/usr/lib/libreadline.so.4.2)
==25058== 
==25058== 12696 bytes in 138 blocks are still reachable in loss record 60 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x8077B98: get_empty_array (gotohand.c:132)
==25058==    by 0x8077C5E: add_to_mapqueue (gotohand.c:155)
==25058== 
==25058== 32768 bytes in 16 blocks are still reachable in loss record 61 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x4025F3FC: xmalloc (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x402523C0: rl_make_bare_keymap (in /usr/lib/libreadline.so.4.2)
==25058==    by 0x40256083: rl_generic_bind (in /usr/lib/libreadline.so.4.2)
==25058== 
==25058== 64000 bytes in 1 blocks are still reachable in loss record 62 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80B3B93: build_landarea_map_new (game.c:204)
==25058==    by 0x80B4363: build_landarea_map (game.c:359)
==25058== 
==25058== 64000 bytes in 1 blocks are still reachable in loss record 63 of 63
==25058==    at 0x4003B9B4: malloc (vg_clientfuncs.c:100)
==25058==    by 0x804B0B0: fc_real_malloc (mem.c:62)
==25058==    by 0x80B3A9B: build_landarea_map_new (game.c:192)
==25058==    by 0x80B4363: build_landarea_map (game.c:359)
==25058== 
==25058== LEAK SUMMARY:
==25058==    definitely lost: 92 bytes in 5 blocks.
==25058==    possibly lost:   0 bytes in 0 blocks.
==25058==    still reachable: 209158 bytes in 884 blocks.
==25058== 
--25058--       lru: 5512 epochs, 0 clearings.
--25058-- translate: new 22934 (394333 -> 4520216), discard 0 (0 -> 0).
--25058--  dispatch: 275600000 basic blocks, 5514/367897 sched events, 275057 
tt_fast misses.
--25058-- reg-alloc: 7899 t-req-spill, 833113+50432 orig+spill uis, 112299 
total-reg-r.
--25058--    sanity: 5515 cheap, 221 expensive checks.

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