Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (
Home

[Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#10972) Enabling sound breaks game help in gtk-client (??)
From: "Knut Omang" <komang@xxxxxxxxxxxx>
Date: Wed, 17 Nov 2004 13:28:07 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Wed, 2004-11-17 at 20:39, Jason Short wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=10972 >
> 
> > [jdorje - Wed Nov 17 19:37:32 2004]:
> > 
> > > [komang@xxxxxxxxxxxx - Wed Nov 10 22:17:57 2004]:
> > > 
> > > In general the client seems to work fine both with/without sound, but
> > > game help is crippled with sound enabled.. 
> > 
> > Can someone run this under valgrind:
> > 
> >   valgrind civclient -P sdl

Here's what I got from starting civclient, connecting to a newly started
game, open the help dialog and select units, then terminate the server
and quit the client. Unfortunately none of the combinations I tried
yielded a valgrind run that terminated, so this one was stopped by ^C

> > and send the entire output to this ticket?
> 
> Actually, you should run:
> 
>   valgrind --num-callers=50 civclient -P sdl
> 
> -jason

Knut O.

valgrind --skin=memcheck --num-callers=50 civclient -P sdl
==23384== Memcheck, a memory error detector for x86-linux.
==23384== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==23384== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==23384== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==23384== For more details, rerun with: -v
==23384== 
==23384== warning: Valgrind's pthread_cond_destroy is incomplete
==23384==          (it doesn't check if the cond is waited on)
==23384==          your program may misbehave as a result
==23384== Syscall param write(buf) contains uninitialised or unaddressable 
byte(s)
==23384==    at 0x1C03A74B: (within /lib/tls/libc-2.3.3.so)
==23384==    by 0x1C0FD12F: (within /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0FDECE: _X11TransWrite (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0DD721: (within /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0DED8C: _XReply (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0CB5E0: XInternAtom (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0E868A: XSetWMProperties (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1BC31828: (within /usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BC31DA1: gdk_window_new (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BC14F3C: gdk_display_open (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BBF4A55: gdk_display_open_default_libgtk_only (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DA9: gtk_init_check (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DE5: gtk_init (in /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x80F9D45: ui_main (gui_main.c:1030)
==23384==    by 0x806E6A6: main (civclient.c:304)
==23384==  Address 0x1C6A8A58 is 128 bytes inside a block of size 16384 alloc'd
==23384==    at 0x1B9036C5: calloc (vg_replace_malloc.c:176)
==23384==    by 0x1C0CF55D: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1BC14E41: gdk_display_open (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BBF4A55: gdk_display_open_default_libgtk_only (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DA9: gtk_init_check (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DE5: gtk_init (in /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x80F9D45: ui_main (gui_main.c:1030)
==23384==    by 0x806E6A6: main (civclient.c:304)
==23384== 
==23384== pthread_mutex_lock/trylock: mutex has invalid owner
==23384==    at 0x1BF10BFF: pthread_mutex_lock (vg_libpthread.c:1324)
==23384==    by 0x1BF160D3: _IO_flockfile (vg_libpthread.c:3395)
==23384==    by 0x1BCD939A: pango_read_line (in 
/usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCC8061: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCC83C2: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCC8607: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCC7AE7: pango_find_map (in /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCCC276: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCCC2E7: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCCC405: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCCC6C7: pango_itemize_with_base_dir (in 
/usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCD3DA0: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCD21E5: (within /usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BCD2536: pango_layout_get_extents (in 
/usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BA212E5: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1B968BA0: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BD0D1BD: g_cclosure_marshal_VOID__BOXED (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BCF84F6: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BCF815F: g_closure_invoke (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B98D: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B126: g_signal_emit_valist (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B513: g_signal_emit_by_name (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BA806C0: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA80A47: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB33F3B: gtk_widget_size_request (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA57430: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA55DC9: gtk_option_menu_set_menu (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x8106C13: create_start_page (pages.c:953)
==23384==    by 0x80F8C74: setup_widgets (gui_main.c:648)
==23384==    by 0x80FA0B6: ui_main (gui_main.c:1143)
==23384==    by 0x806E6A6: main (civclient.c:304)
==23384== 
==23384== pthread_mutex_lock/trylock: mutex has invalid owner
==23384==    at 0x1BF10BFF: pthread_mutex_lock (vg_libpthread.c:1324)
==23384==    by 0x1BF160D3: _IO_flockfile (vg_libpthread.c:3395)
==23384==    by 0x1BCD939A: pango_read_line (in 
/usr/lib/libpango-1.0.so.0.400.1)
==23384==    by 0x1BA1741E: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA17BA2: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA1812E: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA18397: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA15F42: gtk_im_context_set_cursor_location (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BAD08E4: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BAD8A35: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA38C74: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BCF84F6: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BCF815F: g_closure_invoke (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0BB94: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B126: g_signal_emit_valist (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B423: g_signal_emit (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BB35CD6: gtk_widget_set_scroll_adjustments (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA77D6C: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BD0D35D: g_cclosure_marshal_VOID__OBJECT (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BCF84F6: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BCF815F: g_closure_invoke (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B98D: (within /usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B126: g_signal_emit_valist (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1BD0B423: g_signal_emit (in 
/usr/lib/libgobject-2.0.so.0.400.7)
==23384==    by 0x1B9B2496: gtk_container_add (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x8106F67: create_start_page (pages.c:1010)
==23384==    by 0x80F8C74: setup_widgets (gui_main.c:648)
==23384==    by 0x80FA0B6: ui_main (gui_main.c:1143)
==23384==    by 0x806E6A6: main (civclient.c:304)
==23384== 
==23384== Syscall param writev(vector[...]) contains uninitialised or 
unaddressable byte(s)
==23384==    at 0x1C040F1E: writev (in /lib/tls/libc-2.3.3.so)
==23384==    by 0x1C0FD1AF: (within /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0FDF2E: _X11TransWritev (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0DE5F4: _XSend (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0D4AE4: XQueryExtension (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C0CA76A: XInitExtension (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1C188873: XextAddDisplay (in /usr/X11R6/lib/libXext.so.6.4)
==23384==    by 0x1C18A277: (within /usr/X11R6/lib/libXext.so.6.4)
==23384==    by 0x1C18A450: XShapeQueryExtension (in 
/usr/X11R6/lib/libXext.so.6.4)
==23384==    by 0x1BC3642C: (within /usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BC364FA: gdk_window_shape_combine_mask (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB3B38A: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB3B421: gtk_widget_reset_shapes (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB37EA7: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB373F9: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB377AC: (within /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BB37A1B: gtk_widget_modify_bg (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x80F96B3: setup_widgets (gui_main.c:875)
==23384==    by 0x80FA0B6: ui_main (gui_main.c:1143)
==23384==    by 0x806E6A6: main (civclient.c:304)
==23384==  Address 0x1C6A89F3 is 27 bytes inside a block of size 16384 alloc'd
==23384==    at 0x1B9036C5: calloc (vg_replace_malloc.c:176)
==23384==    by 0x1C0CF55D: XOpenDisplay (in /usr/X11R6/lib/libX11.so.6.2)
==23384==    by 0x1BC14E41: gdk_display_open (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BBF4A55: gdk_display_open_default_libgtk_only (in 
/usr/lib/libgdk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DA9: gtk_init_check (in 
/usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x1BA32DE5: gtk_init (in /usr/lib/libgtk-x11-2.0.so.0.400.13)
==23384==    by 0x80F9D45: ui_main (gui_main.c:1030)
==23384==    by 0x806E6A6: main (civclient.c:304)
2: lost connection to server
==23384== 
==23384== ERROR SUMMARY: 107 errors from 4 contexts (suppressed: 200 from 2)
==23384== malloc/free: in use at exit: 3317812 bytes in 42138 blocks.
==23384== malloc/free: 352572 allocs, 310434 frees, 112449969 bytes allocated.
==23384== For a detailed leak analysis,  rerun with: --leak-check=yes
==23384== For counts of detected errors, rerun with: -v

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