gdb ../bin/chunkserver core.20940
bt (最上面是栈顶,也是最后core的位置)
f 5 (转到第5个文件)
#0 0x000000322b770a30 in strlen () from /lib64/tls/libc.so.6
#1 0x000000322b742dc9 in vfprintf () from /lib64/tls/libc.so.6
#2 0x000000322b762784 in vsnprintf () from /lib64/tls/libc.so.6
#3 0x000000000044f2c7 in log4cpp::StringUtil::vform ()
#4 0x0000000000444bec in log4cpp::Category::_logUnconditionally ()
#5 0x000000000044407d in log4cpp::Category::info ()
#6 0x000000000043836b in CChunk::insert (this=0x5e6680, pRecord=0x610e90) at Chunk.cpp:57
#7 0x000000000042f72e in CChunkNode::insert (this=0x5e1b40, pRecord=0x610e90) at ChunkNode.cpp:36
#8 0x00000000004196a1 in CStorageNode::process (this=0x5afcd0) at SsqNode.cpp:176
#9 0x0000000000419810 in CStorageNode::asynProcess (arg=0x5afcd0) at SsqNode.cpp:209
#10 0x000000322be06137 in start_thread () from /lib64/tls/libpthread.so.0
#11 0x000000322b7c7533 in clone () from /lib64/tls/libc.so.6
指定源代码目录:
directory /home/admin/cl-test_suite/20110303_32225_qstore-1.0_4/src/QStore/chunk
检查变量类型:
whatis pRecord->strKey