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 150530 - Insert comment - save - crash
Insert comment - save - crash
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 150839 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-08-19 10:46 UTC by Jon Kåre Hellan
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jon Kåre Hellan 2004-08-19 10:46:30 UTC
New gnumeric. Insert a comment in A1. Save. It segfaults.

(gdb) bt
  • #0 gsf_xml_out_add_cstr
    at gsf-libxml.c line 893
  • #1 cell_comment_write_xml_sax
    at sheet-object-cell-comment.c line 246
  • #2 xml_write_objects
    at xml-sax-write.c line 1008
  • #3 xml_write_sheet
    at xml-sax-write.c line 1060

Comment 1 Andreas J. Guelzow 2004-08-19 13:14:28 UTC
In which format are you saving, which comment are you inserting? (I can't
replicate this problem.)
Comment 2 Jon Kåre Hellan 2004-08-19 13:19:54 UTC
Saving with the SAX exporter. That's important.
Author is NULL. The old exporter would call xmlSetProp with value NULL, libxml2
simply ignores that. gsf_xml_out_add_cstr crashes on NULL values.

Reassign to libgsf?
Comment 3 Morten Welinder 2004-08-23 18:05:44 UTC
*** Bug 150839 has been marked as a duplicate of this bug. ***
Comment 4 Jody Goldberg 2004-08-24 04:54:09 UTC
Patched in gsf, with a gnumeric work around to avoid requiring cvs gsf