Matthew Lye wrote: > The following also seems to be a source of several memory leaks, about > 144 bytes each. I'd found 1k-sized leaks earlier, but unfortunately > the "Instruments" program crashed before they could be recorded. I > believe they involved a call to TLS as well, though, so they could > have been from the same place. I need to find a way of invoking the > Dtrace instruments with a lot less overhead, in order to run it for > more extended periods of time. As it is, it tends to bog things down. > > 0 libSystem.B.dylib malloc > 1 libgnutls.13.dylib _gnutls_mpi_dprint_lz > 2 libgnutls.13.dylib _gnutls_dh_set_peer_public > 3 libgnutls.13.dylib _gnutls_proc_dh_common_server_kx > 4 libgnutls.13.dylib proc_anon_server_kx > 5 libgnutls.13.dylib _gnutls_recv_server_kx_message > 6 libgnutls.13.dylib _gnutls_handshake_client > 7 libgnutls.13.dylib gnutls_handshake > 8 gtk-gnutella tls_handshake > 9 gtk-gnutella socket_tls_setup > 10 gtk-gnutella socket_connected > 11 gtk-gnutella dispatch_poll
Isn't there a counter which shows how often this leak occurs? If there's only one, there's probably some initialization the first time one of these functions is called and it's not really a leak. If this happens for each handshake, that would be something to look at. > probably "main_gui_early_init" as it calls "gtk_init": [...] > probably "create pixmap" as it calls "gtk_pixmap_new": [...] These two are not really memory leaks. They are not accumulating. It's some memory allocated at startup used for the whole run time. It's only a "leak" in so far that the memory isn't released on exit. -- 1000 octets = 1 ko = 1 kilooctet; 1024 octets = 1 Kio = 1 kibioctet 1000^2 octets = 1 Mo = 1 megaoctet; 1024^2 octets = 1 Mio = 1 mebioctet 1000^3 octets = 1 Go = 1 gigaoctet; 1024^3 octets = 1 Gio = 1 gibioctet ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ gtk-gnutella-devel mailing list gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel