C ++应用程序崩溃,核心文件显示错误
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff79e54000 Core was generated by `./server'. Program terminated with signal 6, Aborted. #0 0x0000003b67230265 in raise () from /lib64/libc.so.6 (gdb) bt #0 0x0000003b67230265 in raise () from /lib64/libc.so.6 #1 0x0000003b67231d10 in abort () from /lib64/libc.so.6 #2 0x0000003b6726a9bb in __libc_message () from /lib64/libc.so.6 #3 0x0000003b6727247f in _int_free () from /lib64/libc.so.6 #4 0x0000003b672728db in free () from /lib64/libc.so.6 #5 0x00000000004060df in operator delete (p=0x20030190) at ../lib/m_string.cpp:43 #6 0x0000000000403892 in TStr::~TStr (this=0x2102c980, __in_chrg=<value optimized out>) at ../lib/m_string.cpp:175 –
能够理解这个问题。以下是我已验证的链接https://bugzilla.redhat.com/show_bug.cgi?id=959013
表明vdso文件的大小不够。在path / proc / self / maps中。
请让我知道这是什么类型的问题,请为此提出建议。
答案 0 :(得分:2)
这是什么问题
malloc
或free
内的任何崩溃都是先前堆损坏的明确迹象。
使用Valgrind或AddressSanitizer(也纳入GCC-4.8)查找根本原因。
忽略vdso
- 正如Tom Tromey所说,它与此问题无关。