C++ application crash

2019-09-06 20:25发布

问题:

C++ application gets crashed with the core file showing error

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 – 

could able to understand about this issue. Here is the link that i have verified https://bugzilla.redhat.com/show_bug.cgi?id=959013

shows that the size of vdso file is not enough. which is in path /proc/self/maps.

please let me know what kind of issue is this and please suggest a fix for this.

回答1:

what kind of issue is this

Any crash inside malloc or free is a sure sign of previous heap corruption.

Use Valgrind or AddressSanitizer (incorporated into GCC-4.8 as well) to find the root cause.

Ignore vdso -- as Tom Tromey said, it has nothing to do with the problem.



标签: c++ linux gdb