gconv-modules.cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Right now, calling setlocale (which is called by most libgnome using programs via gnome_program_init) causes ~ 70 kb of allocations. The stack traces look like:
==14654== 33,292 bytes in 424 blocks are still reachable in loss record 3,082 of 3,082
==14654== at 0x401D7AA: calloc (vg_replace_
==14654== by 0x4ABFA7E: add_module (gconv_conf.c:321)
==14654== by 0x4AC0230: __gconv_read_conf (gconv_conf.c:411)
==14654== by 0x4A5E580: pthread_once (mutex.c:318)
==14654== by 0x4ABF237: __gconv_
==14654== by 0x4AC78C9: _nl_find_locale (gconv_
==14654== by 0x4AC70D4: setlocale (setlocale.c:312)
==14654== by 0x429146A: gnome_program_
==14654== by 0x4291BC7: (within /usr/lib/
==14654== by 0x4291ED8: gnome_program_init (in /usr/lib/
==14654== by 0x80487E4: main (in /home/bmaurer/
These allocations could be saved by generating the mmaped gconv-modules.cache file (created by iconvconfig). Other distros (including FC5) do this.
Another cache that may be missing is /usr/lib/ locale/ locale- archive. It looks like the lack of this cache is responsible for some more allocations.