LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 724|回复: 1

用gcore取的某一个进程的memory image,怎么分析它呢?

[复制链接]
发表于 2004-2-24 23:07:55 | 显示全部楼层 |阅读模式
:help
发表于 2004-2-25 08:25:15 | 显示全部楼层
gcore -- get core images of running process
                                                                                                                           
SYNOPSIS
     gcore [-s] [-c core] [executable] pid
                                                                                                                           
DESCRIPTION
     The gcore utility creates a core image of the specified process, suitable
     for use with gdb(1).  By default, the core is written to the file
     ``core.<pid>''.  The process identifier, pid, must be given on the com-
     mand line.  If no executable image is specified, gcore will use
     ``/proc/<pid>/file''.
                                                                                                                           
     The following options are available:
                                                                                                                           
     -c      Write the core file to the specified file instead of
             ``core.<pid>''.
                                                                                                                           
     -s      Stop the process while gathering the core image, and resume it
             when done.  This guarantees that the resulting core dump will be
             in a consistent state.  The process is resumed even if it was
             already stopped.  The same effect can be achieved manually with
             kill(1).
                                                                                                                           
FILES
     core.<pid>         the core image
     /proc/<pid>/file   the executable image
                                                                                                                           
HISTORY
     A gcore utility appeared in 4.2BSD.
                                                                                                                           
BUGS
     Context switches or paging activity that occur while gcore is running may
     cause the program to become confused.  For best results, use -s to tempo-
     rarily stop the target process.
                                                                                                                           
     The gcore utility is not compatible with the original 4.2BSD version.


把你core.img贴出来看看行吗? 我试着分析分析!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表