zoukankan      html  css  js  c++  java
  • gdb 小记

    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

  • 相关阅读:
    MySQL中mysqldump导出数据的使用
    MySQL中show语法使用总结
    Nginx配置项优
    Elasticsearch5.2.2安装
    SSH实现双向认证
    MySQL5.6主从复制搭建基于日志(binlog)
    清除Pycharm设置的方法
    Python3编程技巧
    django组件-中间件
    Python打杂之路
  • 原文地址:https://www.cnblogs.com/welkinwalker/p/1984999.html
Copyright © 2011-2022 走看看