用GDB调试遇到bus error各位帮忙看看
Program received signal SIGBUS, Bus error.
std::vector<unsigned short, std::allocator<unsigned short> >::operator[] (this=0x51f700, __n=1)
at /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_vector.h:462
462 operator[](size_type __n) { return *(begin() + __n); }
这是终止时候的信息
(gdb) backtrace
#0 std::vector<unsigned short, std::allocator<unsigned short> >::operator[] (this=0x51f700, __n=1)
at /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_vector.h:462
#1 0x00000000004050f7 in read_c (chromosome=@0x51f800, m=100) at GLOBALFUNC.cpp:224
#2 0x0000000000402517 in main (argc=5, argv=0x7fffff38e608) at CNV_DETECTOR.cpp:110
这是backtrace,其实也没什么用,就是在read_c这个函数里面