[bergstrj@aphex test]$ gdb ../multiboost
GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as
"x86_64-redhat-linux-gnu"...Using host libthread_db
library "/lib64/libthread_db.so.1".
(gdb) run -traintest
dense_dense:mnistTrainSmall.x,mnistTrainSmallDense.y
dense_dense:mnistTestSmall.x,mnistTestSmallDense.y 100
-verbose 2 -learnertype SingleStumpLearner -outputinfo
results.dta
Starting program: /u/bergstrj/cvs/MultiBoost/multiboost
-traintest
dense_dense:mnistTrainSmall.x,mnistTrainSmallDense.y
dense_dense:mnistTestSmall.x,mnistTestSmallDense.y 100
-verbose 2 -learnertype SingleStumpLearner -outputinfo
results.dta
--> Using learner: SingleStumpLearner
INFO: trace: load
INFO: trace: consume_rows
LOG(src/IO/InputData.cpp:59) Loading input examples ...
2 ... 4 ... 8 ... 16 ... 32 ... 64 ... 128 ... 256 ...
512 ...
LOG(src/IO/InputData.cpp:142) Loaded 1000 examples
INFO: finished reading file... read 1000 examples
INFO: first example:
10 weights: 5.55556e-05 ... 5.55556e-05
-1 classIdx
"" label
10 labels: -1 ... -1
10 labelIdxs:
10 numNonzeroLabels
INFO: last example:
10 weights: 5.55556e-05 ... 5.55556e-05
-1 classIdx
"" label
10 labels: -1 ... -1
10 labelIdxs:
10 numNonzeroLabels
Sorting data...Done!
INFO: trace: load
INFO: trace: consume_rows
LOG(src/IO/InputData.cpp:59) Loading input examples ...
2 ... 4 ... 8 ... 16 ... 32 ... 64 ... 128 ... 256 ...
512 ...
LOG(src/IO/InputData.cpp:142) Loaded 1000 examples
INFO: finished reading file... read 1000 examples
INFO: first example:
10 weights: 5.55556e-05 ... 5.55556e-05
-1 classIdx
"" label
10 labels: -1 ... -1
10 labelIdxs:
10 numNonzeroLabels
INFO: last example:
10 weights: 5.55556e-05 ... 0.0005
-1 classIdx
"" label
10 labels: -1 ... 1
10 labelIdxs:
10 numNonzeroLabels
------- WORKING ON ITERATION 0 -------
Weak learner: SingleStumpLearner
Program received signal SIGSEGV, Segmentation fault.
0x000000000045e73d in
MultiBoost::AbstainableLearner::classify
(this=0x5e3640, pData=0x5c5f90, idx=0, classIdx=0) at
src/WeakLearners/AbstainableLearner.cpp:84
84 return _v[classIdx] * phi( pData, idx,
classIdx );
(gdb) print classIdx
$1 = 0
(gdb) print _v[0]
$2 = (const double &) @0x0: Cannot access memory at
address 0x0
(gdb) print _v
$3 = {<std::_Vector_base<double,std::allocator<double>
>> = {
_M_impl = {<std::allocator<double>> =
{<__gnu_cxx::__mt_alloc<double,__gnu_cxx::__common_pool_policy<__gnu_cxx::__pool,
true> >> = {<__gnu_cxx::__mt_alloc_base<double>> = {<No
data fields>}, <No data fields>}, <No data fields>},
_M_start = 0x0, _M_finish = 0x0, _M_end_of_storage =
0x0}}, <No data fields>}