Bug#375891: valgrind log

David Pashley david at davidpashley.com
Sun Jul 2 17:46:55 UTC 2006

I have the results from valgrind:

==21422== 107,656 bytes in 6,333 blocks are definitely lost in loss record 140 of 140
==21422==    at 0x401B4A1: malloc (vg_replace_malloc.c:149)
==21422==    by 0x4C2D9CF: strdup (in /lib/tls/i686/cmov/libc-2.3.6.so)
==21422==    by 0x49ECDCE: gnome_cups_request_add_requested_attributes (gnome-cups-request.c:482)
==21422==    by 0x49E7A69: update_attributes (gnome-cups-printer.c:321)
==21422==    by 0x49EACAB: update_printers (gnome-cups-printer.c:728)
==21422==    by 0x49EAD1F: update_printers_timeout (gnome-cups-printer.c:757)
==21422==    by 0x4B31555: (within /usr/lib/libglib-2.0.so.0.1000.3)
==21422==    by 0x4B30E2B: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.1000.3)
==21422==    by 0x4B34175: (within /usr/lib/libglib-2.0.so.0.1000.3)
==21422==    by 0x4B34536: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.1000.3)
==21422==    by 0x43904E0: gtk_main (gtkmain.c:1003)
==21422==    by 0x804BDA1: main (gnome-cups-icon.c:136)

There is indeed a memory leak, but I suspect it is in ippDelete in CUPS.
gnome_cups_request_add_requested_attributes strdups a static list of
strings into a request object and ippDelete is meant to delete them, but
they clearly don't. This seems to happen every 30 seconds.

The longer I leave the program, the more memory leaked at this point.

David Pashley
david at davidpashley.com
Nihil curo de ista tua stulta superstitione.

More information about the Pkg-gnome-maintainers mailing list