当前位置: 技术问答>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
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。