g++ -v
Thread model: posix
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
$ gdb a.out
GNU gdb (Ubuntu 8.1.1-0ubuntu1) <
http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from a.out...done.
(gdb) r
Starting program: /home/ubuntu/dev/test/a.out
Program received signal SIGSEGV, Segmentation fault.
0x0000555555554e5d in CNone::go (this=0x7fffffffe530) at bind_pointer.cpp:17
17 print_total(*func.target<int (*)(CNone*,int, int)>(), this, m_a, m_b);
(gdb) p func.target<int (*)(CNone*,int, int)>()
$1 = (int (**)(CNone *, int, int)) 0x0
(gdb)
【 在 mvtec 的大作中提到: 】
: 你的gcc 什么版本
: 我用clang编译运行没问题
--
FROM 223.104.44.*