After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346573 - Initialize gnutls lazily
Initialize gnutls lazily
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: http
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Christian Kellner
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-04 18:08 UTC by Ben Maurer
Modified: 2006-07-14 17:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben Maurer 2006-07-04 18:08:10 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)
Comment 1 Christian Kellner 2006-07-14 17:12:06 UTC
Mr. Ben "memory" Maurer you will be pleased because this is fixed in HEAD. Closing this bug. Next stop: word domination! :)