opencv_contrib
opencv_contrib copied to clipboard
SIGSEGV in CvDTreeTrainData::set_data
Transferred from http://code.opencv.org/issues/3564
|| Greg Hazel on 2014-02-20 02:42
|| Priority: Normal
|| Affected: 2.4.8 (latest release)
|| Category: ml
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: x64 / Linux
SIGSEGV in CvDTreeTrainData::set_data
Particularly suspicious because of the "// TODO: memory corruption may be here" comment.
The data set is 31628 samples each with 99171 attributes. (it ran fine with 1000 samples, but sloowww)
Program received signal SIGSEGV, Segmentation fault.
<pre>
0x00007ffff774f663 in CvDTreeTrainData::set_data (this=0x63baf0, _train_data=0x7fffffffdb50, _tflag=<optimized out>, _responses=0x7fffffffdb80,
_var_idx=<optimized out>, _sample_idx=<optimized out>, _var_type=0x7fffffffdc10, _missing_mask=0x0, _params=..., _shared=true, _add_labels=false,
_update_data=false) at /home/ghazel/opencv-2.4.8/modules/ml/src/tree.cpp:557
557 udst[i] = (unsigned short)i; // TODO: memory corruption may be here
(gdb) bt
#0 0x00007ffff774f663 in CvDTreeTrainData::set_data (this=0x63baf0, _train_data=0x7fffffffdb50, _tflag=<optimized out>, _responses=0x7fffffffdb80,
_var_idx=<optimized out>, _sample_idx=<optimized out>, _var_type=0x7fffffffdc10, _missing_mask=0x0, _params=..., _shared=true, _add_labels=false,
_update_data=false) at /home/ghazel/opencv-2.4.8/modules/ml/src/tree.cpp:557
opencv/opencv#1 0x00007ffff777d7b1 in CvRTrees::train (this=0x63ba90, _train_data=0x7fffffffdb50, _tflag=1, _responses=0x7fffffffdb80, _var_idx=0x0, _sample_idx=0x0,
_var_type=0x7fffffffdc10, _missing_mask=0x0, params=...) at /home/ghazel/opencv-2.4.8/modules/ml/src/rtrees.cpp:278
opencv/opencv#2 0x00007ffff777ce3b in CvRTrees::train (this=<optimized out>, _train_data=..., _tflag=<optimized out>, _responses=..., _var_idx=..., _sample_idx=...,
_var_type=..., _missing_mask=..., _params=...) at /home/ghazel/opencv-2.4.8/modules/ml/src/rtrees.cpp:846
opencv/opencv#3 0x00000000004017c0 in main (argc=2, argv=0x7fffffffe1f8) at rdf.cpp:116
</pre>
History
Alexander Karsakov on 2014-02-20 07:37
- Description changed from Particularly suspicious because of the "//
TODO: memory corruption may b... to Particularly suspicious because
of the "// TODO: memory corruption may b... More
- Assignee set to Maria Dimashova
- Status changed from New to Open
- Category set to ml