On Tue, Aug 23, 2016 at 03:45:58PM +0800, Ning Yao wrote: > Hi, all > > Our vm is terminated unexpectedly when using librbd in our production > environment with CentOS 7.0 kernel 3.12 with Ceph version 0.94.5 and > glibc version 2.17. we get log from libvirtd as below > > *** Error in `/usr/libexec/qemu-kvm': invalid fastbin entry (free): This means the maloc (free) code detected a memory corruption or accounting issue. This is unlikely to be an issue in glibc. > 0x00007f7db7eed740 *** > > ======= Backtrace: ========= > > /lib64/libc.so.6(+0x7d1fd)[0x7f8520fe61fd] > > /lib64/librbd.so.1(_ZNSt10_List_baseIN4ceph6buffer3ptrESaIS2_EE8_M_clearEv+0x2f)[0x7f8527589b3f] $ c++filt _ZNSt10_List_baseIN4ceph6buffer3ptrESaIS2_EE8_M_clearEv std::_List_base<ceph::buffer::ptr, std::allocator<ceph::buffer::ptr> >::_M_clear() The std::_List_base _M_clear() function likely calls free to free some memory allocated by the list and this is triggering the issue. I can't find a similar tracker so we'll likely need more information to pin this down. > > /lib64/librados.so.2(+0xb8a06)[0x7f8525080a06] > > /lib64/librados.so.2(+0xb9457)[0x7f8525081457] > > /lib64/librados.so.2(+0x718f7)[0x7f85250398f7] > > /lib64/librados.so.2(+0x2bffe5)[0x7f8525287fe5] > > /lib64/librados.so.2(+0x2cbaad)[0x7f8525293aad] > > /lib64/libpthread.so.0(+0x7df5)[0x7f852ab12df5] > > /lib64/libc.so.6(clone+0x6d)[0x7f852105f1ad] > > but the log does not show symbols so that we cannot know which > functions cause the error, any suggestions? Install the debuginfo packages for ceph (includes debuginfo for librados and librbd) and glibc ideally. To gather debug logging for rbd you should add something like the following to ceph.conf on the qemu-kvm host. [client] # Can also be global since it is inherited· debug ms = 1 debug rbd = 20 debug objectcacher = 20 debug objecter = 20 log file = /var/log/ceph/rbd.log Then run the following commands. # touch /var/log/ceph/rbd.log # chmod 777 /var/log/ceph/rbd.log Then reproduce the issue if possible and create a tracker, upload the debug log and the stack trace and let us know here. -- HTH, Brad > > > > Regards > Ning Yao > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com