GNOME Bugzilla – Bug 627759
ODF import leaks
Last modified: 2010-08-23 20:15:03 UTC
Created attachment 168584 [details] Corrupted ods file It looks like some gsf object isn't getting freed. Sample records below. The attached file is corrupted. That may or may not be important. ==4953== 1 bytes in 1 blocks are possibly lost in loss record 1 of 3,222 ==4953== at 0x4C241C3: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd6 4-linux.so) ==4953== by 0x8C3B4F2: g_malloc (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x8C52DDD: g_strdup (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x58A2904: gsf_vdir_new (gsf-zip-utils.c:59) ==4953== by 0x58ABA85: gsf_infile_zip_constructor (gsf-infile-zip.c:356) ==4953== by 0x87C0A2E: g_object_newv (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==4953== by 0x87C12D0: g_object_new_valist (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==4953== by 0x87C153B: g_object_new (in /usr/lib64/libgobject-2.0.so.0.2200.4) ==4953== by 0x58AA6DA: gsf_infile_zip_new (gsf-infile-zip.c:869) ==4953== by 0xFA022A2: openoffice_file_open (openoffice-read.c:6009) ==4953== by 0x53789FB: go_plugin_file_opener_open (go-plugin-service.c:479) ==4953== by 0x4F78B0E: wb_view_new_from_input (workbook-view.c:1254) ==4953== by 0x4F78D3C: wb_view_new_from_uri (workbook-view.c:1309) ==4953== by 0x403390: convert (ssconvert.c:552) ==4953== by 0x403F0E: main (ssconvert.c:692) ==4953== 9 bytes in 1 blocks are possibly lost in loss record 159 of 3,222 ==4953== at 0x4C241C3: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd6 4-linux.so) ==4953== by 0x8C3B4F2: g_malloc (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x8C52DDD: g_strdup (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x58A2904: gsf_vdir_new (gsf-zip-utils.c:59) ==4953== by 0x58ABB7E: gsf_infile_zip_constructor (gsf-infile-zip.c:113) ==4953== by 0x87C0A2E: g_object_newv (in /usr/lib64/libgobject-2.0.so.0.2200. 4) ==4953== by 0x87C12D0: g_object_new_valist (in /usr/lib64/libgobject-2.0.so.0 .2200.4) ==4953== by 0x87C153B: g_object_new (in /usr/lib64/libgobject-2.0.so.0.2200.4 ) ==4953== by 0x58AA6DA: gsf_infile_zip_new (gsf-infile-zip.c:869) ==4953== by 0xFA022A2: openoffice_file_open (openoffice-read.c:6009) ==4953== by 0x53789FB: go_plugin_file_opener_open (go-plugin-service.c:479) ==4953== by 0x4F78B0E: wb_view_new_from_input (workbook-view.c:1254) ==4953== by 0x4F78D3C: wb_view_new_from_uri (workbook-view.c:1309) ==4953== by 0x403390: convert (ssconvert.c:552) ==4953== by 0x403F0E: main (ssconvert.c:692) ==4953== 9 bytes in 1 blocks are possibly lost in loss record 160 of 3,222 ==4953== at 0x4C241C3: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==4953== by 0x8C3B4F2: g_malloc (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x8C52DDD: g_strdup (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x58A304D: gsf_input_set_name (gsf-input.c:405) ==4953== by 0x58AABDA: gsf_infile_zip_new_child (gsf-infile-zip.c:609) ==4953== by 0x58A688D: gsf_infile_child_by_name (gsf-infile.c:107) ==4953== by 0xFA0299E: openoffice_file_open (openoffice-read.c:6106) ==4953== by 0x53789FB: go_plugin_file_opener_open (go-plugin-service.c:479) ==4953== by 0x4F78B0E: wb_view_new_from_input (workbook-view.c:1254) ==4953== by 0x4F78D3C: wb_view_new_from_uri (workbook-view.c:1309) ==4953== by 0x403390: convert (ssconvert.c:552) ==4953== by 0x403F0E: main (ssconvert.c:692) ==4953== 32 bytes in 1 blocks are possibly lost in loss record 1,559 of 3,222 ==4953== at 0x4C234E7: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd6 4-linux.so) ==4953== by 0x8C3B497: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x58AB6DE: gsf_infile_zip_constructor (gsf-infile-zip.c:325) ==4953== by 0x87C0A2E: g_object_newv (in /usr/lib64/libgobject-2.0.so.0.2200. 4) ==4953== by 0x87C12D0: g_object_new_valist (in /usr/lib64/libgobject-2.0.so.0 .2200.4) ==4953== by 0x87C153B: g_object_new (in /usr/lib64/libgobject-2.0.so.0.2200.4 ) ==4953== by 0x58AA6DA: gsf_infile_zip_new (gsf-infile-zip.c:869) ==4953== by 0xFA022A2: openoffice_file_open (openoffice-read.c:6009) ==4953== by 0x53789FB: go_plugin_file_opener_open (go-plugin-service.c:479) ==4953== by 0x4F78B0E: wb_view_new_from_input (workbook-view.c:1254) ==4953== by 0x4F78D3C: wb_view_new_from_uri (workbook-view.c:1309) ==4953== by 0x403390: convert (ssconvert.c:552) ==4953== by 0x403F0E: main (ssconvert.c:692) ==4953== 40 bytes in 1 blocks are possibly lost in loss record 1,681 of 3,222 ==4953== at 0x4C241C3: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd6 4-linux.so) ==4953== by 0x8C3B4F2: g_malloc (in /usr/lib64/libglib-2.0.so.0.2200.4) ==4953== by 0x58A28F9: gsf_vdir_new (gsf-zip-utils.c:57) ==4953== by 0x58ABA85: gsf_infile_zip_constructor (gsf-infile-zip.c:356) ==4953== by 0x87C0A2E: g_object_newv (in /usr/lib64/libgobject-2.0.so.0.2200. 4) ==4953== by 0x87C12D0: g_object_new_valist (in /usr/lib64/libgobject-2.0.so.0 .2200.4) ==4953== by 0x87C153B: g_object_new (in /usr/lib64/libgobject-2.0.so.0.2200.4 ) ==4953== by 0x58AA6DA: gsf_infile_zip_new (gsf-infile-zip.c:869) ==4953== by 0xFA022A2: openoffice_file_open (openoffice-read.c:6009) ==4953== by 0x53789FB: go_plugin_file_opener_open (go-plugin-service.c:479) ==4953== by 0x4F78B0E: wb_view_new_from_input (workbook-view.c:1254) ==4953== by 0x4F78D3C: wb_view_new_from_uri (workbook-view.c:1309) ==4953== by 0x403390: convert (ssconvert.c:552) ==4953== by 0x403F0E: main (ssconvert.c:692)
od_draw_image?
Fixed od_draw_image, but leaks remain.
meta_file too. This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.