[Spglib-users] Segmentation Fault with Fortran interface
Brought to you by:
atztogo
From: Navaneetha K. <nav...@ca...> - 2014-12-14 20:17:39
|
Hi everyone, I am trying to use spglib library; I am unable to execute the Fortran example in the example folder. I have been getting segmentation faults and they point to line 403 in spglib_f08.f90 in the debugger. "dset % wyckoffs = wyckoffs" If I comment out lines 393, 394, 398, 399, 403 and 404 (all lines involving assignment and reassignments of pointers wyckoffs and equivalent_atoms) in the file spglib_f08.f90, the code seems to execute completely without error. However, since I don't know a lot about the algorithm and the implementation, I don't want to risk using this interface by commenting out those lines. I executed the ruby script in tests folder and that worked fine. I am using gcc 4.9.2 and gfortran 4.9.2 to compile the library and the example code. I have tried using this library with ubuntu and redhat systems with different gcc compilers and they all seem to fail with this example. Since the problem seems to be with a pointer assignment, I wondering if there is any major memory leak/wrong memory access that I am unable to see. It would be great if someone can address this issue soon. Thanks, - Navaneeth Caltech |