SEGFAULT in Abinit 7.4.3  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
Sunny
Posts: 10
Joined: Thu Jan 31, 2013 4:25 pm

SEGFAULT in Abinit 7.4.3

Post by Sunny » Wed Oct 30, 2013 11:24 am

Hello!

I'm experiencing reproducible SEGFAULTS when using Abinit 7.4.3 compiled with ifort 14.0.0 to calculate the bandstructure and wavefunction of SnTe.

I did some tests, to check, where the error comes from:

Code: Select all

gfortran 4.8.2   + openmpi 1.6.5 : works perfectly
ifort 14.0.0.080 + openmpi 1.6.5 : SEGFAULT
ifort 13.0.0.079 + openmpi 1.6.2 : works perfectly

compiled with ifort 13.0.0.079 + openmpi 1.6.2 but
running with  ifort 14.0.0.080 + openmpi 1.6.5 : works perfectly


What should I do now?

Best regards,
Sunny

EDIT: I tried to triangulate the problem and noticed, that I can successfully calculate the bandstructure compiling with optimization level 1.

Code: Select all

./configure FC=mpif90 F77=mpif77 CC=mpicc CXX=mpicxx --enable-mpi --enable-mpi-io --with-linalg-flavor=mkl LIBS=-mkl prefix=$HOME --enable-optim CFLAGS_OPTIM="-O1" CXXFLAGS_OPTIM="-O1" FCFLAGS_OPTIM="-O1"


Compiling with optimization level 2 (here with added traceback flag)

Code: Select all

./configure FC=mpif90 F77=mpif77 CC=mpicc CXX=mpicxx --enable-mpi --enable-mpi-io --with-linalg-flavor=mkl LIBS=-mkl prefix=$HOME --enable-optim CFLAGS_OPTIM="-O2" CXXFLAGS_OPTIM="-O2" FCFLAGS_OPTIM="-O2" --enable-debug CFLAGS_DEBUG="-g -traceback" CXXFLAGS_DEBUG="-g -traceback" FCFLAGS_DEBUG="-g -traceback"


results in SEGFAULTS with the following backtrace for every process:

Code: Select all

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source
libirc.so          00002B5D01B641F9  Unknown               Unknown  Unknown
libirc.so          00002B5D01B62B70  Unknown               Unknown  Unknown
libifcore.so.5     00002B5D00E8EDDF  Unknown               Unknown  Unknown
libifcore.so.5     00002B5D00DF64CF  Unknown               Unknown  Unknown
libifcore.so.5     00002B5D00E07BC3  Unknown               Unknown  Unknown
libpthread.so.0    00002B5D01DBE7C0  Unknown               Unknown  Unknown
abinit             00000000017C1901  xcpbe_                    537  xcpbe.F90
abinit             0000000001790CC5  drivexc_                  429  drivexc.F90
abinit             00000000017656B8  rhohxc_                   713  rhohxc.F90
abinit             0000000000F3CA7A  setvtr_                   446  setvtr.F90
abinit             00000000005BB4BE  scfcv_                   1043  scfcv.F90
abinit             0000000000590A88  scfcv_new_                187  scfcv_new.F90
abinit             00000000005923AC  scfcv_new2_               138  scfcv_new2.F90
abinit             000000000053056B  gstate_                  1183  gstate.F90
abinit             000000000045860A  gstateimg_                421  gstateimg.F90
abinit             0000000000446C68  driver_                   653  driver.F90
abinit             000000000043D253  MAIN__                    440  abinit.F90
abinit             000000000043B486  Unknown               Unknown  Unknown
libc.so.6          00002B5D01FEAC36  Unknown               Unknown  Unknown
abinit             000000000043B379  Unknown               Unknown  Unknown

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: SEGFAULT in Abinit 7.4.3

Post by pouillon » Thu Oct 31, 2013 11:36 am

Intel compilers with 0 as minor version number are usually bug nests and should only be used for experimentation with Abinit, since it triggers most of their bugs. To solve this problem, you may do one or more of the following:
  • rebuild Abinit with an older and bugfixed version of Intel compilers;
  • wait for Intel 14.1 compilers;
  • ask Intel to include the build of Abinit in the test suite of their compilers;
  • switch to a more stable compiler, e.g. GCC 4.7 (or GCC 4.8 beginning next year).
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

User avatar
jbeuken
Posts: 365
Joined: Tue Aug 18, 2009 9:24 pm
Contact:

Re: SEGFAULT in Abinit 7.4.3  [SOLVED]

Post by jbeuken » Mon Jan 20, 2014 11:01 am

Hi,

some infos on the post : http://forum.abinit.org/viewtopic.php?f=2&t=2389#p7569

I hope it can help you

jmb
------
Jean-Michel Beuken
Computer Scientist

Locked