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 652689 - Crash on saving file with comment to xlsx
Crash on saving file with comment to xlsx
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2011-06-16 05:34 UTC by Andreas J. Guelzow
Modified: 2011-06-16 19:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample .gnumeric file (16.44 KB, application/gnumeric)
2011-06-16 05:34 UTC, Andreas J. Guelzow
Details

Description Andreas J. Guelzow 2011-06-16 05:34:13 UTC
When trying to save teh attached file to xlsx we first see many criticals:

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_list_get_iterator: assertion `list != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_get: assertion `iterator != NULL' failed

(/home/aguelzow/gnumeric/bin/gnumeric:16525): Pango-CRITICAL **: pango_attr_iterator_range: assertion `iterator != NULL' failed

And then a segmentation fault:

Program received signal SIGSEGV, Segmentation fault.
0xb6f6701a in strncpy () from /lib/i386-linux-gnu/libc.so.6
(gdb) bt
  • #0 strncpy
    from /lib/i386-linux-gnu/libc.so.6
  • #1 g_strndup
    from /lib/i386-linux-gnu/libglib-2.0.so.0
  • #2 xlsx_write_rich_text
    at xlsx-write.c line 1692
  • #3 xlsx_write_comments
    at xlsx-write.c line 1754
  • #4 xlsx_write_sheet
    at xlsx-write.c line 1796
  • #5 xlsx_write_workbook
    at xlsx-write.c line 1952
  • #6 xlsx_file_save
    at xlsx-write.c line 2053
  • #7 go_plugin_loader_module_func_file_save
    at go-plugin-loader-module.c line 323
  • #8 go_plugin_file_saver_save
    at go-plugin-service.c line 757
  • #9 go_file_saver_save
    at file.c line 705
  • #10 wbv_save_to_output
    at workbook-view.c line 1050
  • #11 wb_view_save_to_uri
    at workbook-view.c line 1087
  • #12 wb_view_save_as
    at workbook-view.c line 1123
  • #13 gui_file_save_as
    at gui-file.c line 577
  • #14 cb_file_save_as
    at wbc-gtk-actions.c line 104
  • #15 g_cclosure_marshal_VOID__VOID
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #16 g_closure_invoke
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
  • #17 ??
    from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0

I suspect that this is due to the fact that we are calling xlsx_write_rich_text
 with attrs=0x0
Comment 1 Andreas J. Guelzow 2011-06-16 05:34:48 UTC
Created attachment 190013 [details]
sample .gnumeric file
Comment 2 Andreas J. Guelzow 2011-06-16 19:21:18 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.