Advertisement
Guest User

OpenCV Segfault

a guest
Oct 17th, 2014
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.47 KB | None | 0 0
  1. $ g++ -ggdb bug.cpp  `pkg-config --cflags --libs opencv`
  2. $ gdb a.out
  3.  
  4. GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
  5. Copyright (C) 2014 Free Software Foundation, Inc.
  6. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  7. This is free software: you are free to change and redistribute it.
  8. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  9. and "show warranty" for details.
  10. This GDB was configured as "x86_64-linux-gnu".
  11. Type "show configuration" for configuration details.
  12. For bug reporting instructions, please see:
  13. <http://www.gnu.org/software/gdb/bugs/>.
  14. Find the GDB manual and other documentation resources online at:
  15. <http://www.gnu.org/software/gdb/documentation/>.
  16. For help, type "help".
  17. Type "apropos word" to search for commands related to "word"...
  18. Reading symbols from a.out...done.
  19.  
  20. (gdb) run
  21. Starting program: a.out
  22. [Thread debugging using libthread_db enabled]
  23. Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
  24.  
  25. Program received signal SIGSEGV, Segmentation fault.
  26. 0x00000000004d5b28 in cv::arithm_op(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, int, void (**)(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, cv::Size_<int>, void*), bool, void*) ()
  27.  
  28. (gdb) bt
  29. #0  0x00000000004d5b28 in cv::arithm_op(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, int, void (**)(unsigned char const*, unsigned long, unsigned char const*, unsigned long, unsigned char*, unsigned long, cv::Size_<int>, void*), bool, void*) ()
  30. #1  0x00000000004d8650 in cv::add(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, int) ()
  31. #2  0x000000000040332c in cv::operator+= (a=..., s=...)
  32.     at /home/tmp/opencv/install/include/opencv2/core/mat.hpp:1442
  33. #3  0x0000000000403782 in Bug::Bug (this=0x812042 <b>) at bug.cpp:6
  34. #4  0x000000000040338e in __static_initialization_and_destruction_0 (__initialize_p=1,
  35.     __priority=65535) at bug.cpp:9
  36. #5  0x00000000004033a3 in _GLOBAL__sub_I_main () at bug.cpp:10
  37. #6  0x00000000005b5f0d in __libc_csu_init ()
  38. #7  0x00007ffff6defe55 in __libc_start_main (main=0x403337 <main(int, char**)>, argc=1,
  39.     argv=0x7fffffffded8, init=0x5b5ec0 <__libc_csu_init>, fini=<optimized out>,
  40.     rtld_fini=<optimized out>, stack_end=0x7fffffffdec8) at libc-start.c:246
  41. #8  0x00000000004031f7 in _start ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement