看一个coredump例子:
看一个coredump例子:
Core was generated by `./xuzhina_dump_c07_s2_ex'.
Program terminated with signal 11, Segmentation fault.
#0 0x0285b9b7 in std::_List_node_base::hook(std::_List_node_base*) ()
from /usr/lib/libstdc++.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6_6.4.i686 libgcc-4.4.7-11.el6.i686 libstdc++-4.4.7-11.el6.i686
(gdb) bt
#0 0x0285b9b7 in std::_List_node_base::hook(std::_List_node_base*) ()
from /usr/lib/libstdc++.so.6
#1 0x080488fd in std::list<int, std::allocator<int> >::_M_insert(std::_List_iterator<int>, int const&) ()
#2 0x08048784 in std::list<int, std::allocator<int> >::push_back(int const&)
()
#3 0x08048676 in main ()
更多内容请关注微信公众号"debugeeker", 链接为https://mp.weixin.qq.com/s/DUeT4vc26Cn7fwq7K58FaQ