[Pw_forum] segmentation fault in local.f90 line 228 PWCOND version 4.3.2
Xiaoguang Zhang
xgz at ornl.gov
Tue Feb 7 17:17:09 CET 2012
Finally got the code to flag the array bound problem:
Subscript #2 of the array VPPOTL has value 2161 which is greater than
the upper bound of 1600
but I checked, nrx=54, nry=54, and nrx*nry=2916 so I don't understand
why the upper bound is only 1600
On 02/03/2012 02:28 PM, Xiaoguang Zhang wrote:
> pwcond.x crashes when it is trying to access vppot(1,2161,1,1) while
> calculating the eigenvalues for the left lead. I inserted a print
> statement in local.f90 and verified that this is the element that caused
> the crash. After inserting these lines:
> *** 213,218 ****
> --- 213,220 ----
> !
> ! set and solve the eigenvalue equation for each slab
> !
> + print *, nrz,nrx*nry,npol
> + print *, vppot(1,2161,1,1)
> DO WHILE(kin.LE.kfin)
>
> amat=(0.d0,0.d0)
> the program crashed at the print statement with the last output
> 20 2916 1
> which are nrz, nrx*nry, npol. There is no reason for it to crash.
>
> Full error message below:
> ../../espresso-4.3.2/bin/pwcond.x< Alwirebig.cond.in> Alwirebig.cond.out
> forrtl: severe (174): SIGSEGV, segmentation fault occurred
> Image PC Routine Line
> Source
> pwcond.x 0000000000432BEF local_1_ 228
> local.f90
> pwcond.x 000000000042FAA9 local_ 71
> local.f90
> pwcond.x 00000000004161FC do_cond_ 421
> do_cond.f90
> pwcond.x 000000000041130C MAIN__ 20
> condmain.f90
> pwcond.x 0000000000403922 Unknown Unknown Unknown
> libc.so.6 0000002A9580F4CB Unknown Unknown Unknown
> pwcond.x 000000000040386A Unknown Unknown Unknown
> _______________________________________________
> Pw_forum mailing list
> Pw_forum at pwscf.org
> http://www.democritos.it/mailman/listinfo/pw_forum
More information about the users
mailing list