当前位置: 技术问答>linux和unix
linux下C编程:调试中利用core dump 分析的问题,各位帮忙啦,谢谢!
来源: 互联网 发布时间:2015-12-09
本文导语: linux下进行C编程进行调试时,利用core dump分析时 先写命令$ulimit -c unlimited,但是还是不能使用core文件分析,调试过程中出现如下代码: 段错误 (core dumped) [root@lyl program]# gdb test4_4 core GNU gdb Red Hat Linux (5.3post-0.2...
linux下进行C编程进行调试时,利用core dump分析时
先写命令$ulimit -c unlimited,但是还是不能使用core文件分析,调试过程中出现如下代码:
段错误 (core dumped)
[root@lyl program]# gdb test4_4 core
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
/home/program/core: 没有那个文件或目录.
(gdb)
在/home/program/core目录下已经出现文件core.4919,命令行为什么还是提示"/home/program/core: 没有那个文件或目录."?
先写命令$ulimit -c unlimited,但是还是不能使用core文件分析,调试过程中出现如下代码:
段错误 (core dumped)
[root@lyl program]# gdb test4_4 core
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
/home/program/core: 没有那个文件或目录.
(gdb)
在/home/program/core目录下已经出现文件core.4919,命令行为什么还是提示"/home/program/core: 没有那个文件或目录."?
|
看看
http://blog.chinaunix.net/u/6593/showart.php?id=150292
http://blog.chinaunix.net/u/6593/showart.php?id=150292