Closed johandweber closed 1 month ago
It appears to happen at
if(present(optional_file_path)) then
file_path=optional_file_path
end if
I do not know why it enters the if construct. optional_file-path is not set in rect_test.f90.
Weird it works fine on my side, I will test it more later.
Maybe a compiler bug. The problem does not occur when using Intel Fortran. I'll check with gfortran 14.
The problem also occurs for gfortran 14.1.
I still cant reproduce the segfault (I use gfortran mainly too). have you tried deleting the build cache?
fpm clean and deleting the build directory does not change the behavior for me.
But maybe you should currently not invest too much time in fixing a bug that does not occur for you.
I removed the related tests, and I think I'm going to handle the directories differently, so i am closing this issue.
Now there are no longer segmentation fauls.
When performing
fpm test
i get segementation faults for the tests circle.90 and rect.f90.
My compiler is gfortran 13.2 ( Linux x64).
Here is a backtrace:
So it appears to be connected with fig_save_to_ppm_file.