-
Notifications
You must be signed in to change notification settings - Fork 442
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
Segfault in ./EIG/xeigtstz #335
Comments
Seems to be a duplicate of #276 . |
gfortran9 flags an out-of-bounds access in (among others) TESTING/EIG/zhet21.f line 304 (do loop on J running from 1 to N-1, accessing array element U(1,J-1) ...ouch). Not sure if this is the actual and only cause of this issue yet though... |
setting |
Same issue here #85. |
The go-to solution for this issue has been to increase the stack limit but since this is a test, would heap allocation not be a better solution? |
I believe it is allocatable arrays that end up on the stack due to the 'recursive' option (required for thread safety) but I have not yet managed to find a working solution. |
@weslleyspereira will try to only compile zchkee.f without the -frecursive option. So all files (in particular liblapack.a) will be compiled using the -frecursive option, but zchkee.f will be compiled without the -frecursive option. We think/hope that'll do the trick. We will test. I think it is important to compile LAPACK with -frecursive. Now zchkee.f can be compiled without. That'll be just fine. CMake and make will look a little uglier. I think we are long overdue for a new test suite, so we suggest that we do it ugly for now, and focus on a new test suite. |
Worked for me as long as I did not also use OpenMP, but the latter unfortunately implies -frecursive |
Ah. Yes, that's a potential problem.
Ah, good idea. No idea how the filter_out in Makefile works. Worse investigating. Thanks for the tip. |
TESTING/EIG/Makefile, after the
for cmake it would be something like |
Thanks @martin-frbg! I will test it now |
Hi,
this is with Lapack 3.8.0.
A segfault occurs in xeigtstz with lapack 3.8.0 and recent gfortran:
./EIG/xeigtstz < nep.in > znep.out 2>&1
/bin/sh: Zeile 1: 9026 Speicherzugriffsfehler (Speicherabzug geschrieben) ./EIG/xeigtstz < nep.in > znep.out 2>&1
This goes away when the stack limit is raised from the default of 8192 kb to 81920 kb (the
first value I tried).
The text was updated successfully, but these errors were encountered: