coredump的捕获

RHEL5系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = core

此时文件在当前目录,文件名称以core.{pid}的形式存在

RHEL6系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e

此时文件在当前目录,文件名称也是以core.{pid}的形式存在

Fedora26系统

[cnangel@localhost ~]$sysctl kernel.core_pattern
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %e

此时内核转储使用了systemd,需要coredumpctl命令查看

coredumpctl

列出所有的core信息

coredumpctl list {执行程序名称}

查看执行程序名称的所有core信息

coredumpctl -o core dump {PID}

直接下载该PID的core文件,名称为core,放入当前目录下。

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on August 30, 2017 1:17 PM.

fedora26 几轮跳票,终于尝鲜啦 was the previous entry in this blog.

Fedora27 Workstation发布了 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.