GNOME Bugzilla – Bug 533515
r.qpois() hang
Last modified: 2008-05-17 22:20:13 UTC
Version: r16575 OS: Ubuntu Hardy Steps to reproduce: - Enter '=r.qpois(-1,-1.5,-1.0%,-1.0%)' (no quotes) into A1 Backtrace:
+ Trace 197931
when lambda is negative or nul, the function must return an error. It works fine when logp is FALSE or if the first argument is positive, but enters an infinite loop otherwise. The easy solution is to check that lambda is positive in gnumeric_r_qpois.
Created attachment 111049 [details] [review] check lambda value and fixes the issue
Created attachment 111053 [details] [review] removed an extra line accidently left in the patch
I have this under control. We need to fix this in mathfunc.c and there are a few other problems.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.