GNOME Bugzilla – Bug 346573
Initialize gnutls lazily
Last modified: 2006-07-14 17:12:06 UTC
libgnutls allocates about 65 kb of memory inside gnutls_global_init. This initialization function is called by the initializer for gnome vfs's ssl module when gnome vfs is intialized. This means that any vfs using program -- even if it never uses the ssl module (which is probably rare) -- uses 65 kb of memory. The stack traces for allocations look like: ==9772== at 0x401C422: malloc (vg_replace_malloc.c:149) ==9772== by 0x4DEFB0E: _asn1_add_node (in /usr/lib/libtasn1.so.2.0.17) ==9772== by 0x4DF0FED: asn1_array2tree (in /usr/lib/libtasn1.so.2.0.17) ==9772== by 0x4CB9177: gnutls_global_init (in /usr/lib/libgnutls.so.12.3.6) ==9772== by 0x485BCC3: (within /usr/lib/libgnomevfs-2.so.0.1400.2) ==9772== by 0x484BD56: gnome_vfs_init (in /usr/lib/libgnomevfs-2.so.0.1400.2) ==9772== by 0x42954AE: (within /usr/lib/libgnome-2.so.0.1401.0) ==9772== by 0x42917FA: gnome_program_postinit (in /usr/lib/libgnome-2.so.0.1401.0) ==9772== by 0x4291BCF: (within /usr/lib/libgnome-2.so.0.1401.0) ==9772== by 0x4291ED8: gnome_program_init (in /usr/lib/libgnome-2.so.0.1401.0) ==9772== by 0x80487E4: main (in /home/bmaurer/gmem/gnome)
Mr. Ben "memory" Maurer you will be pleased because this is fixed in HEAD. Closing this bug. Next stop: word domination! :)