Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2004:
[Freeciv-Dev] (PR#9035) invalid accesses at exit
Home

[Freeciv-Dev] (PR#9035) invalid accesses at exit

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9035) invalid accesses at exit
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Jun 2004 17:36:29 -0700
Reply-to: rt@xxxxxxxxxxx

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

When I run the server under valgrind, at exit I get a number of warnings
like...

==1810== Invalid read of size 4
==1810==    at 0x3C0B157E: __gconv_release_step (gconv_db.c:198)
==1810==    by 0x3C0B214C: __gconv_close_transform (gconv_db.c:751)
==1810==    by 0x3C12AC56: _nl_cleanup_ctype (wcsmbsload.c:265)
==1810==    by 0x3C1A58B2: _nl_archive_subfreeres (loadarchive.c:517)
==1810==    by 0x3C1A57AF: free_mem (setlocale.c:494)
==1810==    by 0x3C1A5B54: __GI___libc_freeres (set-freeres.c:49)
==1810==    by 0x3C01AB9E: __vgInject___libc_freeres_wrapper
(vg_intercept.c:77)
==1810==    by 0x3C0C5AF7: exit (exit.c:82)
==1810==    by 0x804F38C: srv_main (srv_main.c:680)
==1810==    by 0x804A3CC: main (civserver.c:161)
==1810==  Address 0x3C592060 is 8 bytes inside a block of size 60 free'd
==1810==    at 0x3C01F918: free (vg_replace_malloc.c:127)
==1810==    by 0x3C0B1527: free_derivation (gconv_db.c:188)
==1810==    by 0x3C16FE92: tdestroy_recurse (tsearch.c:642)
==1810==    by 0x3C16FEB5: tdestroy_recurse (tsearch.c:639)
==1810==    by 0x3C1A5631: free_mem (gconv_db.c:796)
==1810==    by 0x3C1A5B54: __GI___libc_freeres (set-freeres.c:49)
==1810==    by 0x3C01AB9E: __vgInject___libc_freeres_wrapper
(vg_intercept.c:77)
==1810==    by 0x3C0C5AF7: exit (exit.c:82)
==1810==    by 0x804F38C: srv_main (srv_main.c:680)
==1810==    by 0x804A3CC: main (civserver.c:161)

==1810== Invalid write of size 4
==1810==    at 0x3C0B15B5: __gconv_release_step (gconv_db.c:210)
==1810==    by 0x3C0B214C: __gconv_close_transform (gconv_db.c:751)
==1810==    by 0x3C12AC56: _nl_cleanup_ctype (wcsmbsload.c:265)
==1810==    by 0x3C1A58B2: _nl_archive_subfreeres (loadarchive.c:517)
==1810==    by 0x3C1A57AF: free_mem (setlocale.c:494)
==1810==    by 0x3C1A5B54: __GI___libc_freeres (set-freeres.c:49)
==1810==    by 0x3C01AB9E: __vgInject___libc_freeres_wrapper
(vg_intercept.c:77)
==1810==    by 0x3C0C5AF7: exit (exit.c:82)
==1810==    by 0x804F38C: srv_main (srv_main.c:680)
==1810==    by 0x804A3CC: main (civserver.c:161)
==1810==  Address 0x3C592058 is 0 bytes inside a block of size 60 free'd
==1810==    at 0x3C01F918: free (vg_replace_malloc.c:127)
==1810==    by 0x3C0B1527: free_derivation (gconv_db.c:188)
==1810==    by 0x3C16FE92: tdestroy_recurse (tsearch.c:642)
==1810==    by 0x3C16FEB5: tdestroy_recurse (tsearch.c:639)
==1810==    by 0x3C1A5631: free_mem (gconv_db.c:796)
==1810==    by 0x3C1A5B54: __GI___libc_freeres (set-freeres.c:49)
==1810==    by 0x3C01AB9E: __vgInject___libc_freeres_wrapper
(vg_intercept.c:77)
==1810==    by 0x3C0C5AF7: exit (exit.c:82)
==1810==    by 0x804F38C: srv_main (srv_main.c:680)
==1810==    by 0x804A3CC: main (civserver.c:161)

...which are bad.  What could cause this?

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9035) invalid accesses at exit, Jason Short <=