Advertisement
Goddard

Untitled

Jul 7th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.35 KB | None | 0 0
  1.  
  2. gdb ./test_1
  3. GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
  4. Copyright (C) 2014 Free Software Foundation, Inc.
  5. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  6. This is free software: you are free to change and redistribute it.
  7. There is NO WARRANTY, to the extent permitted by law. Type "show copying"
  8. and "show warranty" for details.
  9. This GDB was configured as "x86_64-linux-gnu".
  10. Type "show configuration" for configuration details.
  11. For bug reporting instructions, please see:
  12. <http://www.gnu.org/software/gdb/bugs/>.
  13. Find the GDB manual and other documentation resources online at:
  14. <http://www.gnu.org/software/gdb/documentation/>.
  15. ---Type <return> to continue, or q <return> to quit---
  16. For help, type "help".
  17. Type "apropos word" to search for commands related to "word"...
  18. Reading symbols from ./test_1...done.
  19. (gdb) b main
  20. Breakpoint 1 at 0x402aad: file facedetect.cpp, line 30.
  21. (gdb) b detectAndDisplay
  22. Breakpoint 2 at 0x402cab: file facedetect.cpp, line 64.
  23. (gdb) s
  24. The program is not being run.
  25. (gdb) r
  26. Starting program: /home/goddard/Projects/example/faceEyeDetect/test_1
  27. [Thread debugging using libthread_db enabled]
  28. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  29. [New Thread 0x7fffe5dff700 (LWP 3568)]
  30.  
  31. Breakpoint 1, main () at facedetect.cpp:30
  32. 30 VideoCapture capture;
  33. (gdb) s
  34. 31 Mat frame;
  35. (gdb) s
  36. cv::Mat::Mat (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:296
  37. 296 datalimit(0), allocator(0), u(0), size(&rows)
  38. (gdb) s
  39. cv::MatSize::MatSize (this=0x7fffffffda80, _p=0x7fffffffda48) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
  40. 1067 : p(_p) {}
  41. (gdb) s
  42. cv::MatStep::MatStep (this=0x7fffffffda88) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
  43. 1123 p = buf; p[0] = p[1] = 0;
  44. (gdb) s
  45. 1124 }
  46. (gdb) s
  47. cv::Mat::Mat (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:297
  48. 297 {}
  49. (gdb) s
  50. main () at facedetect.cpp:34
  51. 34 if( !face_cascade.load( face_cascade_name ) ){ printf("--(!)Error loading face cascade\n"); return -1; };
  52. (gdb) s
  53. 35 if( !eyes_cascade.load( eyes_cascade_name ) ){ printf("--(!)Error loading eyes cascade\n"); return -1; };
  54. (gdb) s
  55. 38 capture.open( -1 );
  56. (gdb) s
  57. 39 if ( ! capture.isOpened() ) { printf("--(!)Error opening video capture\n"); return -1; }
  58. (gdb) s
  59. 41 while ( capture.read(frame) )
  60. (gdb) s
  61. cv::_OutputArray::_OutputArray (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
  62. 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
  63. (gdb) s
  64. cv::_InputArray::_InputArray (this=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:63
  65. 63 inline _InputArray::_InputArray() { init(NONE, 0); }
  66. (gdb) s
  67. cv::Size_<int>::Size_ (this=0x7fffffffdab8) at /usr/local/include/opencv2/core/types.hpp:1281
  68. 1281 : width(0), height(0) {}
  69. (gdb) s
  70. cv::_InputArray::init (this=0x7fffffffdaa0, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  71. 56 { flags = _flags; obj = (void*)_obj; }
  72. (gdb) s
  73. cv::_InputArray::init (this=0x7fffffffdaa0, _flags=33619968, _obj=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  74. 56 { flags = _flags; obj = (void*)_obj; }
  75. (gdb) s
  76. cv::_OutputArray::~_OutputArray (this=0x7fffffffdaa0, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
  77. 158 class CV_EXPORTS _OutputArray : public _InputArray
  78. (gdb) s
  79. cv::_InputArray::~_InputArray (this=0x7fffffffdaa0, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  80. 109 inline _InputArray::~_InputArray() {}
  81. (gdb) s
  82. main () at facedetect.cpp:43
  83. 43 if( frame.empty() )
  84. (gdb) s
  85. cv::Mat::empty (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:718
  86. 718 return data == 0 || total() == 0;
  87. (gdb) s
  88. cv::Mat::total (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:724
  89. 724 if( dims <= 2 )
  90. (gdb) s
  91. 725 return (size_t)rows * cols;
  92. (gdb) s
  93. 730 }
  94. (gdb) s
  95. cv::Mat::empty (this=0x7fffffffda40) at /usr/local/include/opencv2/core/mat.inl.hpp:719
  96. 719 }
  97. (gdb) s
  98. main () at facedetect.cpp:50
  99. 50 detectAndDisplay( frame );
  100. (gdb) s
  101. cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:354
  102. 354 u(m.u), size(&rows)
  103. (gdb) s
  104. cv::MatSize::MatSize (this=0x7fffffffdae0, _p=0x7fffffffdaa8) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
  105. 1067 : p(_p) {}
  106. (gdb) s
  107. cv::MatStep::MatStep (this=0x7fffffffdae8) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
  108. 1123 p = buf; p[0] = p[1] = 0;
  109. (gdb) s
  110. 1124 }
  111. (gdb) s
  112. cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:356
  113. 356 if( u )
  114. (gdb) s
  115. 357 CV_XADD(&u->refcount, 1);
  116. (gdb) s
  117. 358 if( m.dims <= 2 )
  118. (gdb) s
  119. 360 step[0] = m.step[0]; step[1] = m.step[1];
  120. (gdb) s
  121. cv::MatStep::operator[] (this=0x7fffffffdae8, i=0) at /usr/local/include/opencv2/core/mat.inl.hpp:1141
  122. 1141 return p[i];
  123. (gdb) s
  124. 1142 }
  125. (gdb) s
  126. cv::MatStep::operator[] (this=0x7fffffffda88, i=0) at /usr/local/include/opencv2/core/mat.inl.hpp:1135
  127. 1135 return p[i];
  128. (gdb) s
  129. 1136 }
  130. (gdb) s
  131. cv::MatStep::operator[] (this=0x7fffffffdae8, i=1) at /usr/local/include/opencv2/core/mat.inl.hpp:1141
  132. 1141 return p[i];
  133. (gdb) s
  134. 1142 }
  135. (gdb) s
  136. cv::MatStep::operator[] (this=0x7fffffffda88, i=1) at /usr/local/include/opencv2/core/mat.inl.hpp:1135
  137. 1135 return p[i];
  138. (gdb) s
  139. 1136 }
  140. (gdb) s
  141. cv::Mat::Mat (this=0x7fffffffdaa0, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:367
  142. 367 }
  143. (gdb) s
  144.  
  145. Breakpoint 2, detectAndDisplay (frame=...) at facedetect.cpp:64
  146. 64 std::vector<Rect> faces;
  147. (gdb) s
  148. std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::vector (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:249
  149. 249 : _Base() { }
  150. (gdb) s
  151. std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_base (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:125
  152. 125 : _M_impl() { }
  153. (gdb) s
  154. std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_impl::_Vector_impl (this=0x7fffffffd8a0)
  155. at /usr/include/c++/4.8/bits/stl_vector.h:87
  156. 87 : _Tp_alloc_type(), _M_start(0), _M_finish(0), _M_end_of_storage(0)
  157. (gdb) s
  158. std::allocator<cv::Rect_<int> >::allocator (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/allocator.h:113
  159. 113 allocator() throw() { }
  160. (gdb) s
  161. __gnu_cxx::new_allocator<cv::Rect_<int> >::new_allocator (this=0x7fffffffd8a0) at /usr/include/c++/4.8/ext/new_allocator.h:79
  162. 79 new_allocator() _GLIBCXX_USE_NOEXCEPT { }
  163. (gdb) s
  164. std::_Vector_base<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::_Vector_impl::_Vector_impl (this=0x7fffffffd8a0)
  165. at /usr/include/c++/4.8/bits/stl_vector.h:88
  166. 88 { }
  167. (gdb) s
  168. detectAndDisplay (frame=...) at facedetect.cpp:65
  169. 65 Mat frame_gray;
  170. (gdb) s
  171. cv::Mat::Mat (this=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:296
  172. 296 datalimit(0), allocator(0), u(0), size(&rows)
  173. (gdb) s
  174. cv::MatSize::MatSize (this=0x7fffffffd960, _p=0x7fffffffd928) at /usr/local/include/opencv2/core/mat.inl.hpp:1067
  175. 1067 : p(_p) {}
  176. (gdb) s
  177. cv::MatStep::MatStep (this=0x7fffffffd968) at /usr/local/include/opencv2/core/mat.inl.hpp:1123
  178. 1123 p = buf; p[0] = p[1] = 0;
  179. (gdb) s
  180. 1124 }
  181. (gdb) s
  182. cv::Mat::Mat (this=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:297
  183. 297 {}
  184. (gdb) s
  185. detectAndDisplay (frame=...) at facedetect.cpp:67
  186. 67 cvtColor( frame, frame_gray, COLOR_BGR2GRAY );
  187. (gdb) s
  188. cv::_OutputArray::_OutputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
  189. 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
  190. (gdb) s
  191. cv::_InputArray::_InputArray (this=0x7fffffffd980) at /usr/local/include/opencv2/core/mat.inl.hpp:63
  192. 63 inline _InputArray::_InputArray() { init(NONE, 0); }
  193. (gdb) s
  194. cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
  195. 1281 : width(0), height(0) {}
  196. (gdb) s
  197. cv::_InputArray::init (this=0x7fffffffd980, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  198. 56 { flags = _flags; obj = (void*)_obj; }
  199. (gdb) s
  200. cv::_InputArray::init (this=0x7fffffffd980, _flags=33619968, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  201. 56 { flags = _flags; obj = (void*)_obj; }
  202. (gdb) s
  203. cv::_InputArray::_InputArray (this=0x7fffffffd900, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
  204. 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
  205. (gdb) s
  206. cv::Size_<int>::Size_ (this=0x7fffffffd918) at /usr/local/include/opencv2/core/types.hpp:1281
  207. 1281 : width(0), height(0) {}
  208. (gdb) s
  209. cv::_InputArray::init (this=0x7fffffffd900, _flags=16842752, _obj=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  210. 56 { flags = _flags; obj = (void*)_obj; }
  211. (gdb) s
  212. cv::_InputArray::~_InputArray (this=0x7fffffffd900, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  213. 109 inline _InputArray::~_InputArray() {}
  214. (gdb) s
  215. cv::_OutputArray::~_OutputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
  216. 158 class CV_EXPORTS _OutputArray : public _InputArray
  217. (gdb) s
  218. cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  219. 109 inline _InputArray::~_InputArray() {}
  220. (gdb) s
  221. detectAndDisplay (frame=...) at facedetect.cpp:68
  222. 68 equalizeHist( frame_gray, frame_gray );
  223. (gdb) s
  224. cv::_OutputArray::_OutputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:121
  225. 121 inline _OutputArray::_OutputArray(Mat& m) { init(MAT+ACCESS_WRITE, &m); }
  226. (gdb) s
  227. cv::_InputArray::_InputArray (this=0x7fffffffd980) at /usr/local/include/opencv2/core/mat.inl.hpp:63
  228. 63 inline _InputArray::_InputArray() { init(NONE, 0); }
  229. (gdb) s
  230. cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
  231. 1281 : width(0), height(0) {}
  232. (gdb) s
  233. cv::_InputArray::init (this=0x7fffffffd980, _flags=0, _obj=0x0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  234. 56 { flags = _flags; obj = (void*)_obj; }
  235. (gdb) s
  236. cv::_InputArray::init (this=0x7fffffffd980, _flags=33619968, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  237. 56 { flags = _flags; obj = (void*)_obj; }
  238. (gdb) s
  239. cv::_InputArray::_InputArray (this=0x7fffffffd900, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
  240. 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
  241. (gdb) s
  242. cv::Size_<int>::Size_ (this=0x7fffffffd918) at /usr/local/include/opencv2/core/types.hpp:1281
  243. 1281 : width(0), height(0) {}
  244. (gdb) s
  245. cv::_InputArray::init (this=0x7fffffffd900, _flags=16842752, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  246. 56 { flags = _flags; obj = (void*)_obj; }
  247. (gdb) s
  248. cv::_InputArray::~_InputArray (this=0x7fffffffd900, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  249. 109 inline _InputArray::~_InputArray() {}
  250. (gdb) s
  251. cv::_OutputArray::~_OutputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.hpp:158
  252. 158 class CV_EXPORTS _OutputArray : public _InputArray
  253. (gdb) s
  254. cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  255. 109 inline _InputArray::~_InputArray() {}
  256. (gdb) s
  257. detectAndDisplay (frame=...) at facedetect.cpp:71
  258. 71 face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0, Size(80, 80) );
  259. (gdb) s
  260. cv::Size_<int>::Size_ (this=0x7fffffffd900) at /usr/local/include/opencv2/core/types.hpp:1281
  261. 1281 : width(0), height(0) {}
  262. (gdb) s
  263. cv::Size_<int>::Size_ (this=0x7fffffffd8e0, _width=80, _height=80) at /usr/local/include/opencv2/core/types.hpp:1285
  264. 1285 : width(_width), height(_height) {}
  265. (gdb) s
  266. cv::_InputArray::_InputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
  267. 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
  268. (gdb) s
  269. cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
  270. 1281 : width(0), height(0) {}
  271. (gdb) s
  272. cv::_InputArray::init (this=0x7fffffffd980, _flags=16842752, _obj=0x7fffffffd920) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  273. 56 { flags = _flags; obj = (void*)_obj; }
  274. (gdb) s
  275. [New Thread 0x7ffff7e82700 (LWP 3570)]
  276. cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  277. 109 inline _InputArray::~_InputArray() {}
  278. (gdb) s
  279. detectAndDisplay (frame=...) at facedetect.cpp:73
  280. 73 for( size_t i = 0; i < faces.size(); i++ )
  281. (gdb) s
  282. std::vector<cv::Rect_<int>, std::allocator<cv::Rect_<int> > >::size (this=0x7fffffffd8a0) at /usr/include/c++/4.8/bits/stl_vector.h:646
  283. 646 { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
  284. (gdb) s
  285. detectAndDisplay (frame=...) at facedetect.cpp:96
  286. 96 imshow( window_name, frame );
  287. (gdb) s
  288. cv::_InputArray::_InputArray (this=0x7fffffffd980, m=...) at /usr/local/include/opencv2/core/mat.inl.hpp:65
  289. 65 inline _InputArray::_InputArray(const Mat& m) { init(MAT+ACCESS_READ, &m); }
  290. (gdb) s
  291. cv::Size_<int>::Size_ (this=0x7fffffffd998) at /usr/local/include/opencv2/core/types.hpp:1281
  292. 1281 : width(0), height(0) {}
  293. (gdb) s
  294. cv::_InputArray::init (this=0x7fffffffd980, _flags=16842752, _obj=0x7fffffffdaa0) at /usr/local/include/opencv2/core/mat.inl.hpp:56
  295. 56 { flags = _flags; obj = (void*)_obj; }
  296. (gdb) s
  297. s[New Thread 0x7fffd48aa700 (LWP 3571)]
  298. [New Thread 0x7fffcc447700 (LWP 3572)]
  299. [New Thread 0x7fffcba34700 (LWP 3573)]
  300. [New Thread 0x7fffc3003700 (LWP 3577)]
  301. [New Thread 0x7fffc239d700 (LWP 3578)]
  302. [New Thread 0x7fffc1b9c700 (LWP 3579)]
  303. init done
  304. opengl support available
  305. cv::_InputArray::~_InputArray (this=0x7fffffffd980, __in_chrg=<optimized out>) at /usr/local/include/opencv2/core/mat.inl.hpp:109
  306. 109 inline _InputArray::~_InputArray() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement