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 627759 - ODF import leaks
ODF import leaks
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other All
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-08-23 19:44 UTC by Morten Welinder
Modified: 2010-08-23 20:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Corrupted ods file (45.32 KB, application/vnd.oasis.opendocument.spreadsheet)
2010-08-23 19:44 UTC, Morten Welinder
Details

Description Morten Welinder 2010-08-23 19:44:31 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)
Comment 1 Morten Welinder 2010-08-23 19:47:49 UTC
od_draw_image?
Comment 2 Morten Welinder 2010-08-23 20:11:09 UTC
Fixed od_draw_image, but leaks remain.
Comment 3 Morten Welinder 2010-08-23 20:15:03 UTC
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.