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 581394 - Sheet object crash during gnumeric export
Sheet object crash during gnumeric export
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Sheet Objects
git master
Other All
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-05-05 01:15 UTC by sum1
Modified: 2009-05-06 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xls file (44.50 KB, application/vnd.ms-excel)
2009-05-05 01:17 UTC, sum1
Details

Description sum1 2009-05-05 01:15:49 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.

Thread 3066906384 (LWP 11815)

  • #0 ??
  • #1 xml_write_objects
    at xml-sax-write.c line 1101
  • #2 xml_write_sheet
    at xml-sax-write.c line 1174
  • #3 xml_write_sheets
    at xml-sax-write.c line 1193
  • #4 gnm_xml_file_save
    at xml-sax-write.c line 1326
  • #5 go_file_saver_save_real
    at file.c line 443
  • #6 go_file_saver_save
    at file.c line 705
  • #7 wbv_save_to_output
    at workbook-view.c line 850
  • #8 wb_view_save_to_uri
    at workbook-view.c line 887
  • #9 wb_view_save_as
    at workbook-view.c line 923
  • #10 convert
    at ssconvert.c line 338
  • #11 main
    at ssconvert.c line 403


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
Comment 1 sum1 2009-05-05 01:17:05 UTC
Created attachment 133984 [details]
xls file
Comment 2 Andreas J. Guelzow 2009-05-05 04:41:18 UTC
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
Comment 3 Morten Welinder 2009-05-05 21:03:03 UTC
> CRITICAL **: gnm_so_polygon_set_property: assertion `points != NULL' failed

Fixed.  (Not relevant to the crash.)
Comment 4 Morten Welinder 2009-05-05 21:13:08 UTC
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.
Comment 5 Morten Welinder 2009-05-06 15:34:13 UTC
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.