Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11075) running valgrind with gtk2 client for beta3
Home

[Freeciv-Dev] (PR#11075) running valgrind with gtk2 client for beta3

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11075) running valgrind with gtk2 client for beta3
From: "jorneg@xxxxxxxxxxx" <jorneg@xxxxxxxxxxx>
Date: Thu, 18 Nov 2004 10:00:19 -0800
Reply-to: rt@xxxxxxxxxxx

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


    Explanation below

jorneg@linux:~/freeciv/freeciv-2.0.0-beta3> valgrind --leak-check=yes 
client/civclient -P sdl
==8631== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==8631== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
==8631== Using valgrind-20030725, a program supervision framework for 
x86-linux.
==8631== Copyright (C) 2000-2003, and GNU GPL'd, by Julian Seward.
==8631== Estimated CPU clock rate is 1994 MHz
==8631== For more details, rerun with: -v
==8631==
Encodings: Data=UTF-8, Local=ISO-8859-1, Internal=UTF-8
1: Cannot find sound spec-file "stdsounds".
1: To get sound you need to download a sound set!
1: Get sound sets from <ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets>.
1: Will continue with disabled sounds.
1: sendto failed: La red es inaccesible
==8631== Conditional jump or move depends on uninitialised value(s)
==8631==    at 0x4332E93D: compute_hint (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332EACB: theme_pixbuf_compute_hints (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332EC78: theme_pixbuf_get_pixbuf (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332C31C: draw_gap_image (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==
==8631== Conditional jump or move depends on uninitialised value(s)
==8631==    at 0x4332E93D: compute_hint (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332EACB: theme_pixbuf_compute_hints (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332EC78: theme_pixbuf_get_pixbuf (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==    by 0x4332ECF0: theme_pixbuf_render (in 
/opt/gnome/lib/gtk-2.0/2.2.0/engines/libpixmap.so)
==8631==
==8631== Syscall param write(buf) contains uninitialised or 
unaddressable byte(s)
==8631==    at 0x40900108: __GI___libc_write (in /lib/i686/libc.so.6)
==8631==    by 0x80A2119: write_socket_data (connection.c:226)
==8631==    by 0x80A22F4: flush_connection_send_buffer_all 
(connection.c:262)
==8631==    by 0x80ACF6A: send_attribute_block (packets.c:602)
==8631==    Address 0x44AB3FDD is 3637 bytes inside a block of size 
40960 alloc'd
==8631==    at 0x4002CB8C: malloc (in /usr/lib/valgrind/vgskin_memcheck.so)
==8631==    by 0x8096795: fc_real_malloc (mem.c:79)
==8631==    by 0x80A2838: new_socket_packet_buffer (connection.c:466)
==8631==    by 0x80A2BD3: connection_common_init (connection.c:600)
==8631== discard syms in /usr/lib/gconv/ISO8859-15.so due to munmap()
==8631== discard syms in /usr/lib/gconv/ISO8859-1.so due to munmap()
==8631== discard syms in /lib/libnss_files.so.2 due to munmap()
==8631== discard syms in /lib/libnss_dns.so.2 due to munmap()
==8631== discard syms in /lib/libresolv.so.2 due to munmap()
==8631==
==8631== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 44 from 3)
==8631== malloc/free: in use at exit: 10827296 bytes in 20002 blocks.
==8631== malloc/free: 729004 allocs, 709002 frees, 212786115 bytes 
allocated.
==8631== For counts of detected errors, rerun with: -v
==8631== searching for pointers to 20002 not-freed blocks.
==8631== checked 27816640 bytes.
==8631==
==8631==
==8631== 800 bytes in 20 blocks are possibly lost in loss record 110 of 152
==8631==    at 0x4002CFF0: calloc (in /usr/lib/valgrind/vgskin_memcheck.so)
==8631==    by 0x4063FDBE: g_malloc0 (in 
/opt/gnome/lib/libglib-2.0.so.0.200.3)
==8631==    by 0x405F7D22: type_node_any_new_W (in 
/opt/gnome/lib/libgobject-2.0.so.0.200.3)
==8631==    by 0x405F7DD8: type_node_fundamental_new_W (in 
/opt/gnome/lib/libgobject-2.0.so.0.200.3)
==8631==
==8631== LEAK SUMMARY:
==8631==    definitely lost: 0 bytes in 0 blocks.
==8631==    possibly lost:   800 bytes in 20 blocks.
==8631==    still reachable: 10826296 bytes in 19981 blocks.
==8631==         suppressed: 200 bytes in 1 blocks.
==8631== Reachable blocks (those to which a pointer was found) are not 
shown.
==8631== To see them, rerun with: --show-reachable=yes
==8631==

    I just connect to a localhost game. Connect the client in pregame. 
Issue 'start' on server and then hit 'turn done' on client. And close 
the client.

    Despite valgrind complaining of errors in libpixmap, there is a 
problem when i hit the 'turn done' button.

    Hope this helps, eventhough i do it to catch the sdl-help problem 
and i don't have installed the sdl plugin!





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#11075) running valgrind with gtk2 client for beta3, jorneg@xxxxxxxxxxx <=