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 643808 - Graph-related crash on xltx load
Graph-related crash on xltx load
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other All
: Normal critical
: ---
Assigned To: Jean Bréfort
Jody Goldberg
: 643979 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-03-03 18:44 UTC by Morten Welinder
Modified: 2011-03-06 05:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2011-03-03 18:44:59 UTC
http://www.autoobserver.com/car-data-center/assets/2011-03%20Sales.xlsx

...
** (/home/welinder/gnome-src/gnumeric/src/.libs/gnumeric:4193): CRITICAL **: gog_object_get_id: assertion `GOG_IS_OBJECT (obj)' failed
lookup '0'
...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a4a1cd in value_peek_string (v=0x2a85360) at value.c:981
981			return v->v_err.mesg->str;
(gdb) p *v
$1 = {type = VALUE_STRING, v_any = {type = VALUE_STRING, fmt = 0x0}, v_bool = {
    type = VALUE_STRING, fmt = 0x0, val = 0}, v_float = {type = VALUE_STRING, 
    fmt = 0x0, val = 0}, v_err = {type = VALUE_STRING, fmt = 0x0, mesg = 0x0}, 
  v_str = {type = VALUE_STRING, fmt = 0x0, val = 0x0}, v_range = {type = 
    VALUE_STRING, fmt = 0x0, cell = {a = {sheet = 0x0, col = -196933296, row = 
    32767, col_relative = 16 '\020', row_relative = 106 'j'}, b = {sheet = 
    0x2a68720, col = 44585600, row = 0, col_relative = 80 'P', row_relative = 
    9 '\t'}}}, v_array = {type = VALUE_STRING, fmt = 0x0, x = 0, y = 0, vals = 
    0x7ffff4430950}}
(gdb) p v->v_str
$2 = {type = VALUE_STRING, fmt = 0x0, val = 0x0}

Note: I assume that line 981 really just means that gcc merged the error
and string branches.
Comment 1 Morten Welinder 2011-03-03 19:09:12 UTC
New preconditions avoid the crash.  The problem is...

  • #0 g_log
    from /usr/lib64/libglib-2.0.so.0
  • #1 value_new_string_str
    at value.c line 233
  • #2 xlsx_chart_text
    at xlsx-read.c line 1671
  • #3 gsf_xml_in_end_element
    at gsf-libxml.c line 803

Comment 2 Morten Welinder 2011-03-03 20:19:52 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 3 Jean Bréfort 2011-03-06 05:13:27 UTC
*** Bug 643979 has been marked as a duplicate of this bug. ***