GLib/GModule Memory Leak?



I hope this is the right list to ask this on.  I ran valgrind on an
application I'm developing with glib using gmodule.  Results attached.
Am I just worried about something that's not a big deal or is this a bug
I should file?

Thanks,
Nathaniel
==26126== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from 1)
==26126== malloc/free: in use at exit: 1,896,158 bytes in 5,100 blocks.
==26126== malloc/free: 875,754 allocs, 870,654 frees, 23,190,938 bytes allocated.
==26126== For counts of detected errors, rerun with: -v
==26126== searching for pointers to 5,100 not-freed blocks.
==26126== checked 1,820,892 bytes.
==26126==
==26126== 20 bytes in 1 blocks are still reachable in loss record 1 of 6
==26126==    at 0x40045EB: calloc (vg_replace_malloc.c:279)
==26126==    by 0xD5A45D: _dlerror_run (in /lib/libdl-2.4.so)
==26126==    by 0xD59D48: dlopen@@GLIBC_2.1 (in /lib/libdl-2.4.so)
==26126==    by 0xDD5568: g_module_open (in /usr/lib/libgmodule-2.0.so.0.1000.1)
==26126==    by 0x80499A1: nw_plugin_load (plugin.c:107)
==26126==    by 0x8049A65: nw_plugin_load (plugin.c:135)
==26126==    by 0x80495D0: main (noweb.c:29)
==26126==
==26126==
==26126== 30 bytes in 2 blocks are still reachable in loss record 2 of 6
==26126==    at 0x40051F9: malloc (vg_replace_malloc.c:149)
==26126==    by 0x99D665: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B0538: g_strdup (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9BA341: g_get_charset (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x99F2CC: g_printerr (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x40117B3: ???
==26126==    by 0x80494F3: log_request_factory (logger.c:13)
==26126==    by 0x804973E: main (noweb.c:65)
==26126==
==26126==
==26126== 144 bytes in 3 blocks are still reachable in loss record 3 of 6
==26126==    at 0x40051F9: malloc (vg_replace_malloc.c:149)
==26126==    by 0x4005271: realloc (vg_replace_malloc.c:306)
==26126==    by 0x99D52A: g_realloc (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E220: (within /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E5A3: g_array_set_size (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B429C: g_static_private_set (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0xDD5089: g_module_supported (in /usr/lib/libgmodule-2.0.so.0.1000.1)
==26126==    by 0x80498B9: nw_plugin_init (plugin.c:73)
==26126==    by 0x80495A4: main (noweb.c:25)
==26126==
==26126==
==26126== 2,776 bytes in 5 blocks are possibly lost in loss record 4 of 6
==26126==    at 0x40044B3: memalign (vg_replace_malloc.c:332)
==26126==    by 0x4004509: posix_memalign (vg_replace_malloc.c:384)
==26126==    by 0x9AC3A8: (within /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9AD65B: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E688: g_array_sized_new (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E796: g_array_new (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B42C2: g_static_private_set (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0xDD5089: g_module_supported (in /usr/lib/libgmodule-2.0.so.0.1000.1)
==26126==    by 0x80498B9: nw_plugin_init (plugin.c:73)
==26126==    by 0x80495A4: main (noweb.c:25)
==26126==
==26126==
==26126== 3,612 bytes in 6 blocks are still reachable in loss record 5 of 6
==26126==    at 0x40045EB: calloc (vg_replace_malloc.c:279)
==26126==    by 0x99D5CD: g_malloc0 (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B339B: g_thread_self (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B413E: g_static_private_set (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0xDD5089: g_module_supported (in /usr/lib/libgmodule-2.0.so.0.1000.1)
==26126==    by 0x80498B9: nw_plugin_init (plugin.c:73)
==26126==    by 0x80495A4: main (noweb.c:25)
==26126==
==26126==
==26126== 1,889,576 bytes in 5,083 blocks are still reachable in loss record 6 of 6
==26126==    at 0x40044B3: memalign (vg_replace_malloc.c:332)
==26126==    by 0x4004509: posix_memalign (vg_replace_malloc.c:384)
==26126==    by 0x9AC3A8: (within /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9AD637: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E688: g_array_sized_new (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x97E796: g_array_new (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0x9B42C2: g_static_private_set (in /usr/lib/libglib-2.0.so.0.1000.1)
==26126==    by 0xDD5089: g_module_supported (in /usr/lib/libgmodule-2.0.so.0.1000.1)
==26126==    by 0x80498B9: nw_plugin_init (plugin.c:73)
==26126==    by 0x80495A4: main (noweb.c:25)
==26126==
==26126== LEAK SUMMARY:
==26126==    definitely lost: 0 bytes in 0 blocks.
==26126==      possibly lost: 2,776 bytes in 5 blocks.
==26126==    still reachable: 1,893,382 bytes in 5,095 blocks.
==26126==         suppressed: 0 bytes in 0 blocks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]