BUG: overflow_error with ibeta_derivative not throwing an exception
See original GitHub issueDescribe your issue.
Similar to https://github.com/scipy/scipy/issues/14606, I’m getting a boost overflow error. Unfortunaterly the bug is quite hard to pinpoint as the codebase I’m working on is big and complex (and believe me, I tried). See below for the error message.
Reproducing Code Example
I’m running scipy 1.8.0.dev0+1704.ff34402 installed from Anaconda’s pypi repo (https://anaconda.org/scipy-wheels-nightly/scipy). I installed the nightly. I believe the version of Scipy I’m running should contain https://github.com/scipy/scipy/pull/14618.
I knew it was a long shot, but I had hoped this version would wrap the boost error into a Python exception. No luck there, it looks like overflow_error
is not caught.
I confirm that I also get this error with scipy 1.7.0 and 1.7.1, but not with versions <1.7.0 (so before boost libraries were vendored by scipy).
Error message
terminate called after throwing an instance of 'boost::wrapexcept<std::overflow_error>'
what(): Error in function ibeta_derivative<double>(double,double,double): Overflow Error
SciPy/NumPy/Python version information
1.8.0.dev0+1704.ff34402 1.19.4 sys.version_info(major=3, minor=8, micro=11, releaselevel='final', serial=0)
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (2 by maintainers)
Yes, I can look at this in the next few days. Even without a reproducer we can at least get a fix in and hopefully you can help us track down the offending distribution once it’s caught
Apologies for the delay in getting this fix ready. @JPFrancoia can you pull the fix and see if it raises the exception correctly in your program?