| Summary: | testFuncMDETERM fails due to floating point calculations | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | librenedine |
| Component: | Calc | Assignee: | Eike Rathke <erack> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | aron.budea, dtardon, erack, h3734236, ilmari.lauhakangas, vmiklos |
| Priority: | medium | Keywords: | patch |
| Version: | 5.1.2.2 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | target:5.2.0 target:5.1.4 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Possible patch using a fuzzy test for zero | ||
|
Description
librenedine
2016-05-08 13:50:29 UTC
Miklós, I remember you having a discussion on IRC about this piece of code earlier today (not about this exact change). What's your take on the suggestion? I very much doubt that Miklos is interested in calc issues. Normally I would agree with this patch but it seems that Eike changed the code back after sberg implemented a similar patch. @Eike: Is there any reason why we should not use a 1e-15 or 1e-14 tolerance for the check. The reason I did it that way probably was that the determinant for the specific matrix set SHOULD be 0.0 even with our LU decomposition, and so far WAS, except for the 32 bit case and now librenedine's case. Which is odd. Btw, what system still uses gcc 4.8.5? Even Debian Jessie has 4.9.2 ... So, I'm not against a general error margin of 10e-12, which we also use at other places, if this helps to build. I'm just sad we have to lower the bar to cater for inferior systems ;-) Oh and I changed the original tolerance of 8140309d636d4a870875f2dd75ed3dfff2c0fbaf because 10e-4 wouldn't detect anything wrong in this case.. I think I'll go with 10e-14 here. Seeing bug 32834 even lowering to 10e-14 would be nonsense because the original complaint was about -9.51712667007776E-016 @librenedine: so what makes your system so special? Anything we could detect without effectively disabling the test? This causes build failures of Fedora 24/Rawhide on aarch64, ppc64* and s390x. Using 1e-12 delta makes the pass at least on ppc64le. Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b35b601d9e3b43eaedb8576b70d10b657f625d6e Resolves: tdf#99730 lower the barrier for inferior systems, cripple the test It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Pending review https://gerrit.libreoffice.org/24971 for 5-1 Eike Rathke committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=1d2091b91e91b50eb98f41c7659746a47cb70c73&h=libreoffice-5-1 Resolves: tdf#99730 lower the barrier for inferior systems, cripple the test It will be available in 5.1.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Eike Rathke wrote:
> @librenedine: so what makes your system so special? Anything we could detect
> without effectively disabling the test?
Honestly I don't know what's so special about my system.
If it helps, I can run the compilation again with a different compiler version and with different Linux OSs.
This might take some time, though. But I hope I can post some results at the beginning of next week.
|