Segfault when linking with Wannier90
Segfault when linking with Wannier90
Hi,
I am running ABINIT v.7.8.2 on my MacBookPro (from around 2011), running OS 10.6.8 (snow leopard). I would like to link ABINIT with Wannier90 and I have installed ABINIT with Wannier90. However, when I run the first part of the Wannier90 tutorial provided on the ABINIT website, the job is interrupted by a segfault. I've attached the log file for the job.
I brought up this issue in a different section of the forum (viewtopic.php?f=3&t=2854) and was directed here.
Do you know what might be causing this segfault?
Thanks!
~Ellen
I am running ABINIT v.7.8.2 on my MacBookPro (from around 2011), running OS 10.6.8 (snow leopard). I would like to link ABINIT with Wannier90 and I have installed ABINIT with Wannier90. However, when I run the first part of the Wannier90 tutorial provided on the ABINIT website, the job is interrupted by a segfault. I've attached the log file for the job.
I brought up this issue in a different section of the forum (viewtopic.php?f=3&t=2854) and was directed here.
Do you know what might be causing this segfault?
Thanks!
~Ellen
- Attachments
-
log1.log
- (56.28 KiB) Downloaded 477 times
Re: Segfault when linking with Wannier90
You should recompile abinit using some debug flags to see where the segfault happens inside abinit and check that the problem is not related to an optimization
Add in you *.ac file or on you ./configure command ligne FCFLAGS_EXTRA="-g -O0 -fbacktrace" and compile the whole code.
Run again the tutorial and post here the log file.
Jordan
Add in you *.ac file or on you ./configure command ligne FCFLAGS_EXTRA="-g -O0 -fbacktrace" and compile the whole code.
Run again the tutorial and post here the log file.
Jordan
Re: Segfault when linking with Wannier90
I've added that line to my config file and recompiled. I've attached the log file from running the first part of the Wannier90 tutorial.
For reference, this is my config file:
Thanks,
Ellen
For reference, this is my config file:
Code: Select all
with_trio_flavor="netcdf+etsf_io"
with_etsf_io_incs="-I/opt/local/include/gcc"
with_netcdf_incs="-I/opt/local/include"
with_netcdf_libs="-L/opt/local/lib -lnetcdf -lnetcdff"
with_linalg_flavor="atlas"
with_linalg_incs="-I/opt/local/include"
with_linalg_libs="-L/opt/local/lib -llapack -lf77blas -lcblas -latlas"
with_dft_flavor="libxc+wannier90"
with_libxc_incs="-I/opt/etsf/include"
with_libxc_libs="-L/opt/etsf/lib -lxc -lxcf90"
enable_clib="yes"
CC=/opt/local/bin/gcc-mp-4.8
CPP=/opt/local/bin/cpp-mp-4.8
FC=/opt/local/bin/gfortran-mp-4.8
FCCPP=/opt/local/bin/cpp-mp-4.8
FCFLAGS_EXTRA="-g -O0 -fbacktrace"
enable_shared
enable_optim="safe"
Thanks,
Ellen
- Attachments
-
wannier90.log
- (56.28 KiB) Downloaded 447 times
Re: Segfault when linking with Wannier90
Have you "make clean" before recompiling ?
The backtrace is still missing debug information.
The crash happens during the reading of the density so I don't think it is related to wannier90 but might be triggered in the case of this tutorial.
Please recompile and make sure that at the beginning of your log file you don't have "-O3" for FCFLAGS in the Compiler suite build information but "-O0 -g -fbacktrace"
The end of you file should look something like
#0 0x7F3660E477D7
#1 0x1248440 in show_backtrace at m_errors.F90:951
#2 0x964EE6 in mlwfovlp_seedname_ at mlwfovlp_seedname.F90:110
#3 0x94E84B in mlwfovlp_ at mlwfovlp.F90:210
#4 0x4F461E in outscfcv_ at outscfcv.F90:309
#5 0x4DAB7B in scfcv_ at scfcv.F90:1924
(Note the name of the function and line that you don't have)
Jordan
The backtrace is still missing debug information.
The crash happens during the reading of the density so I don't think it is related to wannier90 but might be triggered in the case of this tutorial.
Please recompile and make sure that at the beginning of your log file you don't have "-O3" for FCFLAGS in the Compiler suite build information but "-O0 -g -fbacktrace"
The end of you file should look something like
#0 0x7F3660E477D7
#1 0x1248440 in show_backtrace at m_errors.F90:951
#2 0x964EE6 in mlwfovlp_seedname_ at mlwfovlp_seedname.F90:110
#3 0x94E84B in mlwfovlp_ at mlwfovlp.F90:210
#4 0x4F461E in outscfcv_ at outscfcv.F90:309
#5 0x4DAB7B in scfcv_ at scfcv.F90:1924
(Note the name of the function and line that you don't have)
Jordan
Trouble linking with Wannier90
Hello I am using abinit 7.10.2. When I am running wannier 90 programs, It is showing following error.
prtwant==2 is only relevant if wannier90 library is linked
Action: check compilation options,
I am not getting how it is to be compiled. I am attaching here my configuration log file which is showing wannier90 enabled.
prtwant==2 is only relevant if wannier90 library is linked
Action: check compilation options,
I am not getting how it is to be compiled. I am attaching here my configuration log file which is showing wannier90 enabled.
- Attachments
-
config.log
- (158.66 KiB) Downloaded 419 times
Re: Segfault when linking with Wannier90
Hi,
Your configuration file looks fine.
You do have
#define HAVE_DFT_WANNIER90 1
in it so Wannier90 is activated.
Are you sure you run the abinit executable compiled with Wannier90 and not an other version ?
Or if you rebuilt abinit on a previous build, did you "make clean" before "make" ?
Jordan
Your configuration file looks fine.
You do have
#define HAVE_DFT_WANNIER90 1
in it so Wannier90 is activated.
Are you sure you run the abinit executable compiled with Wannier90 and not an other version ?
Or if you rebuilt abinit on a previous build, did you "make clean" before "make" ?
Jordan
Re: Segfault when linking with Wannier90
No its new and I have installed it afresh.
Re: Segfault when linking with Wannier90
I don't know if this is relevant to you, but I found out that both abinit wannier90 fallback and newer wannier90 (v2.0.0 and v2.0.1) compiled from sources will result in segmentation error with abinit v7.10.4.
I overcame it by compiling wannier90 v1.2 from sources and then linking it with abinit.
I overcame it by compiling wannier90 v1.2 from sources and then linking it with abinit.
Re: Segfault when linking with Wannier90
Abinit 7.10 is indeed compatible with Wannier90 1.2 only. To my knowledge, there is no current plan to support Wannier90 2.0.
I updated the Wannier90 1.2 fallback for Abinit 8, which should solve the segfault issue.
I updated the Wannier90 1.2 fallback for Abinit 8, which should solve the segfault issue.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain
Simune Atomistics
Donostia-San Sebastián, Spain