我无法前进去查看核心转储。如何查看细分故障(核心转储)
我有这个当我输入
gdb normal_estimation core
Reading symbols from /home/sai/Documents/pcl_learning/normal_estimation/build/normal_estimation...(no debugging symbols found)...done.
warning: core file may not match specified executable file.
[New LWP 11816]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Core was generated by `./normal_estimation'.
Program terminated with signal 11, Segmentation fault.
#0 0xb53101d6 in free() from /lib/i386-linux-gnu/libc.so.6
(gdb)
请让我知道我应该怎么办?
'没有找到调试符号':这是一个提示。在编译代码时启用调试(禁用优化对调试也有很大帮助)。 – vanza
我已经编译使用make的文件。我如何给调试符号 – Sai
不,你已经使用编译器(最可能gcc)编译你的代码。阅读其文档以了解如何使用它。 – vanza