tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 55 forks source link

Fortran xrlexample3.f90 segfaults with Intel Fortran compiler #1

Closed tschoonj closed 11 years ago

tschoonj commented 13 years ago

Description: when running "make check" after the compilation stage with the Intel Fortran compiler selected, a segmentation fault occurs at runtime. It appears to be associated with the DEALLOCATE call at line 50, most likely because the memory was allocated with malloc, but the Intel DEALLOCATE does not call the libc free.

Until a fix is written, if you intend to use the CompoundParser function, avoid using the Intel Fortran compiler. GFortran and g95 appear to have no problem with this function.

tschoonj commented 13 years ago

Appears to be no longer a problem when using intel fortran 12.0 It'll still need a fix though

tschoonj commented 11 years ago

Closed with commit b499145f4d5225808c429cc8a3a7ee2d6e7ee935