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 553047 - Uninitialized value used in gnumeric_networkdays
Uninitialized value used in gnumeric_networkdays
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Analytics
git master
Other All
: Normal normal
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-09-20 20:09 UTC by sum1
Modified: 2008-09-20 23:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sum1 2008-09-20 20:09:27 UTC
Version: r16813
OS: Ubuntu Hardy

Steps to reproduce:
- In A1, enter "=networkdays(,)" (no quotes)


Valgrind output:

==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x4146D34: value_new_float (value.c:106)
==19469==    by 0x4146D02: value_new_int (value.c:100)
==19469==    by 0x80035AD: gnumeric_networkdays (functions.c:1258)
==19469==    by 0x40AF713: function_call_with_exprs (func.c:1247)
==19469==    by 0x40A3E1F: gnm_expr_eval (expr.c:1339)
==19469==    by 0x40A75D0: gnm_expr_top_eval (expr.c:2858)
==19469==    by 0x409D2AC: gnm_cell_eval_content (dependent.c:1455)
==19469==    by 0x40FA936: gnm_rendered_value_new (rendered-value.c:210)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x45C3FFA: go_format_value_gstring (go-format.c:3123)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
==19469==    by 0x41034FA: sheet_cell_calc_span (sheet.c:1110)
==19469==    by 0x4105AC3: sheet_cell_set_text (sheet.c:2152)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x462DD79: go_add_epsilon (go-math.c:200)
==19469==    by 0x45C198B: go_format_execute (go-format.c:2200)
==19469==    by 0x45C4081: go_format_value_gstring (go-format.c:3132)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x462DD87: go_add_epsilon (go-math.c:200)
==19469==    by 0x45C198B: go_format_execute (go-format.c:2200)
==19469==    by 0x45C4081: go_format_value_gstring (go-format.c:3132)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x462DD89: go_add_epsilon (go-math.c:200)
==19469==    by 0x45C198B: go_format_execute (go-format.c:2200)
==19469==    by 0x45C4081: go_format_value_gstring (go-format.c:3132)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x45C372A: go_render_general (go-format.c:2922)
==19469==    by 0x45C3503: go_format_execute (go-format.c:2808)
==19469==    by 0x45C4081: go_format_value_gstring (go-format.c:3132)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
==19469== 
==19469== Conditional jump or move depends on uninitialised value(s)
==19469==    at 0x45C372C: go_render_general (go-format.c:2922)
==19469==    by 0x45C3503: go_format_execute (go-format.c:2808)
==19469==    by 0x45C4081: go_format_value_gstring (go-format.c:3132)
==19469==    by 0x40B1491: format_value_common (gnm-format.c:117)
==19469==    by 0x40B157D: gnm_format_layout (gnm-format.c:151)
==19469==    by 0x40FB1BF: gnm_rendered_value_new (rendered-value.c:407)
==19469==    by 0x407CB18: gnm_cell_render_value (cell.c:469)
==19469==    by 0x407E6C3: row_calc_spans (cellspan.c:411)
==19469==    by 0x4105D38: sheet_range_bounding_box (sheet.c:2258)
==19469==    by 0x4110F40: scg_redraw_range (sheet-control-gui.c:147)
==19469==    by 0x4110244: sc_redraw_range (sheet-control.c:89)
==19469==    by 0x4103243: sheet_redraw_partial_row (sheet.c:1018)
Comment 1 Morten Welinder 2008-09-20 23:59:10 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.

(No-one should be proud of that code.)