Re: [Spglib-users] Segmentation Fault with Fortran interface
Brought to you by:
atztogo
From: Atsushi T. <atz...@gm...> - 2014-12-15 05:50:00
|
Hi Navaneeth, Thank you for your report. Probably this happened because I changed the C-structure SpglibDataset. I updated the fortran wrapper and example to follow this change as attached. Best regards, Togo On Mon, Dec 15, 2014 at 5:17 AM, Navaneetha Krishnan <nav...@ca...> wrote: > 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 > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Spglib-users mailing list > Spg...@li... > https://lists.sourceforge.net/lists/listinfo/spglib-users > -- Atsushi Togo http://atztogo.github.com/ atz...@gm... |