segmentation fault in otbcli_TrainImagesClassifier
Description
segmentation fault
Steps to reproduce
$ /home/rashad/projects/otb/build/bin/otbApplicationLauncherCommandLine TrainImagesClassifier /home/rashad/projects/otb/build/lib/otb/applications -classifier "libsvm" -classifier.libsvm.c "1.0" -classifier.libsvm.k "linear" -classifier.libsvm.m "csvc" -classifier.libsvm.nu "0.5" -cleanup "True" -io.confmatout "/tmp/confmat.txt" -io.il "/home/rashad/data/qgis/learning/QB_2_ortho.tif" "/home/rashad/data/qgis/learning/QB_3_ortho.tif" "/home/rashad/data/qgis/learning/QB_1_ortho.tif" -io.imstat "/home/rashad/data/qgis/learning/clImageStatisticsQB123.xml" -io.out "/tmp/svm.txt" -io.vd "/home/rashad/data/qgis/learning/VectorData_QB1.shp" "/home/rashad/data/qgis/learning/VectorData_QB2.shp" "/home/rashad/data/qgis/learning/VectorData_QB3.shp" -sample.bm "1.0" -sample.mt "1000.0" -sample.mv "1000.0" -sample.vfn "Class" -sample.vtr "0.5"
2018-05-04 12:26:40 (INFO): Default RAM limit for OTB is 128 MB
2018-05-04 12:26:40 (INFO): GDAL maximum cache size is 402 MB
2018-05-04 12:26:40 (INFO): OTB will use at most 4 threads
2018-05-04 12:26:41 (INFO): No kwl metadata found in file /home/rashad/data/qgis/learning/QB_2_ortho.tif
2018-05-04 12:26:41 (INFO): No kwl metadata found in file /home/rashad/data/qgis/learning/QB_3_ortho.tif
2018-05-04 12:26:41 (INFO): No kwl metadata found in file /home/rashad/data/qgis/learning/QB_1_ortho.tif
2018-05-04 12:26:41 (INFO): Polygon analysis...
2018-05-04 12:26:41 (INFO): Elevation management: setting default height above ellipsoid to 0 meters
2018-05-04 12:26:41 (INFO): Reprojecting input vectors...
2018-05-04 12:26:41 (INFO): Estimated memory for full processing: 7.84741MB (avail.: 128 MB), optimal image partitioning: 1 blocks
2018-05-04 12:26:41 (INFO): Estimation will be performed in 1 blocks of 512x512 pixels
Analyze polygons...: 100% [**************************************************] (0 seconds)
2018-05-04 12:26:41 (INFO): Polygon analysis...
2018-05-04 12:26:41 (INFO): Elevation management: setting default height above ellipsoid to 0 meters
2018-05-04 12:26:41 (INFO): Reprojecting input vectors...
2018-05-04 12:26:41 (INFO): Estimated memory for full processing: 7.84741MB (avail.: 128 MB), optimal image partitioning: 1 blocks
2018-05-04 12:26:41 (INFO): Estimation will be performed in 1 blocks of 512x512 pixels
Analyze polygons...: 100% [**************************************************] (0 seconds)
2018-05-04 12:26:41 (INFO): Polygon analysis...
2018-05-04 12:26:41 (INFO): Elevation management: setting default height above ellipsoid to 0 meters
2018-05-04 12:26:41 (INFO): Reprojecting input vectors...
2018-05-04 12:26:41 (INFO): Estimated memory for full processing: 7.84741MB (avail.: 128 MB), optimal image partitioning: 1 blocks
2018-05-04 12:26:41 (INFO): Estimation will be performed in 1 blocks of 512x512 pixels
Analyze polygons...: 100% [**************************************************] (0 seconds)
2018-05-04 12:26:41 (INFO): Sampling rates...
2018-05-04 12:26:41 (INFO): Sampling strategy : fit the number of samples based on the smallest class
2018-05-04 12:26:41 (WARNING): file /home/rashad/projects/otb/gitlab/Modules/Learning/Sampling/src/otbSamplingRateCalculatorList.cxx, line 109, SamplingRateCalculatorList (0x58a3157a400): All classes are empty !
2018-05-04 12:26:41 (INFO): Sampling rates for image 1 : className requiredSamples totalSamples rate
2018-05-04 12:26:41 (INFO): Sampling rates for image 2 : className requiredSamples totalSamples rate
2018-05-04 12:26:41 (INFO): Sampling rates for image 3 : className requiredSamples totalSamples rate
2018-05-04 12:26:41 (INFO): Sample selection...
2018-05-04 12:26:41 (INFO): Elevation management: setting default height above ellipsoid to 0 meters
2018-05-04 12:26:41 (INFO): Sampling strategy : set number of samples for each class
2018-05-04 12:26:41 (INFO): Sampling rates : className requiredSamples totalSamples rate
2018-05-04 12:26:41 (INFO): Reprojecting input vectors...
2018-05-04 12:26:41 (INFO): Estimated memory for full processing: 7.84741MB (avail.: 128 MB), optimal image partitioning: 1 blocks
2018-05-04 12:26:41 (INFO): Estimation will be performed in 1 blocks of 512x512 pixels
Selecting positions with periodic sampler...: 100% [**************************************************] (0 seconds)
segmentation fault (core dumped)
~ $
Configuration information
Liunx, bug found by testing qgis otb provider. was working fine with OTB 6.5 all data available in otb-data repository