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 726163 - segfault with conditional formatting
segfault with conditional formatting
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Main System
git master
Other All
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2014-03-12 09:39 UTC by Tobias Berner
Modified: 2014-03-16 21:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backtrace (4.94 KB, application/octet-stream)
2014-03-12 09:39 UTC, Tobias Berner
Details

Description Tobias Berner 2014-03-12 09:39:51 UTC
Created attachment 271584 [details]
backtrace

I have a conditional formatting in a range of cells coloring them if they are empty using the formula: 'isblank(indirect(address(row(),column())))'

If I now enter some number in to a certain cell on the sheet gnumeric segfaults.
(The conditions seems to be not homogenous for some reason -- but this shouldn't matter).

I have a lot of 
** (gnumeric:12491): CRITICAL **: dependent_add_dynamic_dep: assertion `dep != NULL' failed
but no idea if they are related.


Linux tl11 3.8.0-36-generic #52~precise1-Ubuntu SMP Mon Feb 3 21:54:46 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

gnumeric version '1.10.17'
Comment 1 Morten Welinder 2014-03-12 15:09:09 UTC
Confirmed.

That should work as-is, but is there a reason why you are using such a crazy
expression?  If the cell in question is C5, you should be able to enter
ISBLANK(C5) as the expression.
Comment 2 Morten Welinder 2014-03-12 15:19:27 UTC
Let me rephrase that: I can confirm the CRITICALs, not the actual crash.
Understanding and fixing the CRITICALs should take care of the cause of
the crash too.

1.10.17 was a *long* time ago, so there are tons of reasons why the crash
might not happen for me.
Comment 3 Morten Welinder 2014-03-12 19:55:57 UTC
No valgrind events.  This is the first critical.  The function being
called up at #3 is isblank.


  • #0 g_log
    from /usr/lib64/libglib-2.0.so.0
  • #1 dependent_add_dynamic_dep
    at dependent.c line 1445
  • #2 gnm_expr_eval
    at expr.c line 1458
  • #3 function_call_with_exprs
    at func.c line 1858
  • #4 gnm_expr_eval
    at expr.c line 1453
  • #5 gnm_expr_top_eval
    at expr.c line 3112
  • #6 gnm_style_conditions_eval
    at style-conditions.c line 539
  • #7 style_row
    at sheet-style.c line 1534
  • #8 get_style_row
    at sheet-style.c line 1615
  • #9 get_style_row
    at sheet-style.c line 1623
  • #10 get_style_row
    at sheet-style.c line 1623
  • #11 get_style_row
    at sheet-style.c line 1623
  • #12 sheet_style_get_row
    at sheet-style.c line 1650
  • #13 item_grid_draw_region
    at item-grid.c line 587

Comment 4 Morten Welinder 2014-03-16 21:10:36 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.