Giter Club home page Giter Club logo

coredump_analyse_tool's Introduction

coredump_analyse_tool

目的:
1.使用图形界面分析coredump;
2.用于分析因为变量(内存)意外被修改导致的问题(长时间偶发性问题);

功能:可视化分析coredump文件内容,包括有:
1.显示异常时的寄存器信息(Finish);
2.显示栈调用信息(Finish);
3.显示异常位置的反汇编代码(Finish);
4.显示异常时,指定文件中全局变量此时的数值(Finish);
5.自动分析指定函数的参数值();
6.对比两份core文件中指定源文件中的变量,并输出差异(Finish);
6.对比两份core文件的数据区的内存(异常和正常设备的core文件),输出不同点();

变更履历

2023-04-25:增加实际调试例子,使用工具分析开源项目 mjpg-streamer(仓库为:https://github.com/jacksonliam/mjpg-streamer.git)
通过工具指定关注的源文件为:mjpg_streamer.c,分析其中的全局变量如下: image

2023-04-25:完成功能:对比两份core文件(正常和出现异常情况下)中指定源文件的内容,并标注差异项。
功能结果如下: 其中 右侧的 core1 是发生异常时保存内存数据,右侧是正常时导出的内存数据,对比两份数据,出现异常时,使用 ‘x’标注,否则不进行标注。
此外,由于变量的结构长度可能会超过显示用的文本框,因此根据文本框和变量长度,进行自动换行处理。
image 结果分析如下:
通过比对发现,结构体 Mgr_st *pMgr->cmd 数值不同(OK时为99,NG时为97)
实际项目中存在差异的变量会有很多,需要结合源码进行分析。

2023-04-24:上传基础代码
显示寄存器信息如下:
image

显示反汇编如下:
image

显示变量值如下:
image

coredump_analyse_tool's People

Contributors

oldchen3 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.