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 12 libglib-1.2.0.dylib g_main_dispatch 13 libglib-1.2.0.dylib g_main_iterate 14 libglib-1.2.0.dylib g_main_run 15 libgtk-1.2.0.dylib gtk_main 16 gtk-gnutella main_gui_run 17 gtk-gnutella main 18 gtk-gnutella start 19 0x0 I also ran across three other leaks, the third of which is probably covered by the leak already mentioned. It seems to be the same, just coming from a callback or something. probably "main_gui_early_init" as it calls "gtk_init": 0 libSystem.B.dylib malloc 1 libX11.6.dylib _X11TransParseAddress 2 libX11.6.dylib _X11TransConnect 3 libX11.6.dylib _X11TransConnectDisplay 4 libX11.6.dylib XOpenDisplay 5 libgdk-1.2.0.dylib gdk_init_check 6 libgtk-1.2.0.dylib gtk_init_check 7 libgtk-1.2.0.dylib gtk_init 8 gtk-gnutella main_gui_early_init 9 gtk-gnutella main 10 gtk-gnutella start 11 0x0 probably "create pixmap" as it calls "gtk_pixmap_new": 0 libSystem.B.dylib calloc 1 libglib-1.2.0.dylib g_malloc0 2 libgtk-1.2.0.dylib gtk_type_new 3 libgtk-1.2.0.dylib gtk_pixmap_new 4 gtk-gnutella create_pixmap 5 gtk-gnutella icon_init 6 gtk-gnutella main_gui_run 7 gtk-gnutella main 8 gtk-gnutella start 9 0x0 probably "tls_handshake" as it calls "gnutls_handshake": 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 12 libglib-1.2.0.dylib g_main_dispatch 13 libglib-1.2.0.dylib g_main_iterate 14 libgtk-1.2.0.dylib gtk_main_iteration_do 15 gtk-gnutella gtk_main_flush 16 gtk-gnutella recurse_scan_intern 17 gtk-gnutella recurse_scan_intern 18 gtk-gnutella recurse_scan_intern 19 gtk-gnutella share_scan 20 gtk-gnutella scan_files_once 21 libglib-1.2.0.dylib g_timeout_dispatch 22 libglib-1.2.0.dylib g_main_dispatch 23 libglib-1.2.0.dylib g_main_iterate 24 libglib-1.2.0.dylib g_main_run 25 libgtk-1.2.0.dylib gtk_main 26 gtk-gnutella main_gui_run 27 gtk-gnutella main 28 gtk-gnutella start 29 0x0 ------------------------------------------------------------------------- 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