Segmentation fault with liblinear 2.11
christoph-conrads opened this issue · 1 comments
christoph-conrads commented
train
in liblinear 2.11 crashes for me after applying the change in #36. The console output is below; observe the iteration counter. Valgrind detected an out-of-bounds read in linear.cpp:75-83
(axpy()
) and adding assert( y->index > 0 );
as the first statement in the while loop aborts the program on execution.
christoph:/tmp/tmp.8mis3wq6Em$ ./liblinear-2.11/train -B 1 -e 0.0001 training.txt svm-model
...*
optimization finished, #iter = 37
Objective value = -0.161526
nSV = 19
..*
optimization finished, #iter = 27
Objective value = -0.084889
nSV = 12
...*.
optimization finished, #iter = 40
Objective value = -0.110262
nSV = 14
...*
optimization finished, #iter = 39
Objective value = -0.185151
nSV = 17
...*
optimization finished, #iter = 37
Objective value = -0.089334
nSV = 13
Segmentation fault (core dumped)
christoph:~$ g++ --version
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
christoph-conrads commented
Solution: #36 (comment)