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 557682 - randdiscrete crash
randdiscrete crash
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Analytics
git master
Other All
: Normal critical
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-10-24 00:25 UTC by sum1
Modified: 2008-10-24 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tsv file (176 bytes, text/plain)
2008-10-24 00:26 UTC, sum1
Details

Description sum1 2008-10-24 00:25:57 UTC
Version: r16920
OS: Ubuntu Hardy

Steps to reproduce:
- ssconvert upcoming_attachment.tsv /tmp/foo.txt


Backtrace:

Program received signal SIGSEGV, Segmentation fault.

Thread 3061352224 (LWP 24048)

  • #0 go_range_sum
    at go-rangefunc.c line 49
  • #1 gnumeric_randdiscrete
    at functions.c line 211
  • #2 function_call_with_exprs
    at func.c line 1247
  • #3 gnm_expr_eval
    at expr.c line 1339
  • #4 gnm_expr_top_eval
    at expr.c line 2858
  • #5 gnm_cell_eval_content
    at dependent.c line 1455
  • #6 cb_iterate_cellrange
    at func.c line 1346
  • #7 sheet_foreach_cell_in_range
    at sheet.c line 3073
  • #8 workbook_foreach_cell_in_range
    at workbook.c line 485
  • #9 function_iterate_do_value
    at func.c line 1411
  • #10 function_iterate_argument_values
    at func.c line 1515
  • #11 collect_floats
    at collect.c line 185
  • #12 collect_floats_value
    at collect.c line 224
  • #13 gnumeric_logest
    at functions.c line 4696
  • #14 function_call_with_exprs
    at func.c line 1247
  • #15 gnm_expr_eval
    at expr.c line 1339
  • #16 gnm_expr_top_eval
    at expr.c line 2858
  • #17 gnm_cell_eval_content
    at dependent.c line 1455
  • #18 dependent_eval
    at dependent.c line 1551
  • #19 workbook_recalc
    at dependent.c line 2587
  • #20 workbook_recalc_all
    at dependent.c line 2619
  • #21 stf_read_workbook_auto_csvtab
    at stf.c line 376
  • #22 go_file_opener_open_real
    at file.c line 83
  • #23 go_file_opener_open
    at file.c line 299
  • #24 wb_view_new_from_input
    at workbook-view.c line 1229
  • #25 wb_view_new_from_uri
    at workbook-view.c line 1283
  • #26 convert
    at ssconvert.c line 290
  • #27 main
    at ssconvert.c line 396

Comment 1 sum1 2008-10-24 00:26:50 UTC
Created attachment 121231 [details]
tsv file
Comment 2 Jean Bréfort 2008-10-24 05:49:22 UTC
the go_range_* functions don't test if the array is NULL or not, should they?
Otherwise this can be fixed by testing rd.prob in gnumeric_randdiscrete and return an error if NULL.
Comment 3 Morten Welinder 2008-10-24 13:10:25 UTC
The randdiscrete code is absurd.  It should look somewhat like gnumeric_sumx2py2.
Comment 4 Morten Welinder 2008-10-24 13:44:17 UTC
> the go_range_* functions don't test if the array is NULL or not, should they?

No need for that.
Comment 5 Morten Welinder 2008-10-24 14:28:44 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.