-
Notifications
You must be signed in to change notification settings - Fork 466
TSQR tests fail when compiled with -fcheck=bounds #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I observed the same error here.
|
Besides solving the failure of that specific test, i think it would be great to have bounds checks in the unit tests that run in the ci. Maybe a special testing target in cmake or something? |
Hi @thijssteel, (1) yes, bound checks in the travis continuous integration would be terrific. (2) I am not sure how to enable this. Julien. |
The most convenient method is probably via environment variables, e.g., --- .travis.yml 2021-02-12 17:05:07.904837210 +0100
+++ my-travis.yml 2021-02-12 17:05:47.672775138 +0100
@@ -14,6 +14,8 @@
matrix:
include:
- os: linux
+ env: CMAKE_BUILD_TYPE=Debug FFLAGS='-fbounds-check'
+ - os: linux
env: CMAKE_BUILD_TYPE=Release
- os: linux
env: CMAKE_BUILD_TYPE=Coverage |
Failing tests due to this problem:
|
Just spoke off line with @weslleyspereira, here what we would like to do (1) we want to add a target in Travis that will track the problem with "out of bounds" as suggested by @christoph-conrads (2) but we want to add such a test only after fixing the actual "out of bounds" problems we already have in the code. I understand that @scr2016 is looking into the TSQR "out of bounds" problem. @weslleyspereira and I suggest that we wait on @scr2016 before editing our Travis' target. |
There is a bunch of trivial bounds errors in the tests that are already reported at the
|
I don't want to offend anyone, but wouldn't it be better to just revert those couple of commits and make a PR? Its clear that they would have benefitted from a few reviews. |
Ah, those were the things that landed straight on master... guess I should open a new issue for "my" finds, it just looked convenient to put them here as "related". |
ah, those tests you just reported are not related to the Householder reconstruction routines. |
Indeed not, must be fairly old - I just chanced onto them with a |
Hi @thijssteel. Could you please provide the hash codes for the commits? I would like to participate in this discussion. :) |
Thanks @thijssteel! I saw the commits |
….f for bug Reference-LAPACK#481 (FFLAGS = -O0 -frecursive -ggdb3 -fcheck=bounds The TSQR tests fail, array index out of bounds)
….f for bug Reference-LAPACK#481 (FFLAGS = -O0 -frecursive -ggdb3 -fcheck=bounds The TSQR tests fail, array index out of bounds)
Uh oh!
There was an error while loading. Please reload this page.
On my machine, the tests all pass when using cmake and ctest.
However, with the following line in my
make.inc
:FFLAGS = -O0 -frecursive -ggdb3 -fcheck=bounds
The TSQR tests fail.
Specifically, this line goes out of bounds. It seems like it could be an actual bug.
If
KNB = N - KB + 1
, thenA( KB+KNB, KB) = A( N + 1, KB )
which might be out of bounds.The text was updated successfully, but these errors were encountered: