External Email - Use Caution
Hello
I notice a systematic segmentation fault with several function that use a .lta file (lta_convert or mri_vol2vol) This is due to a too long filename path in the .lta file : If I manually edit the .lta file and change the file_path associate to the line filename = manudally eddited
then the command runs
when the filename is longer than 255 this cause a segmentation fault
it seems to me that this ' filename= ' line is not used since I can change the value (for something wrong) and the reslice or convert function works properly. is that rigth
Would it be possible to fix this issue ?
I have also an other strange issue, even after the modification of the filename in the lta file I get an other segmentation fault with the command : mri_vol2vol this time I modify manually the .lta file to have a wrong but short filename
if I run :
mri_vol2vol --interp nearest --lta very_lon_path/reg.lta --mov very_long_path/vol.nii.gz --tarf very_long_path/voltarg.nii.gz -o very_long_path/vol_out.nii.gz
I get a segmentation fault
then If I change directory to be in the same dir as the lta file and make the exact same command but with relative path name for the lta file (ie : --lta reg.lta ) then it works.
lta_convert --all-info $Id: lta_convert.cpp,v 1.9.2.1 2016/08/09 02:33:22 zkaufman Exp $
ProgramName: lta_convert ProgramArguments: --all-info ProgramVersion: $Name: $ TimeStamp: 2018/09/13-12:11:39-GMT BuildTimeStamp: Jan 18 2017 16:38:58 CVS: $Id: lta_convert.cpp,v 1.9.2.1 2016/08/09 02:33:22 zkaufman Exp $ User: romain.valabregue Machine: icm-cenir-le03 Platform: Linux PlatformVersion: 4.4.0-104-generic CompilerName: GCC CompilerVersion: 40400
mri_vol2vol --all-info ProgramName: mri_vol2vol.bin ProgramArguments: --all-info ProgramVersion: $Name: $ TimeStamp: 2018/09/13-12:12:11-GMT BuildTimeStamp: Jan 18 2017 16:38:58 CVS: $Id: mri_vol2vol.c,v 1.88.2.1 2016/08/12 16:54:44 zkaufman Exp $ User: romain.valabregue Machine: icm-cenir-le03 Platform: Linux PlatformVersion: 4.4.0-104-generic CompilerName: GCC CompilerVersion: 40400
Thanks for your help
Romain