Chinaunix首页 | 论坛 | 博客
  • 博客访问: 475146
  • 博文数量: 133
  • 博客积分: 1235
  • 博客等级: 少尉
  • 技术积分: 1201
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-08 19:59
文章分类

全部博文(133)

文章存档

2023年(12)

2022年(3)

2018年(2)

2017年(4)

2016年(4)

2015年(42)

2014年(1)

2013年(12)

2012年(16)

2011年(36)

2010年(1)

发布时间:2015-04-29 16:18:01

zhangzhibiao02005 2014-09-20 16:41r10            0xa      10r11            0x202    514r12       &nbs.........【阅读全文】

阅读(3393) | 评论(0) | 转发(0)

发布时间:2015-04-29 16:02:53

上一篇文章《在Linux程序中输出函数调用栈》,讲述了在Linux中如何利用backtrace获取调用栈,本篇文章主要介绍一下获取函数调用栈的原理,并给出相应的实现方式。要了解调用栈,首先需要了解函数的调用过程,下面用一段代码作为例子:#include int add(int a, int b) { int result = 0; result .........【阅读全文】

阅读(1219) | 评论(0) | 转发(0)

发布时间:2015-04-29 15:22:16

Tool GDBExamining Memory (data or in machine instructions)You can use the command x (for “examine”) to examine memory in any of several formats, independently of your program's data types.x/nfu addrx addrxn, the repeat countThe repeat count is a decimal integer; the d.........【阅读全文】

阅读(6240) | 评论(0) | 转发(0)

发布时间:2015-04-29 14:56:48

http://outofmemory.cn/wr/?u=http%3A%2F%2Fwww.nosqlnotes.net%2Farchives%2F183分享两个GDB的小技巧:1, GDB失效时手工得到stack;2, GDB执行用户命令脚本;调试内存型服务程序的有时会遇到core dump或死锁问题,且gdb或者pstack都无法显示调用栈(call stack)。这是因为线程的调用栈被破坏了,而调用栈.........【阅读全文】

阅读(823) | 评论(0) | 转发(0)

发布时间:2011-12-02 14:30:36

在软件开发的过程中,无论如何努力,bug几乎都是必不可少的。当某些bug发生时,该进程会产生coredump文件。通过这个coredump文件,开发人员可以找到bug的原因。但是coredump的产生,大都是因为程序crash了。1. 死锁    有些bug是不会导致进程crash的,比如死锁——这时,程序已经不正常了,可是却没.........【阅读全文】

阅读(1390) | 评论(0) | 转发(2)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册