You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that this segfault often occurs when reading the array member of fpm.toml, sometimes this toml array member is not provided, so that the allocatable array is not allocated, but we think it is allocated, the reason may be that the get_list routine is not reasonable enough,(?) I think when the toml array is accessed, even if the toml array doesn't exist, changes need to be made for the allocatable array, such as allocate(array(0)) or a judgment on the result of the toml read.
Description
fpm
built in release mode will segfault when it encounters the followingfpm.toml
macro definition:After debugging, I found that the segfault appears at:
fpm/src/fpm.f90
Line 119 in e2a8218
Because macros are not actually allocated, but are accessed, a segmentation fault occurs.
Expected Behaviour
fpm
works fine.Version of fpm
latest commit, e2a8218
Platform and Architecture
Windows
Additional Information
I found that this segfault often occurs when reading the array member of
fpm.toml
, sometimes this toml array member is not provided, so that theallocatable
array is not allocated, but we think it is allocated, the reason may be that theget_list
routine is not reasonable enough,(?) I think when the toml array is accessed, even if the toml array doesn't exist, changes need to be made for theallocatable
array, such asallocate(array(0))
or a judgment on the result of the toml read.Links
fpm/src/fpm/toml.f90
Line 69 in e2a8218
fpm/src/fpm/manifest/preprocess.f90
Line 69 in e2a8218
The text was updated successfully, but these errors were encountered: