GNOME Bugzilla – Bug 581394
Sheet object crash during gnumeric export
Last modified: 2009-05-06 15:34:13 UTC
The upcoming attachment is an Excel file from http://qa.openoffice.org/issues/show_bug.cgi?id=6234. Steps to reproduce: - ssconvert attachment.xls /tmp/foo.gnumeric Console output: gnumeric:read-WARNING **: EXCEL: unhandled excel object of type MS Drawing (0x1e) id = 152. gnumeric:read-WARNING **: EXCEL: unhandled excel object of type MS Drawing (0x1e) id = 236. CRITICAL **: gnm_so_polygon_set_property: assertion `points != NULL' failed Backtrace: Program received signal SIGSEGV, Segmentation fault.
+ Trace 215113
Thread 3066906384 (LWP 11815)
Valgrind log: ==11643== Jump to the invalid address stated on the next line ==11643== at 0x0: ??? ==11643== by 0x418C0F8: xml_write_objects (xml-sax-write.c:1101) ==11643== by 0x418C52A: xml_write_sheet (xml-sax-write.c:1174) ==11643== by 0x418C5F3: xml_write_sheets (xml-sax-write.c:1193) ==11643== by 0x418CB11: gnm_xml_file_save (xml-sax-write.c:1326) ==11643== by 0x44AE098: go_file_saver_save_real (file.c:443) ==11643== by 0x44AECF8: go_file_saver_save (file.c:705) ==11643== by 0x4160145: wbv_save_to_output (workbook-view.c:850) ==11643== by 0x41602F4: wb_view_save_to_uri (workbook-view.c:887) ==11643== by 0x4160512: wb_view_save_as (workbook-view.c:923) ==11643== by 0x804A042: convert (ssconvert.c:338) ==11643== by 0x804A2B0: main (ssconvert.c:403) ==11643== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==11643== ==11643== Process terminating with default action of signal 11 (SIGSEGV) ==11643== Bad permissions for mapped region at address 0x0 ==11643== at 0x0: ??? ==11643== by 0x418C0F8: xml_write_objects (xml-sax-write.c:1101) ==11643== by 0x418C52A: xml_write_sheet (xml-sax-write.c:1174) ==11643== by 0x418C5F3: xml_write_sheets (xml-sax-write.c:1193) ==11643== by 0x418CB11: gnm_xml_file_save (xml-sax-write.c:1326) ==11643== by 0x44AE098: go_file_saver_save_real (file.c:443) ==11643== by 0x44AECF8: go_file_saver_save (file.c:705) ==11643== by 0x4160145: wbv_save_to_output (workbook-view.c:850) ==11643== by 0x41602F4: wb_view_save_to_uri (workbook-view.c:887) ==11643== by 0x4160512: wb_view_save_as (workbook-view.c:923) ==11643== by 0x804A042: convert (ssconvert.c:338) ==11643== by 0x804A2B0: main (ssconvert.c:403) Segmentation fault
Created attachment 133984 [details] xls file
Obviously we shouldn't be crashing but things start going downhill in the excel import when we get the: CRITICAL **: gnm_so_polygon_set_property: assertion `points != NULL' failed
> CRITICAL **: gnm_so_polygon_set_property: assertion `points != NULL' failed Fixed. (Not relevant to the crash.)
The crash is caused by a missing write_xml_sax method: static void gnm_so_polygon_write_xml_sax (SheetObject const *so, GsfXMLOut *output, GnmConventions const *convs) { /* TODO */ gnm_so_polygon_parent_class->write_xml_sax (so, output, convs); } The parent doesn't have it.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.